Eliminate some work when results won't be reported.

This commit is contained in:
Neal Coombes
2017-06-26 14:30:23 -05:00
committed by Martin Hořeňovský
parent 28741467d5
commit 2212cdfe26
6 changed files with 60 additions and 20 deletions

View File

@@ -84,6 +84,12 @@ namespace Catch {
virtual void handleFatalErrorCondition(std::string const& message) override;
virtual bool lastAssertionPassed() override;
virtual void assertionPassed();
virtual void assertionRun();
public:
// !TBD We need to do this another way!
bool aborting() const override;
@@ -113,6 +119,7 @@ namespace Catch {
std::vector<SectionEndInfo> m_unfinishedSections;
std::vector<ITracker*> m_activeSections;
TrackerContext m_trackerContext;
size_t m_prevPassed = 0;
bool m_shouldReportUnexpected = true;
};