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

Method returnPointerValueOrDefault

src/CppUTestExt/MockSupport.cpp:615–621  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

613}
614
615void * MockSupport::returnPointerValueOrDefault(void * defaultValue)
616{
617 if (hasReturnValue()) {
618 return pointerReturnValue();
619 }
620 return defaultValue;
621}
622
623const void* MockSupport::returnConstPointerValueOrDefault(const void * defaultValue)
624{

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