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

Class ConsoleReporter

tests/catch.hpp:5257–5304  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5255 class TablePrinter;
5256
5257 struct ConsoleReporter : StreamingReporterBase<ConsoleReporter> {
5258 std::unique_ptr<TablePrinter> m_tablePrinter;
5259
5260 ConsoleReporter(ReporterConfig const& config);
5261 ~ConsoleReporter() override;
5262 static std::string getDescription();
5263
5264 void noMatchingTestCases(std::string const& spec) override;
5265
5266 void assertionStarting(AssertionInfo const&) override;
5267
5268 bool assertionEnded(AssertionStats const& _assertionStats) override;
5269
5270 void sectionStarting(SectionInfo const& _sectionInfo) override;
5271 void sectionEnded(SectionStats const& _sectionStats) override;
5272
5273 void benchmarkStarting(BenchmarkInfo const& info) override;
5274 void benchmarkEnded(BenchmarkStats const& stats) override;
5275
5276 void testCaseEnded(TestCaseStats const& _testCaseStats) override;
5277 void testGroupEnded(TestGroupStats const& _testGroupStats) override;
5278 void testRunEnded(TestRunStats const& _testRunStats) override;
5279
5280 private:
5281
5282 void lazyPrint();
5283
5284 void lazyPrintWithoutClosingBenchmarkTable();
5285 void lazyPrintRunInfo();
5286 void lazyPrintGroupInfo();
5287 void printTestCaseAndSectionHeader();
5288
5289 void printClosedHeader(std::string const& _name);
5290 void printOpenHeader(std::string const& _name);
5291
5292 // if string has a : in first line will set indent to follow it on
5293 // subsequent lines
5294 void printHeaderString(std::string const& _string, std::size_t indent = 0);
5295
5296 void printTotals(Totals const& totals);
5297 void printSummaryRow(std::string const& label, std::vector<SummaryColumn> const& cols, std::size_t row);
5298
5299 void printTotalsDivider(Totals const& totals);
5300 void printSummaryDivider();
5301
5302 private:
5303 bool m_headerPrinted = false;
5304 };
5305
5306} // end namespace Catch
5307

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected