diff options
| author | Martin Hořeňovský | 2020-08-11 09:34:25 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2020-08-11 09:39:00 +0200 |
| commit | 6dc834526103e3b9ee7fab26a69cd7942924bd91 (patch) | |
| tree | d0e24afeb76d611ee61a6b1440e87d1a11e910cb /src/catch2/internal/catch_list.cpp | |
| parent | 24b83edf8aca78c975c5589baf22a5de311498a7 (diff) | |
| download | catch3-6dc834526103e3b9ee7fab26a69cd7942924bd91.tar.gz | |
IStreamingReporter::list* only uses IConfig instead of full Config
As the full `Config` is not needed, the TUs implementing the `list*`
functions can require the less heavy header `catch_interfaces_config.hpp`
instead of the much heavier `catch_config.hpp`.
This commit also fixes up some other TUs that include `Config`,
while using just `IConfig`, to cleanup the includes further.
Diffstat (limited to 'src/catch2/internal/catch_list.cpp')
| -rw-r--r-- | src/catch2/internal/catch_list.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/catch2/internal/catch_list.cpp b/src/catch2/internal/catch_list.cpp index ab3db4df..3f1208f1 100644 --- a/src/catch2/internal/catch_list.cpp +++ b/src/catch2/internal/catch_list.cpp @@ -22,13 +22,13 @@ namespace Catch { namespace { - void listTests(IStreamingReporter& reporter, Config const& config) { + void listTests(IStreamingReporter& reporter, IConfig const& config) { auto const& testSpec = config.testSpec(); auto matchedTestCases = filterTests(getAllTestCasesSorted(config), testSpec, config); reporter.listTests(matchedTestCases, config); } - void listTags(IStreamingReporter& reporter, Config const& config) { + void listTags(IStreamingReporter& reporter, IConfig const& config) { auto const& testSpec = config.testSpec(); std::vector<TestCaseHandle> matchedTestCases = filterTests(getAllTestCasesSorted(config), testSpec, config); @@ -50,7 +50,7 @@ namespace Catch { reporter.listTags(infos, config); } - void listReporters(IStreamingReporter& reporter, Config const& config) { + void listReporters(IStreamingReporter& reporter, IConfig const& config) { std::vector<ReporterDescription> descriptions; IReporterRegistry::FactoryMap const& factories = getRegistryHub().getReporterRegistry().getFactories(); |