| 16443 | }; |
| 16444 | |
| 16445 | ConsoleReporter::ConsoleReporter(ReporterConfig const& config) |
| 16446 | : StreamingReporterBase(config), |
| 16447 | m_tablePrinter(new TablePrinter(config.stream(), |
| 16448 | [&config]() -> std::vector<ColumnInfo> { |
| 16449 | if (config.fullConfig()->benchmarkNoAnalysis()) |
| 16450 | { |
| 16451 | return{ |
| 16452 | { "benchmark name", CATCH_CONFIG_CONSOLE_WIDTH - 43, ColumnInfo::Left }, |
| 16453 | { " samples", 14, ColumnInfo::Right }, |
| 16454 | { " iterations", 14, ColumnInfo::Right }, |
| 16455 | { " mean", 14, ColumnInfo::Right } |
| 16456 | }; |
| 16457 | } |
| 16458 | else |
| 16459 | { |
| 16460 | return{ |
| 16461 | { "benchmark name", CATCH_CONFIG_CONSOLE_WIDTH - 43, ColumnInfo::Left }, |
| 16462 | { "samples mean std dev", 14, ColumnInfo::Right }, |
| 16463 | { "iterations low mean low std dev", 14, ColumnInfo::Right }, |
| 16464 | { "estimated high mean high std dev", 14, ColumnInfo::Right } |
| 16465 | }; |
| 16466 | } |
| 16467 | }())) {} |
| 16468 | ConsoleReporter::~ConsoleReporter() = default; |
| 16469 | |
| 16470 | std::string ConsoleReporter::getDescription() { |
nothing calls this directly
no test coverage detected