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

summaryrefslogtreecommitdiffhomepage
path: root/src/catch2/internal
diff options
context:
space:
mode:
authorMartin Hořeňovský2022-03-06 15:37:16 +0100
committerMartin Hořeňovský2022-03-06 16:28:21 +0100
commit4dd5e2eeceaf5c65a7648373b44ef5e68490616b (patch)
tree87e2f5d0ef961205d04e972df3c78d84be59a326 /src/catch2/internal
parentf9facc188142f545e34cb8b12e540eed18b30810 (diff)
downloadcatch3-4dd5e2eeceaf5c65a7648373b44ef5e68490616b.tar.gz
Rename base reporter iface IStreamingReporter -> IEventListener
Diffstat (limited to 'src/catch2/internal')
-rw-r--r--src/catch2/internal/catch_list.cpp8
-rw-r--r--src/catch2/internal/catch_list.hpp4
2 files changed, 6 insertions, 6 deletions
diff --git a/src/catch2/internal/catch_list.cpp b/src/catch2/internal/catch_list.cpp
index 6d99dfb1..609d459c 100644
--- a/src/catch2/internal/catch_list.cpp
+++ b/src/catch2/internal/catch_list.cpp
@@ -23,13 +23,13 @@
namespace Catch {
namespace {
- void listTests(IStreamingReporter& reporter, IConfig const& config) {
+ void listTests(IEventListener& reporter, IConfig const& config) {
auto const& testSpec = config.testSpec();
auto matchedTestCases = filterTests(getAllTestCasesSorted(config), testSpec, config);
reporter.listTests(matchedTestCases);
}
- void listTags(IStreamingReporter& reporter, IConfig const& config) {
+ void listTags(IEventListener& reporter, IConfig const& config) {
auto const& testSpec = config.testSpec();
std::vector<TestCaseHandle> matchedTestCases = filterTests(getAllTestCasesSorted(config), testSpec, config);
@@ -51,7 +51,7 @@ namespace Catch {
reporter.listTags(infos);
}
- void listReporters(IStreamingReporter& reporter) {
+ void listReporters(IEventListener& reporter) {
std::vector<ReporterDescription> descriptions;
IReporterRegistry::FactoryMap const& factories = getRegistryHub().getReporterRegistry().getFactories();
@@ -86,7 +86,7 @@ namespace Catch {
return out;
}
- bool list( IStreamingReporter& reporter, Config const& config ) {
+ bool list( IEventListener& reporter, Config const& config ) {
bool listed = false;
if (config.listTests()) {
listed = true;
diff --git a/src/catch2/internal/catch_list.hpp b/src/catch2/internal/catch_list.hpp
index 2d1952c5..9caf4cf6 100644
--- a/src/catch2/internal/catch_list.hpp
+++ b/src/catch2/internal/catch_list.hpp
@@ -16,7 +16,7 @@
namespace Catch {
- struct IStreamingReporter;
+ class IEventListener;
class Config;
@@ -32,7 +32,7 @@ namespace Catch {
std::size_t count = 0;
};
- bool list( IStreamingReporter& reporter, Config const& config );
+ bool list( IEventListener& reporter, Config const& config );
} // end namespace Catch