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

Method checkExpectations

src/CppUTestExt/MockSupport.cpp:329–338  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

327}
328
329void MockSupport::checkExpectations()
330{
331 checkExpectationsOfLastActualCall();
332
333 if (wasLastActualCallFulfilled() && expectedCallsLeft())
334 failTestWithExpectedCallsNotFulfilled();
335
336 if (hasCallsOutOfOrder())
337 failTestWithOutOfOrderCalls();
338}
339
340
341bool MockSupport::hasData(const SimpleString& name)

Callers 15

postTestActionMethod · 0.45
checkExpectations_cFunction · 0.45
MockSupport.cppFile · 0.45
teardownFunction · 0.45
TESTFunction · 0.45
all_mock_support_c_callsFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
teardownFunction · 0.45
TESTFunction · 0.45
teardownFunction · 0.45

Calls

no outgoing calls

Tested by 15

teardownFunction · 0.36
TESTFunction · 0.36
all_mock_support_c_callsFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
teardownFunction · 0.36
TESTFunction · 0.36
teardownFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
teardownFunction · 0.36
TESTFunction · 0.36