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

Method MockExpectedObjectDidntHappenFailure

src/CppUTestExt/MockFailure.cpp:235–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233}
234
235MockExpectedObjectDidntHappenFailure::MockExpectedObjectDidntHappenFailure(UtestShell* test, const SimpleString& functionName, const MockExpectedCallsList& expectations) : MockFailure(test)
236{
237 message_ = StringFromFormat("Mock Failure: Expected call on object for function \"%s\" but it did not happen.\n", functionName.asCharString());
238 addExpectationsAndCallHistoryRelatedTo(functionName, expectations);
239}
240
241

Callers

nothing calls this directly

Calls 2

StringFromFormatFunction · 0.85
asCharStringMethod · 0.80

Tested by

no test coverage detected