MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/TriangleMeshDistance / getExpressionInMacro

Method getExpressionInMacro

tests/catch.hpp:6215–6227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6213 }
6214
6215 std::string AssertionResult::getExpressionInMacro() const {
6216 std::string expr;
6217 if( m_info.macroName[0] == 0 )
6218 expr = m_info.capturedExpression;
6219 else {
6220 expr.reserve( m_info.macroName.size() + m_info.capturedExpression.size() + 4 );
6221 expr += m_info.macroName;
6222 expr += "( ";
6223 expr += m_info.capturedExpression;
6224 expr += " )";
6225 }
6226 return expr;
6227 }
6228
6229 bool AssertionResult::hasExpandedExpression() const {
6230 return hasExpression() && getExpandedExpression() != getExpression();

Callers 1

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected