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

Method OnTestCaseStart

test/common/gtest/gtest.cpp:4534–4545  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4532}
4533
4534void PrettyUnitTestResultPrinter::OnTestCaseStart(const TestCase& test_case) {
4535 const std::string counts =
4536 FormatCountableNoun(test_case.test_to_run_count(), "test", "tests");
4537 ColoredPrintf(COLOR_GREEN, "[----------] ");
4538 printf("%s from %s", counts.c_str(), test_case.name());
4539 if (test_case.type_param() == NULL) {
4540 printf("\n");
4541 } else {
4542 printf(", where %s = %s\n", kTypeParamLabel, test_case.type_param());
4543 }
4544 fflush(stdout);
4545}
4546
4547void PrettyUnitTestResultPrinter::OnTestStart(const TestInfo& test_info) {
4548 ColoredPrintf(COLOR_GREEN, "[ RUN ] ");

Callers 1

RunMethod · 0.45

Calls 4

FormatCountableNounFunction · 0.85
ColoredPrintfFunction · 0.85
test_to_run_countMethod · 0.80
nameMethod · 0.80

Tested by

no test coverage detected