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

Method missingParametersToString

src/CppUTestExt/MockExpectedCall.cpp:432–450  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

430}
431
432SimpleString MockCheckedExpectedCall::missingParametersToString()
433{
434 SimpleString str;
435 MockNamedValueListNode* p;
436
437 for (p = inputParameters_->begin(); p; p = p->next()) {
438 if (! item(p)->isMatchingActualCall()) {
439 if (str != "") str += ", ";
440 str += StringFromFormat("%s %s", p->getType().asCharString(), p->getName().asCharString());
441 }
442 }
443 for (p = outputParameters_->begin(); p; p = p->next()) {
444 if (! item(p)->isMatchingActualCall()) {
445 if (str != "") str += ", ";
446 str += StringFromFormat("%s %s", p->getType().asCharString(), p->getName().asCharString());
447 }
448 }
449 return str;
450}
451
452bool MockCheckedExpectedCall::relatesTo(const SimpleString& functionName)
453{

Calls 7

StringFromFormatFunction · 0.85
beginMethod · 0.80
nextMethod · 0.80
isMatchingActualCallMethod · 0.80
asCharStringMethod · 0.80
getTypeMethod · 0.80
getNameMethod · 0.45

Tested by

no test coverage detected