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

Method addExpectedCall

src/CppUTestExt/MockExpectedCallsList.cpp:113–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113void MockExpectedCallsList::addExpectedCall(MockCheckedExpectedCall* call)
114{
115 MockExpectedCallsListNode* newCall = new MockExpectedCallsListNode(call);
116
117 if (head_ == NULLPTR)
118 head_ = newCall;
119 else {
120 MockExpectedCallsListNode* lastCall = head_;
121 while (lastCall->next_) lastCall = lastCall->next_;
122 lastCall->next_ = newCall;
123 }
124}
125
126void MockExpectedCallsList::addPotentiallyMatchingExpectations(const MockExpectedCallsList& list)
127{

Callers 5

MockSupport.cppFile · 0.80
TESTFunction · 0.80
addAllToListFunction · 0.80
TESTFunction · 0.80

Calls

no outgoing calls

Tested by 4

TESTFunction · 0.64
addAllToListFunction · 0.64
TESTFunction · 0.64