MCPcopy Create free account
hub / github.com/RenderKit/oidn / listReporters

Function listReporters

external/catch.hpp:11353–11373  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

listFunction · 0.85

Calls 6

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

Tested by

no test coverage detected