MCPcopy Create free account
hub / github.com/EmbeddedRPC/erpc / OnTestCaseEnd

Method OnTestCaseEnd

test/common/gtest/gtest.cpp:4585–4595  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4583}
4584
4585void PrettyUnitTestResultPrinter::OnTestCaseEnd(const TestCase& test_case) {
4586 if (!GTEST_FLAG(print_time)) return;
4587
4588 const std::string counts =
4589 FormatCountableNoun(test_case.test_to_run_count(), "test", "tests");
4590 ColoredPrintf(COLOR_GREEN, "[----------] ");
4591 printf("%s from %s (%s ms total)\n\n",
4592 counts.c_str(), test_case.name(),
4593 internal::StreamableToString(test_case.elapsed_time()).c_str());
4594 fflush(stdout);
4595}
4596
4597void PrettyUnitTestResultPrinter::OnEnvironmentsTearDownStart(
4598 const UnitTest& /*unit_test*/) {

Callers 1

RunMethod · 0.45

Calls 6

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

Tested by

no test coverage detected