Internal helper for printing the list of skipped tests.
| 4764 | |
| 4765 | // Internal helper for printing the list of skipped tests. |
| 4766 | void PrettyUnitTestResultPrinter::PrintSkippedTests(const UnitTest& unit_test) { |
| 4767 | const int skipped_test_count = unit_test.skipped_test_count(); |
| 4768 | if (skipped_test_count == 0) { |
| 4769 | return; |
| 4770 | } |
| 4771 | |
| 4772 | for (int i = 0; i < unit_test.total_test_suite_count(); ++i) { |
| 4773 | const TestSuite& test_suite = *unit_test.GetTestSuite(i); |
| 4774 | if (!test_suite.should_run() || (test_suite.skipped_test_count() == 0)) { |
| 4775 | continue; |
| 4776 | } |
| 4777 | for (int j = 0; j < test_suite.total_test_count(); ++j) { |
| 4778 | const TestInfo& test_info = *test_suite.GetTestInfo(j); |
| 4779 | if (!test_info.should_run() || !test_info.result()->Skipped()) { |
| 4780 | continue; |
| 4781 | } |
| 4782 | ColoredPrintf(COLOR_GREEN, "[ SKIPPED ] "); |
| 4783 | printf("%s.%s", test_suite.name(), test_info.name()); |
| 4784 | printf("\n"); |
| 4785 | } |
| 4786 | } |
| 4787 | } |
| 4788 | |
| 4789 | void PrettyUnitTestResultPrinter::OnTestIterationEnd(const UnitTest& unit_test, |
| 4790 | int /*iteration*/) { |
nothing calls this directly
no test coverage detected