MCPcopy Create free account
hub / github.com/CodingGay/BlackDex / printSummaryRow

Method printSummaryRow

Bcore/src/main/cpp/Dobby/tests/catch.hpp:12024–12040  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12022 }
12023}
12024void 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
12042void ConsoleReporter::printTotalsDivider(Totals const &totals) {
12043 if (totals.testCases.total() > 0) {

Callers

nothing calls this directly

Calls 2

ColourClass · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected