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

Method checkInputParameter

src/CppUTestExt/MockActualCall.cpp:160–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158}
159
160void MockCheckedActualCall::checkInputParameter(const MockNamedValue& actualParameter)
161{
162 if(hasFailed())
163 {
164 return;
165 }
166
167 setState(CALL_IN_PROGRESS);
168 discardCurrentlyMatchingExpectations();
169
170 potentiallyMatchingExpectations_.onlyKeepExpectationsWithInputParameter(actualParameter);
171
172 if (potentiallyMatchingExpectations_.isEmpty()) {
173 MockUnexpectedInputParameterFailure failure(getTest(), getName(), actualParameter, allExpectations_);
174 failTest(failure);
175 return;
176 }
177
178 potentiallyMatchingExpectations_.parameterWasPassed(actualParameter.getName());
179 completeCallWhenMatchIsFound();
180}
181
182void MockCheckedActualCall::checkOutputParameter(const MockNamedValue& outputParameter)
183{

Callers

nothing calls this directly

Calls 4

parameterWasPassedMethod · 0.80
isEmptyMethod · 0.45
getNameMethod · 0.45

Tested by

no test coverage detected