MCPcopy Create free account
hub / github.com/Profactor/cv-plot / getExpressionInMacro

Method getExpressionInMacro

CvPlot/ext/catch2/inc/catch.hpp:8264–8276  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8262 }
8263
8264 std::string AssertionResult::getExpressionInMacro() const {
8265 std::string expr;
8266 if( m_info.macroName.empty() )
8267 expr = static_cast<std::string>(m_info.capturedExpression);
8268 else {
8269 expr.reserve( m_info.macroName.size() + m_info.capturedExpression.size() + 4 );
8270 expr += m_info.macroName;
8271 expr += "( ";
8272 expr += m_info.capturedExpression;
8273 expr += " )";
8274 }
8275 return expr;
8276 }
8277
8278 bool AssertionResult::hasExpandedExpression() const {
8279 return hasExpression() && getExpandedExpression() != getExpression();

Callers 2

writeAssertionMethod · 0.80

Calls 2

sizeMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected