| 56 | }; |
| 57 | |
| 58 | TEST(MockPlugin, checkExpectationsAndClearAtEnd) |
| 59 | { |
| 60 | MockFailureReporterInstaller failureReporterInstaller; |
| 61 | |
| 62 | MockExpectedCallsListForTest expectations; |
| 63 | expectations.addFunction("foobar"); |
| 64 | MockExpectedCallsDidntHappenFailure expectedFailure(test, expectations); |
| 65 | |
| 66 | mock().expectOneCall("foobar"); |
| 67 | |
| 68 | plugin.postTestAction(*test, *result); |
| 69 | |
| 70 | STRCMP_CONTAINS(expectedFailure.getMessage().asCharString(), output.getOutput().asCharString()); |
| 71 | LONGS_EQUAL(0, mock().expectedCallsLeft()); |
| 72 | CHECK_NO_MOCK_FAILURE(); |
| 73 | } |
| 74 | |
| 75 | TEST(MockPlugin, checkExpectationsWorksAlsoWithHierachicalObjects) |
| 76 | { |
nothing calls this directly
no test coverage detected