| 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, |
no test coverage detected