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

Method checkOutputParameter

src/CppUTestExt/MockActualCall.cpp:182–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180}
181
182void MockCheckedActualCall::checkOutputParameter(const MockNamedValue& outputParameter)
183{
184 if(hasFailed())
185 {
186 return;
187 }
188
189 setState(CALL_IN_PROGRESS);
190 discardCurrentlyMatchingExpectations();
191
192 potentiallyMatchingExpectations_.onlyKeepExpectationsWithOutputParameter(outputParameter);
193
194 if (potentiallyMatchingExpectations_.isEmpty()) {
195 MockUnexpectedOutputParameterFailure failure(getTest(), getName(), outputParameter, allExpectations_);
196 failTest(failure);
197 return;
198 }
199
200 potentiallyMatchingExpectations_.outputParameterWasPassed(outputParameter.getName());
201 completeCallWhenMatchIsFound();
202}
203
204MockActualCall& MockCheckedActualCall::withBoolParameter(const SimpleString& name, bool value)
205{

Callers

nothing calls this directly

Calls 4

isEmptyMethod · 0.45
getNameMethod · 0.45

Tested by

no test coverage detected