| 13940 | } |
| 13941 | } |
| 13942 | void ConsoleReporter::printSummaryRow(std::string const& label, std::vector<SummaryColumn> const& cols, std::size_t row) { |
| 13943 | for (auto col : cols) { |
| 13944 | std::string value = col.rows[row]; |
| 13945 | if (col.label.empty()) { |
| 13946 | stream << label << ": "; |
| 13947 | if (value != "0") |
| 13948 | stream << value; |
| 13949 | else |
| 13950 | stream << Colour(Colour::Warning) << "- none -"; |
| 13951 | } else if (value != "0") { |
| 13952 | stream << Colour(Colour::LightGrey) << " | "; |
| 13953 | stream << Colour(col.colour) |
| 13954 | << value << ' ' << col.label; |
| 13955 | } |
| 13956 | } |
| 13957 | stream << '\n'; |
| 13958 | } |
| 13959 | |
| 13960 | void ConsoleReporter::printTotalsDivider(Totals const& totals) { |
| 13961 | if (totals.testCases.total() > 0) { |