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

Method getFirstMatchingExpectation

src/CppUTestExt/MockExpectedCallsList.cpp:228–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226}
227
228MockCheckedExpectedCall* MockExpectedCallsList::getFirstMatchingExpectation()
229{
230 for (MockExpectedCallsListNode* p = head_; p; p = p->next_) {
231 if (p->expectedCall_->isMatchingActualCall()) {
232 return p->expectedCall_;
233 }
234 }
235 return NULLPTR;
236}
237
238MockCheckedExpectedCall* MockExpectedCallsList::removeFirstMatchingExpectation()
239{

Callers 2

TESTFunction · 0.80

Calls 1

isMatchingActualCallMethod · 0.80

Tested by 1

TESTFunction · 0.64