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

Method returnIntValueOrDefault

src/CppUTestExt/MockSupport.cpp:515–521  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

513}
514
515int MockSupport::returnIntValueOrDefault(int defaultValue)
516{
517 if (hasReturnValue()) {
518 return intReturnValue();
519 }
520 return defaultValue;
521}
522
523unsigned int MockSupport::returnUnsignedIntValueOrDefault(unsigned int defaultValue)
524{

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