| 13649 | } |
| 13650 | } |
| 13651 | void ConsoleReporter::printSummaryRow(std::string const& label, std::vector<SummaryColumn> const& cols, std::size_t row) { |
| 13652 | for (auto col : cols) { |
| 13653 | std::string value = col.rows[row]; |
| 13654 | if (col.label.empty()) { |
| 13655 | stream << label << ": "; |
| 13656 | if (value != "0") |
| 13657 | stream << value; |
| 13658 | else |
| 13659 | stream << Colour(Colour::Warning) << "- none -"; |
| 13660 | } else if (value != "0") { |
| 13661 | stream << Colour(Colour::LightGrey) << " | "; |
| 13662 | stream << Colour(col.colour) |
| 13663 | << value << ' ' << col.label; |
| 13664 | } |
| 13665 | } |
| 13666 | stream << '\n'; |
| 13667 | } |
| 13668 | |
| 13669 | void ConsoleReporter::printTotalsDivider(Totals const& totals) { |
| 13670 | if (totals.testCases.total() > 0) { |