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

Function createReporter

src/catch2/catch_session.cpp:39–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37
38 namespace {
39 IEventListenerPtr createReporter(std::string const& reporterName, ReporterConfig&& config) {
40 auto reporter = Catch::getRegistryHub().getReporterRegistry().create(reporterName, CATCH_MOVE(config));
41 CATCH_ENFORCE(reporter, "No reporter registered with name: '" << reporterName << '\'');
42
43 return reporter;
44 }
45
46 IEventListenerPtr prepareReporters(Config const* config) {
47 if (Catch::getRegistryHub().getReporterRegistry().getListeners().empty()

Callers 1

prepareReportersFunction · 0.70

Calls 1

createMethod · 0.45

Tested by

no test coverage detected