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

Method failTestWithOutOfOrderCalls

src/CppUTestExt/MockSupport.cpp:281–292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

279}
280
281void MockSupport::failTestWithOutOfOrderCalls()
282{
283 MockExpectedCallsList expectationsList;
284 expectationsList.addExpectations(expectations_);
285
286 for(MockNamedValueListNode *p = data_.begin();p;p = p->next())
287 if(getMockSupport(p))
288 expectationsList.addExpectations(getMockSupport(p)->expectations_);
289
290 MockCallOrderFailure failure(activeReporter_->getTestToFail(), expectationsList);
291 failTest(failure);
292}
293
294void MockSupport::failTest(MockFailure& failure)
295{

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