mirror of
https://github.com/catchorg/Catch2.git
synced 2025-09-19 19:25:38 +02:00
Cache IResultCapture in AssertionHandler to avoid repeated lookups
This commit is contained in:
@@ -15,6 +15,7 @@ namespace Catch {
|
||||
|
||||
struct TestFailureException{};
|
||||
struct AssertionResultData;
|
||||
struct IResultCapture;
|
||||
|
||||
class LazyExpression {
|
||||
friend class AssertionHandler;
|
||||
@@ -37,6 +38,7 @@ namespace Catch {
|
||||
bool m_shouldDebugBreak = false;
|
||||
bool m_shouldThrow = false;
|
||||
bool m_completed = false;
|
||||
IResultCapture& m_resultCapture;
|
||||
|
||||
public:
|
||||
AssertionHandler
|
||||
|
Reference in New Issue
Block a user