Cache IResultCapture in AssertionHandler to avoid repeated lookups
This commit is contained in:
parent
9329d97a43
commit
f417995afc
2 changed files with 10 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue