| 12022 | } |
| 12023 | } |
| 12024 | void ConsoleReporter::printSummaryRow(std::string const &label, std::vector<SummaryColumn> const &cols, |
| 12025 | std::size_t row) { |
| 12026 | for (auto col : cols) { |
| 12027 | std::string value = col.rows[row]; |
| 12028 | if (col.label.empty()) { |
| 12029 | stream << label << ": "; |
| 12030 | if (value != "0") |
| 12031 | stream << value; |
| 12032 | else |
| 12033 | stream << Colour(Colour::Warning) << "- none -"; |
| 12034 | } else if (value != "0") { |
| 12035 | stream << Colour(Colour::LightGrey) << " | "; |
| 12036 | stream << Colour(col.colour) << value << ' ' << col.label; |
| 12037 | } |
| 12038 | } |
| 12039 | stream << '\n'; |
| 12040 | } |
| 12041 | |
| 12042 | void ConsoleReporter::printTotalsDivider(Totals const &totals) { |
| 12043 | if (totals.testCases.total() > 0) { |