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

Method MockUnexpectedObjectFailure

src/CppUTestExt/MockFailure.cpp:228–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226}
227
228MockUnexpectedObjectFailure::MockUnexpectedObjectFailure(UtestShell* test, const SimpleString& functionName, const void* actual, const MockExpectedCallsList& expectations) : MockFailure(test)
229{
230 message_ = StringFromFormat ("MockFailure: Function called on an unexpected object: %s\n"
231 "\tActual object for call has address: <%p>\n", functionName.asCharString(),actual);
232 addExpectationsAndCallHistoryRelatedTo(functionName, expectations);
233}
234
235MockExpectedObjectDidntHappenFailure::MockExpectedObjectDidntHappenFailure(UtestShell* test, const SimpleString& functionName, const MockExpectedCallsList& expectations) : MockFailure(test)
236{

Callers

nothing calls this directly

Calls 2

StringFromFormatFunction · 0.85
asCharStringMethod · 0.80

Tested by

no test coverage detected