MCPcopy Create free account
hub / github.com/cpputest/cpputest / TEST

Function TEST

tests/CppUTestExt/MockHierarchyTest.cpp:39–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37};
38
39TEST(MockHierarchyTest, getMockSupportScope)
40{
41 MockSupport* mock1 = mock().getMockSupportScope("name");
42 MockSupport* mock2 = mock().getMockSupportScope("differentName");
43
44 CHECK(!mock().hasData("name"));
45 CHECK(mock1 != mock2);
46 POINTERS_EQUAL(mock1, mock().getMockSupportScope("name"));
47 CHECK(mock1 != &mock());
48}
49
50TEST(MockHierarchyTest, usingTwoMockSupportsByName)
51{

Callers

nothing calls this directly

Calls 10

mockFailureTestFunction · 0.85
getMockSupportScopeMethod · 0.80
hasDataMethod · 0.80
expectedCallsLeftMethod · 0.80
addFunctionMethod · 0.80
ignoreOtherCallsMethod · 0.80
clearMethod · 0.45
disableMethod · 0.45
enableMethod · 0.45
checkExpectationsMethod · 0.45

Tested by

no test coverage detected