MCPcopy Create free account
hub / github.com/catchorg/Catch2 / reconstructExpression

Method reconstructExpression

src/catch2/catch_assertion_result.cpp:18–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16 resultType(_resultType) {}
17
18 std::string AssertionResultData::reconstructExpression() const {
19
20 if( reconstructedExpression.empty() ) {
21 if( lazyExpression ) {
22 ReusableStringStream rss;
23 rss << lazyExpression;
24 reconstructedExpression = rss.str();
25 }
26 }
27 return reconstructedExpression;
28 }
29
30 AssertionResult::AssertionResult( AssertionInfo const& info, AssertionResultData&& data )
31 : m_info( info ),

Callers 1

getExpandedExpressionMethod · 0.45

Calls 2

emptyMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected