Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
Catch::AssertionResultData Struct Reference

#include <catch_assertionresult.h>

Collaboration diagram for Catch::AssertionResultData:

Public Member Functions

 AssertionResultData ()=delete
 
 AssertionResultData (ResultWas::OfType _resultType, LazyExpression const &_lazyExpression)
 
std::string reconstructExpression () const
 

Public Attributes

std::string message
 
std::string reconstructedExpression
 
LazyExpression lazyExpression
 
ResultWas::OfType resultType
 

Detailed Description

Definition at line 20 of file catch_assertionresult.h.

Constructor & Destructor Documentation

◆ AssertionResultData() [1/2]

Catch::AssertionResultData::AssertionResultData ( )
delete

◆ AssertionResultData() [2/2]

Catch::AssertionResultData::AssertionResultData ( ResultWas::OfType _resultType,
LazyExpression const & _lazyExpression )

Definition at line 12 of file catch_assertionresult.cpp.

12 :
13 lazyExpression(_lazyExpression),
14 resultType(_resultType) {}

Member Function Documentation

◆ reconstructExpression()

std::string Catch::AssertionResultData::reconstructExpression ( ) const

Definition at line 16 of file catch_assertionresult.cpp.

16 {
17
18 if( reconstructedExpression.empty() ) {
19 if( lazyExpression ) {
20 ReusableStringStream rss;
21 rss << lazyExpression;
22 reconstructedExpression = rss.str();
23 }
24 }
26 }
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ lazyExpression

LazyExpression Catch::AssertionResultData::lazyExpression

Definition at line 28 of file catch_assertionresult.h.

◆ message

std::string Catch::AssertionResultData::message

Definition at line 26 of file catch_assertionresult.h.

◆ reconstructedExpression

std::string Catch::AssertionResultData::reconstructedExpression
mutable

Definition at line 27 of file catch_assertionresult.h.

◆ resultType

ResultWas::OfType Catch::AssertionResultData::resultType

Definition at line 29 of file catch_assertionresult.h.


The documentation for this struct was generated from the following files: