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

Function TEST

tests/CppUTestExt/MockComparatorCopierTest.cpp:82–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80};
81
82TEST(MockComparatorCopierTest, customObjectParameterFailsWhenNotHavingAComparisonRepository)
83{
84 MockFailureReporterInstaller failureReporterInstaller;
85
86 MyTypeForTesting object(1);
87 mock().expectOneCall("function").withParameterOfType("MyTypeForTesting", "parameterName", &object);
88 mock().actualCall("function").withParameterOfType("MyTypeForTesting", "parameterName", &object);
89
90 MockNoWayToCompareCustomTypeFailure expectedFailure(mockFailureTest(), "MyTypeForTesting");
91 CHECK_EXPECTED_MOCK_FAILURE(expectedFailure);
92}
93
94TEST(MockComparatorCopierTest, customObjectParameterFailsWhenNotHavingACopierRepository)
95{

Callers

nothing calls this directly

Calls 12

mockFailureTestFunction · 0.85
functionWithConstParamFunction · 0.85
addFunctionMethod · 0.80
setConstObjectPointerMethod · 0.80
tracingMethod · 0.80
installComparatorMethod · 0.45
checkExpectationsMethod · 0.45
installCopierMethod · 0.45
getTraceOutputMethod · 0.45

Tested by

no test coverage detected