Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/src/catch2/internal/catch_list.cpp
diff options
context:
space:
mode:
authorMartin Hořeňovský2021-01-16 15:48:22 +0100
committerMartin Hořeňovský2021-01-16 15:48:29 +0100
commit5509ceff608aafc402116a081200f3ff2b4805ed (patch)
tree4357e9fecf9129b616572adccb9bfa3ecec90327 /src/catch2/internal/catch_list.cpp
parent74f2f4ba5e84355e4f123ec807c1ec3b29a0daa7 (diff)
downloadcatch3-5509ceff608aafc402116a081200f3ff2b4805ed.tar.gz
Remove superfluous IConfig argument from IStreamingReporter::list*
The previous commit made it so that the `IConfig` is stored in `IStreamingReporter` and thus always available.
Diffstat (limited to 'src/catch2/internal/catch_list.cpp')
-rw-r--r--src/catch2/internal/catch_list.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/catch2/internal/catch_list.cpp b/src/catch2/internal/catch_list.cpp
index 1cedb3ae..d7969096 100644
--- a/src/catch2/internal/catch_list.cpp
+++ b/src/catch2/internal/catch_list.cpp
@@ -24,7 +24,7 @@ namespace Catch {
void listTests(IStreamingReporter& reporter, IConfig const& config) {
auto const& testSpec = config.testSpec();
auto matchedTestCases = filterTests(getAllTestCasesSorted(config), testSpec, config);
- reporter.listTests(matchedTestCases, config);
+ reporter.listTests(matchedTestCases);
}
void listTags(IStreamingReporter& reporter, IConfig const& config) {
@@ -46,10 +46,10 @@ namespace Catch {
infos.push_back(std::move(tagc.second));
}
- reporter.listTags(infos, config);
+ reporter.listTags(infos);
}
- void listReporters(IStreamingReporter& reporter, IConfig const& config) {
+ void listReporters(IStreamingReporter& reporter) {
std::vector<ReporterDescription> descriptions;
IReporterRegistry::FactoryMap const& factories = getRegistryHub().getReporterRegistry().getFactories();
@@ -58,7 +58,7 @@ namespace Catch {
descriptions.push_back({ fac.first, fac.second->getDescription() });
}
- reporter.listReporters(descriptions, config);
+ reporter.listReporters(descriptions);
}
} // end anonymous namespace
@@ -96,7 +96,7 @@ namespace Catch {
}
if (config.listReporters()) {
listed = true;
- listReporters(reporter, config);
+ listReporters(reporter);
}
return listed;
}