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

Function TEST

tests/CppUTestExt/MockReturnValueTest.cpp:40–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38};
39
40TEST(MockReturnValueTest, hasReturnValue)
41{
42 CHECK(!mock().hasReturnValue());
43 mock().expectOneCall("foo");
44 CHECK(!mock().actualCall("foo").hasReturnValue());
45 CHECK(!mock().hasReturnValue());
46
47 mock().expectOneCall("foo2").andReturnValue(1);
48 CHECK(mock().actualCall("foo2").hasReturnValue());
49 CHECK(mock().hasReturnValue());
50}
51
52TEST(MockReturnValueTest, UnsignedIntegerReturnValue)
53{

Callers

nothing calls this directly

Calls 15

getUnsignedIntValueMethod · 0.80
getLongIntValueMethod · 0.80
getLongLongIntValueMethod · 0.80
getBoolValueMethod · 0.80
boolReturnValueMethod · 0.80
getIntValueMethod · 0.80
intReturnValueMethod · 0.80
longIntReturnValueMethod · 0.80

Tested by

no test coverage detected