| 4243 | } |
| 4244 | |
| 4245 | void PrettyUnitTestResultPrinter::OnTestCaseStart(const TestCase& test_case) { |
| 4246 | const std::string counts = |
| 4247 | FormatCountableNoun(test_case.test_to_run_count(), "test", "tests"); |
| 4248 | ColoredPrintf(COLOR_GREEN, "[----------] "); |
| 4249 | printf("%s from %s", counts.c_str(), test_case.name()); |
| 4250 | if (test_case.type_param() == NULL) { |
| 4251 | printf("\n"); |
| 4252 | } else { |
| 4253 | printf(", where %s = %s\n", kTypeParamLabel, test_case.type_param()); |
| 4254 | } |
| 4255 | fflush(stdout); |
| 4256 | } |
| 4257 | |
| 4258 | void PrettyUnitTestResultPrinter::OnTestStart(const TestInfo& test_info) { |
| 4259 | ColoredPrintf(COLOR_GREEN, "[ RUN ] "); |
no test coverage detected