| 49 | }; |
| 50 | |
| 51 | TEST(MockCheatSheet, foo) |
| 52 | { |
| 53 | /* Record 2 calls to Foo. Return different values on each call */ |
| 54 | mock().expectOneCall("Foo") |
| 55 | .withParameter("param_string", "value_string") |
| 56 | .withParameter("param_int", 10) |
| 57 | .andReturnValue(30); |
| 58 | mock().expectOneCall("Foo") |
| 59 | .ignoreOtherParameters() |
| 60 | .andReturnValue(50); |
| 61 | |
| 62 | /* Call production code */ |
| 63 | productionCodeFooCalls(); |
| 64 | } |
| 65 | |
| 66 | TEST(MockCheatSheet, bar) |
| 67 | { |
nothing calls this directly
no test coverage detected