MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / listReporters

Function listReporters

Source/ThirdParty/catch2/catch.hpp:11357–11377  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11355 }
11356
11357 std::size_t listReporters() {
11358 Catch::cout() << "Available reporters:\n";
11359 IReporterRegistry::FactoryMap const& factories = getRegistryHub().getReporterRegistry().getFactories();
11360 std::size_t maxNameLen = 0;
11361 for( auto const& factoryKvp : factories )
11362 maxNameLen = (std::max)( maxNameLen, factoryKvp.first.size() );
11363
11364 for( auto const& factoryKvp : factories ) {
11365 Catch::cout()
11366 << Column( factoryKvp.first + ":" )
11367 .indent(2)
11368 .width( 5+maxNameLen )
11369 + Column( factoryKvp.second->getDescription() )
11370 .initialIndent(0)
11371 .indent(2)
11372 .width( CATCH_CONFIG_CONSOLE_WIDTH - maxNameLen-8 )
11373 << "\n";
11374 }
11375 Catch::cout() << std::endl;
11376 return factories.size();
11377 }
11378
11379 Option<std::size_t> list( std::shared_ptr<Config> const& config ) {
11380 Option<std::size_t> listedCount;

Callers 1

listFunction · 0.85

Calls 6

ColumnClass · 0.85
initialIndentMethod · 0.80
sizeMethod · 0.45
widthMethod · 0.45
indentMethod · 0.45
getDescriptionMethod · 0.45

Tested by

no test coverage detected