MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/TriangleMeshDistance / printSummaryRow

Method printSummaryRow

tests/catch.hpp:13651–13667  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13649 }
13650}
13651void 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
13669void ConsoleReporter::printTotalsDivider(Totals const& totals) {
13670 if (totals.testCases.total() > 0) {

Callers

nothing calls this directly

Calls 2

ColourClass · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected