| 51 | }; |
| 52 | |
| 53 | TEST_F(FunctionContainerTests, TestGetFunctionByName) |
| 54 | { |
| 55 | // found |
| 56 | auto* f = funcs.getFunctionByName(fnc3.getName()); |
| 57 | ASSERT_TRUE(f != nullptr); |
| 58 | EXPECT_EQ( fnc3.getStart(), f->getStart() ); |
| 59 | |
| 60 | // not found |
| 61 | auto* n = funcs.getFunctionByName("non-existing-name"); |
| 62 | ASSERT_TRUE(n == nullptr); |
| 63 | } |
| 64 | |
| 65 | TEST_F(FunctionContainerTests, TestGetFunctionByStartAddress) |
| 66 | { |
nothing calls this directly
no test coverage detected