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

Function foo

tests/CppUTestExt/MockCheatSheetTest.cpp:7–14  ·  view source on GitHub ↗

Stubbed out product code using linker, function pointer, or overriding */

Source from the content-addressed store, hash-verified

5
6/* Stubbed out product code using linker, function pointer, or overriding */
7static int foo(const char* param_string, int param_int)
8{
9 /* Tell CppUTest Mocking what we mock. Also return recorded value */
10 return mock().actualCall("Foo")
11 .withParameter("param_string", param_string)
12 .withParameter("param_int", param_int)
13 .returnValue().getIntValue();
14}
15
16static void bar(double param_double, const char* param_string)
17{

Callers 1

productionCodeFooCallsFunction · 0.85

Calls 2

getIntValueMethod · 0.80
returnValueMethod · 0.45

Tested by

no test coverage detected