MCPcopy Create free account
hub / github.com/apache/thrift / createReporter

Function createReporter

compiler/cpp/tests/catch/catch.hpp:6912–6920  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6910namespace 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();

Callers 1

makeReporterFunction · 0.85

Calls 3

strMethod · 0.80
createMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected