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

Method returnConstPointerValueOrDefault

src/CppUTestExt/MockSupport.cpp:623–629  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

621}
622
623const void* MockSupport::returnConstPointerValueOrDefault(const void * defaultValue)
624{
625 if (hasReturnValue()) {
626 return constPointerReturnValue();
627 }
628 return defaultValue;
629}
630
631void (*MockSupport::returnFunctionPointerValueOrDefault(void (*defaultValue)()))()
632{

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