Skip to content

Commit

Permalink
fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
rvinaybharadwaj committed Sep 19, 2024
1 parent 013f53d commit 7a49eda
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
7 changes: 4 additions & 3 deletions tests/feeder/tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ class ETFeederTest : public ::testing::Test {
trace = new Chakra::ETFeeder(filename);
}

virtual void TearDown() { delete trace; }
virtual void TearDown() {
delete trace;
}

Chakra::ETFeeder* trace;
};
Expand Down Expand Up @@ -65,8 +67,7 @@ TEST_F(ETFeederTest, RemoveTest) {
try {
node = trace->lookupNode(216);
ASSERT_TRUE(false) << "node should be removed \n";
}
catch (const std::exception & e) {
} catch (const std::exception & e) {
// this is the desired behaviour
}
freopen("/dev/tty", "w", stderr);
Expand Down
11 changes: 7 additions & 4 deletions tests/feeder/wrapperTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,13 @@ class WrapperNodeTest : public ::testing::Test {
WrapperNodeTest() {}
virtual ~WrapperNodeTest() {}

void SetUp(const std::string& filename) { node.createWrapper(filename); }
void SetUp(const std::string& filename) {
node.createWrapper(filename);
}

virtual void TearDown() { node.releaseMemory(); }
virtual void TearDown() {
node.releaseMemory();
}

WrapperNode node;
};
Expand Down Expand Up @@ -70,8 +74,7 @@ TEST_F(WrapperNodeTest, RemoveTest) {
try {
node.lookupNode(216);
ASSERT_TRUE(false) << "node should be removed \n";
}
catch (const std::exception & e) {
} catch (const std::exception & e) {
// this is the desired behaviour
}
freopen("/dev/tty", "w", stderr);
Expand Down

0 comments on commit 7a49eda

Please sign in to comment.