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

Method OnTestCaseEnd

tests/gtest/gtest-all.cc:4722–4731  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4720}
4721
4722void PrettyUnitTestResultPrinter::OnTestCaseEnd(const TestSuite& test_suite) {
4723 if (!GTEST_FLAG(print_time)) return;
4724
4725 const std::string counts =
4726 FormatCountableNoun(test_suite.test_to_run_count(), "test", "tests");
4727 ColoredPrintf(COLOR_GREEN, "[----------] ");
4728 printf("%s from %s (%s ms total)\n\n", counts.c_str(), test_suite.name(),
4729 internal::StreamableToString(test_suite.elapsed_time()).c_str());
4730 fflush(stdout);
4731}
4732
4733void PrettyUnitTestResultPrinter::OnEnvironmentsTearDownStart(
4734 const UnitTest& /*unit_test*/) {

Callers 1

RunMethod · 0.45

Calls 5

FormatCountableNounFunction · 0.85
ColoredPrintfFunction · 0.85
StreamableToStringFunction · 0.85
test_to_run_countMethod · 0.80
elapsed_timeMethod · 0.80

Tested by

no test coverage detected