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

Method failTestWithExpectedCallsNotFulfilled

src/CppUTestExt/MockSupport.cpp:268–279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

266}
267
268void MockSupport::failTestWithExpectedCallsNotFulfilled()
269{
270 MockExpectedCallsList expectationsList;
271 expectationsList.addExpectations(expectations_);
272
273 for(MockNamedValueListNode *p = data_.begin();p;p = p->next())
274 if(getMockSupport(p))
275 expectationsList.addExpectations(getMockSupport(p)->expectations_);
276
277 MockExpectedCallsDidntHappenFailure failure(activeReporter_->getTestToFail(), expectationsList);
278 failTest(failure);
279}
280
281void MockSupport::failTestWithOutOfOrderCalls()
282{

Callers

nothing calls this directly

Calls 4

addExpectationsMethod · 0.80
beginMethod · 0.80
nextMethod · 0.80
getTestToFailMethod · 0.45

Tested by

no test coverage detected