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.
This commit is contained in:
Martin Hořeňovský 2021-09-13 23:09:08 +02:00
parent efd8cc8777
commit 4dcf8382c7
No known key found for this signature in database
GPG Key ID: DE48307B8B0D381A

View File

@ -55,6 +55,9 @@ namespace Catch {
m_sectionStack.push_back(_sectionInfo); m_sectionStack.push_back(_sectionInfo);
} }
void assertionStarting( AssertionInfo const& ) override {}
bool assertionEnded( AssertionStats const& ) override { return true; }
void sectionEnded(SectionStats const& /* _sectionStats */) override { void sectionEnded(SectionStats const& /* _sectionStats */) override {
m_sectionStack.pop_back(); m_sectionStack.pop_back();
} }