MCPcopy Create free account
hub / github.com/ChaiScript/ChaiScript / printSummaryRow

Method printSummaryRow

unittests/catch.hpp:12133–12149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12131 }
12132}
12133void 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
12151void ConsoleReporter::printTotalsDivider(Totals const& totals) {
12152 if (totals.testCases.total() > 0) {

Callers

nothing calls this directly

Calls 2

ColourClass · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected