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

Method completeCallWhenMatchIsFound

src/CppUTestExt/MockActualCall.cpp:107–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107void MockCheckedActualCall::completeCallWhenMatchIsFound()
108{
109 // Expectations that don't ignore parameters have higher fulfillment preference than those that ignore parameters
110
111 matchingExpectation_ = potentiallyMatchingExpectations_.removeFirstFinalizedMatchingExpectation();
112 if (matchingExpectation_) {
113 copyOutputParameters(matchingExpectation_);
114 callHasSucceeded();
115 } else {
116 MockCheckedExpectedCall* matchingExpectationWithIgnoredParameters = potentiallyMatchingExpectations_.getFirstMatchingExpectation();
117 if (matchingExpectationWithIgnoredParameters) {
118 copyOutputParameters(matchingExpectationWithIgnoredParameters);
119 }
120 }
121}
122
123void MockCheckedActualCall::callHasSucceeded()
124{

Callers

nothing calls this directly

Tested by

no test coverage detected