MCPcopy Create free account
hub / github.com/awslabs/aws-lambda-cpp / PrintSkippedTests

Method PrintSkippedTests

tests/gtest/gtest-all.cc:4766–4787  ·  view source on GitHub ↗

Internal helper for printing the list of skipped tests.

Source from the content-addressed store, hash-verified

4764
4765// Internal helper for printing the list of skipped tests.
4766void 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
4789void PrettyUnitTestResultPrinter::OnTestIterationEnd(const UnitTest& unit_test,
4790 int /*iteration*/) {

Callers

nothing calls this directly

Calls 7

ColoredPrintfFunction · 0.85
skipped_test_countMethod · 0.80
GetTestSuiteMethod · 0.80
total_test_countMethod · 0.80
GetTestInfoMethod · 0.80
SkippedMethod · 0.80

Tested by

no test coverage detected