MCPcopy Create free account
hub / github.com/RenderKit/embree / printSummaryRow

Method printSummaryRow

tutorials/external/catch.hpp:13942–13958  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13940 }
13941}
13942void ConsoleReporter::printSummaryRow(std::string const& label, std::vector<SummaryColumn> const& cols, std::size_t row) {
13943 for (auto col : cols) {
13944 std::string value = col.rows[row];
13945 if (col.label.empty()) {
13946 stream << label << ": ";
13947 if (value != "0")
13948 stream << value;
13949 else
13950 stream << Colour(Colour::Warning) << "- none -";
13951 } else if (value != "0") {
13952 stream << Colour(Colour::LightGrey) << " | ";
13953 stream << Colour(col.colour)
13954 << value << ' ' << col.label;
13955 }
13956 }
13957 stream << '\n';
13958}
13959
13960void ConsoleReporter::printTotalsDivider(Totals const& totals) {
13961 if (totals.testCases.total() > 0) {

Callers

nothing calls this directly

Calls 2

ColourClass · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected