mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-22 13:26:10 +01:00
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:
parent
efd8cc8777
commit
4dcf8382c7
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user