mirror of
https://github.com/catchorg/Catch2.git
synced 2025-09-20 11:35:39 +02:00
Eliminate some work when results won't be reported.
This commit is contained in:

committed by
Martin Hořeňovský

parent
28741467d5
commit
2212cdfe26
@@ -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;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user