| 12131 | } |
| 12132 | } |
| 12133 | void ConsoleReporter::printSummaryRow(std::string const& label, std::vector<SummaryColumn> const& cols, std::size_t row) { |
| 12134 | for (auto col : cols) { |
| 12135 | std::string value = col.rows[row]; |
| 12136 | if (col.label.empty()) { |
| 12137 | stream << label << ": "; |
| 12138 | if (value != "0") |
| 12139 | stream << value; |
| 12140 | else |
| 12141 | stream << Colour(Colour::Warning) << "- none -"; |
| 12142 | } else if (value != "0") { |
| 12143 | stream << Colour(Colour::LightGrey) << " | "; |
| 12144 | stream << Colour(col.colour) |
| 12145 | << value << ' ' << col.label; |
| 12146 | } |
| 12147 | } |
| 12148 | stream << '\n'; |
| 12149 | } |
| 12150 | |
| 12151 | void ConsoleReporter::printTotalsDivider(Totals const& totals) { |
| 12152 | if (totals.testCases.total() > 0) { |