MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / create

Method create

extlibs/catch/include/catch/catch.hpp:11990–11995  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11988 ReporterRegistry::~ReporterRegistry() = default;
11989
11990 IStreamingReporterPtr ReporterRegistry::create( std::string const& name, IConfigPtr const& config ) const {
11991 auto it = m_factories.find( name );
11992 if( it == m_factories.end() )
11993 return nullptr;
11994 return it->second->create( ReporterConfig( config ) );
11995 }
11996
11997 void ReporterRegistry::registerReporter( std::string const& name, IReporterFactoryPtr const& factory ) {
11998 m_factories.emplace(name, factory);

Callers 2

createReporterFunction · 0.45
makeReporterFunction · 0.45

Calls 3

ReporterConfigClass · 0.85
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected