MCPcopy Create free account
hub / github.com/avast/retdec / TEST_F

Function TEST_F

tests/common/function_tests.cpp:53–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51};
52
53TEST_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
65TEST_F(FunctionContainerTests, TestGetFunctionByStartAddress)
66{

Callers

nothing calls this directly

Calls 3

getFunctionByNameMethod · 0.45
getNameMethod · 0.45

Tested by

no test coverage detected