MCPcopy Create free account
hub / github.com/CodingGay/BlackDex / makeReporter

Function makeReporter

Bcore/src/main/cpp/Dobby/tests/catch.hpp:9018–9031  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9016}
9017
9018IStreamingReporterPtr makeReporter(std::shared_ptr<Config> const &config) {
9019 if (Catch::getRegistryHub().getReporterRegistry().getListeners().empty()) {
9020 return createReporter(config->getReporterName(), config);
9021 }
9022
9023 auto multi = std::unique_ptr<ListeningReporter>(new ListeningReporter);
9024
9025 auto const &listeners = Catch::getRegistryHub().getReporterRegistry().getListeners();
9026 for (auto const &listener : listeners) {
9027 multi->addListener(listener->create(Catch::ReporterConfig(config)));
9028 }
9029 multi->addReporter(createReporter(config->getReporterName(), config));
9030 return std::move(multi);
9031}
9032
9033Catch::Totals runTests(std::shared_ptr<Config> const &config) {
9034 // FixMe: Add listeners in order first, then add reporters.

Callers 1

runTestsFunction · 0.85

Calls 6

createReporterFunction · 0.85
ReporterConfigClass · 0.85
addListenerMethod · 0.80
addReporterMethod · 0.80
emptyMethod · 0.45
createMethod · 0.45

Tested by

no test coverage detected