MCPcopy Create free account
hub / github.com/catchorg/Catch2 / create

Method create

extras/catch_amalgamated.cpp:5586–5592  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5584 ReporterRegistry::~ReporterRegistry() = default;
5585
5586 IEventListenerPtr
5587 ReporterRegistry::create( std::string const& name,
5588 ReporterConfig&& config ) const {
5589 auto it = m_impl->factories.find( name );
5590 if ( it == m_impl->factories.end() ) return nullptr;
5591 return it->second->create( CATCH_MOVE( config ) );
5592 }
5593
5594 void ReporterRegistry::registerReporter( std::string const& name,
5595 IReporterFactoryPtr factory ) {

Callers 2

createReporterFunction · 0.45
prepareReportersFunction · 0.45

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected