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

Method onlyKeepUnmatchingExpectations

src/CppUTestExt/MockExpectedCallsList.cpp:163–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161}
162
163void MockExpectedCallsList::onlyKeepUnmatchingExpectations()
164{
165 for (MockExpectedCallsListNode* p = head_; p; p = p->next_)
166 if (p->expectedCall_->isMatchingActualCallAndFinalized())
167 {
168 p->expectedCall_->resetActualCallMatchingState();
169 p->expectedCall_ = NULLPTR;
170 }
171
172 pruneEmptyNodeFromList();
173}
174
175void MockExpectedCallsList::onlyKeepExpectationsWithInputParameterName(const SimpleString& name)
176{

Callers 2

TESTFunction · 0.80

Tested by 1

TESTFunction · 0.64