assertionEnded event in reporters no longer returns bool

This commit is contained in:
Martin Hořeňovský
2021-09-15 18:57:56 +02:00
parent 013edc208b
commit f314fa1f8c
23 changed files with 28 additions and 55 deletions

View File

@@ -86,7 +86,7 @@ namespace Catch {
void XmlReporter::assertionStarting( AssertionInfo const& ) { }
bool XmlReporter::assertionEnded( AssertionStats const& assertionStats ) {
void XmlReporter::assertionEnded( AssertionStats const& assertionStats ) {
AssertionResult const& result = assertionStats.assertionResult;
@@ -107,7 +107,7 @@ namespace Catch {
// Drop out if result was successful but we're not printing them.
if( !includeResults && result.getResultType() != ResultWas::Warning )
return true;
return;
// Print the expression if there is one.
@@ -157,8 +157,6 @@ namespace Catch {
if( result.hasExpression() )
m_xml.endElement();
return true;
}
void XmlReporter::sectionEnded( SectionStats const& sectionStats ) {