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

Method returnStringValueOrDefault

src/CppUTestExt/MockSupport.cpp:483–489  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

481}
482
483const char * MockSupport::returnStringValueOrDefault(const char * defaultValue)
484{
485 if (hasReturnValue()) {
486 return stringReturnValue();
487 }
488 return defaultValue;
489}
490
491double MockSupport::returnDoubleValueOrDefault(double defaultValue)
492{

Callers 4

all_mock_support_c_callsFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45

Calls

no outgoing calls

Tested by 4

all_mock_support_c_callsFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36