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

Function createReporter

extras/catch_amalgamated.cpp:1204–1209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1202
1203 namespace {
1204 IEventListenerPtr createReporter(std::string const& reporterName, ReporterConfig&& config) {
1205 auto reporter = Catch::getRegistryHub().getReporterRegistry().create(reporterName, CATCH_MOVE(config));
1206 CATCH_ENFORCE(reporter, "No reporter registered with name: '" << reporterName << '\'');
1207
1208 return reporter;
1209 }
1210
1211 IEventListenerPtr prepareReporters(Config const* config) {
1212 if (Catch::getRegistryHub().getReporterRegistry().getListeners().empty()

Callers 1

prepareReportersFunction · 0.70

Calls 1

createMethod · 0.45

Tested by

no test coverage detected