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

Method MockExpectedParameterDidntHappenFailure

src/CppUTestExt/MockFailure.cpp:202–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200}
201
202MockExpectedParameterDidntHappenFailure::MockExpectedParameterDidntHappenFailure(UtestShell* test, const SimpleString& functionName, const MockExpectedCallsList& expectations) : MockFailure(test)
203{
204 MockExpectedCallsList expectationsForFunction;
205 expectationsForFunction.addExpectationsRelatedTo(functionName, expectations);
206
207 message_ = "Mock Failure: Expected parameter for function \"";
208 message_ += functionName;
209 message_ += "\" did not happen.\n";
210
211 addExpectationsAndCallHistoryRelatedTo(functionName, expectations);
212
213 message_ += "\n\tMISSING parameters that didn't happen:\n";
214 message_ += "\t\t";
215 message_ += expectationsForFunction.missingParametersToString();
216}
217
218MockNoWayToCompareCustomTypeFailure::MockNoWayToCompareCustomTypeFailure(UtestShell* test, const SimpleString& typeName) : MockFailure(test)
219{

Callers

nothing calls this directly

Calls 2

Tested by

no test coverage detected