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

Function makeReporter

compiler/cpp/tests/catch/catch.hpp:6922–6933  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6920 }
6921
6922 Ptr<IStreamingReporter> makeReporter( Ptr<Config> const& config ) {
6923 std::vector<std::string> reporters = config->getReporterNames();
6924 if( reporters.empty() )
6925 reporters.push_back( "console" );
6926
6927 Ptr<IStreamingReporter> reporter;
6928 for( std::vector<std::string>::const_iterator it = reporters.begin(), itEnd = reporters.end();
6929 it != itEnd;
6930 ++it )
6931 reporter = addReporter( reporter, createReporter( *it, config ) );
6932 return reporter;
6933 }
6934 Ptr<IStreamingReporter> addListeners( Ptr<IConfig const> const& config, Ptr<IStreamingReporter> reporters ) {
6935 IReporterRegistry::Listeners listeners = getRegistryHub().getReporterRegistry().getListeners();
6936 for( IReporterRegistry::Listeners::const_iterator it = listeners.begin(), itEnd = listeners.end();

Callers 1

runTestsFunction · 0.85

Calls 5

addReporterFunction · 0.85
createReporterFunction · 0.85
emptyMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected