MCPcopy Create free account
hub / github.com/catchorg/Catch2 / printSummaryRow

Function printSummaryRow

extras/catch_amalgamated.cpp:10556–10579  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10554 };
10555
10556 void printSummaryRow( std::ostream& stream,
10557 ColourImpl& colour,
10558 StringRef label,
10559 std::vector<SummaryColumn> const& cols,
10560 std::size_t row ) {
10561 for ( auto const& col : cols ) {
10562 auto const& value = col.getRow( row );
10563 auto const& suffix = col.getSuffix();
10564 if ( suffix.empty() ) {
10565 stream << label << ": ";
10566 if ( value != "0" ) {
10567 stream << value;
10568 } else {
10569 stream << colour.guardColour( Colour::Warning )
10570 << "- none -";
10571 }
10572 } else if ( value != "0" ) {
10573 stream << colour.guardColour( Colour::LightGrey ) << " | "
10574 << colour.guardColour( col.getColour() ) << value
10575 << ' ' << suffix;
10576 }
10577 }
10578 stream << '\n';
10579 }
10580 } // namespace
10581
10582 void printTestRunTotals( std::ostream& stream,

Callers 1

printTestRunTotalsFunction · 0.70

Calls 3

emptyMethod · 0.45
guardColourMethod · 0.45
getColourMethod · 0.45

Tested by

no test coverage detected