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

summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorMartin Hořeňovský2021-09-13 23:09:08 +0200
committerMartin Hořeňovský2021-09-14 12:41:24 +0200
commit4dcf8382c70c25a3ccfbe5d9e37276adf7c6058f (patch)
tree372f45e79b871a9371af38021b9037d474066abe /src
parentefd8cc8777406457a34e15313076ac3a77d4e54b (diff)
downloadcatch3-4dcf8382c70c25a3ccfbe5d9e37276adf7c6058f.tar.gz
Default-implement assertion* events in StreamingReporterBase
This means that a reporter deriving from `StreamingReporterBase` does not have to override them if it isn't interested in the individual assertions.
Diffstat (limited to 'src')
-rw-r--r--src/catch2/reporters/catch_reporter_streaming_base.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/catch2/reporters/catch_reporter_streaming_base.hpp b/src/catch2/reporters/catch_reporter_streaming_base.hpp
index ddd10c5e..c51595e6 100644
--- a/src/catch2/reporters/catch_reporter_streaming_base.hpp
+++ b/src/catch2/reporters/catch_reporter_streaming_base.hpp
@@ -55,6 +55,9 @@ namespace Catch {
m_sectionStack.push_back(_sectionInfo);
}
+ void assertionStarting( AssertionInfo const& ) override {}
+ bool assertionEnded( AssertionStats const& ) override { return true; }
+
void sectionEnded(SectionStats const& /* _sectionStats */) override {
m_sectionStack.pop_back();
}