| 6910 | namespace Catch { |
| 6911 | |
| 6912 | Ptr<IStreamingReporter> createReporter( std::string const& reporterName, Ptr<Config> const& config ) { |
| 6913 | Ptr<IStreamingReporter> reporter = getRegistryHub().getReporterRegistry().create( reporterName, config.get() ); |
| 6914 | if( !reporter ) { |
| 6915 | std::ostringstream oss; |
| 6916 | oss << "No reporter registered with name: '" << reporterName << "'"; |
| 6917 | throw std::domain_error( oss.str() ); |
| 6918 | } |
| 6919 | return reporter; |
| 6920 | } |
| 6921 | |
| 6922 | Ptr<IStreamingReporter> makeReporter( Ptr<Config> const& config ) { |
| 6923 | std::vector<std::string> reporters = config->getReporterNames(); |
no test coverage detected