| 158 | } |
| 159 | |
| 160 | void 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 | |
| 182 | void MockCheckedActualCall::checkOutputParameter(const MockNamedValue& outputParameter) |
| 183 | { |
nothing calls this directly
no test coverage detected