MCPcopy Create free account
hub / github.com/PyMesh/PyMesh / OnTestCaseEnd

Method OnTestCaseEnd

tests/external/gmock-1.7.0/gtest/src/gtest.cc:2812–2822  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2810}
2811
2812void PrettyUnitTestResultPrinter::OnTestCaseEnd(const TestCase& test_case) {
2813 if (!GTEST_FLAG(print_time)) return;
2814
2815 const std::string counts =
2816 FormatCountableNoun(test_case.test_to_run_count(), "test", "tests");
2817 ColoredPrintf(COLOR_GREEN, "[----------] ");
2818 printf("%s from %s (%s ms total)\n\n",
2819 counts.c_str(), test_case.name(),
2820 internal::StreamableToString(test_case.elapsed_time()).c_str());
2821 fflush(stdout);
2822}
2823
2824void PrettyUnitTestResultPrinter::OnEnvironmentsTearDownStart(
2825 const UnitTest& /*unit_test*/) {

Callers 1

RunMethod · 0.45

Calls 5

FormatCountableNounFunction · 0.70
ColoredPrintfFunction · 0.70
StreamableToStringFunction · 0.50
test_to_run_countMethod · 0.45
elapsed_timeMethod · 0.45

Tested by

no test coverage detected