Called after an assertion failure.
| 4683 | |
| 4684 | // Called after an assertion failure. |
| 4685 | void PrettyUnitTestResultPrinter::OnTestPartResult( |
| 4686 | const TestPartResult& result) { |
| 4687 | switch (result.type()) { |
| 4688 | // If the test part succeeded, or was skipped, |
| 4689 | // we don't need to do anything. |
| 4690 | case TestPartResult::kSkip: |
| 4691 | case TestPartResult::kSuccess: |
| 4692 | return; |
| 4693 | default: |
| 4694 | // Print failure message from the assertion |
| 4695 | // (e.g. expected this and got that). |
| 4696 | PrintTestPartResult(result); |
| 4697 | fflush(stdout); |
| 4698 | } |
| 4699 | } |
| 4700 | |
| 4701 | void PrettyUnitTestResultPrinter::OnTestEnd(const TestInfo& test_info) { |
| 4702 | if (test_info.result()->Passed()) { |
no test coverage detected