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

Method OnTestCaseStart

tests/gtest/gtest-all.cc:4664–4675  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4662}
4663
4664void PrettyUnitTestResultPrinter::OnTestCaseStart(const TestSuite& test_suite) {
4665 const std::string counts =
4666 FormatCountableNoun(test_suite.test_to_run_count(), "test", "tests");
4667 ColoredPrintf(COLOR_GREEN, "[----------] ");
4668 printf("%s from %s", counts.c_str(), test_suite.name());
4669 if (test_suite.type_param() == nullptr) {
4670 printf("\n");
4671 } else {
4672 printf(", where %s = %s\n", kTypeParamLabel, test_suite.type_param());
4673 }
4674 fflush(stdout);
4675}
4676
4677void PrettyUnitTestResultPrinter::OnTestStart(const TestInfo& test_info) {
4678 ColoredPrintf(COLOR_GREEN, "[ RUN ] ");

Callers 1

RunMethod · 0.45

Calls 3

FormatCountableNounFunction · 0.85
ColoredPrintfFunction · 0.85
test_to_run_countMethod · 0.80

Tested by

no test coverage detected