| 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() |
no test coverage detected