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

Method getExpression

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

Source from the content-addressed store, hash-verified

8249 }
8250
8251 std::string AssertionResult::getExpression() const {
8252 // Possibly overallocating by 3 characters should be basically free
8253 std::string expr; expr.reserve(m_info.capturedExpression.size() + 3);
8254 if (isFalseTest(m_info.resultDisposition)) {
8255 expr += "!(";
8256 }
8257 expr += m_info.capturedExpression;
8258 if (isFalseTest(m_info.resultDisposition)) {
8259 expr += ')';
8260 }
8261 return expr;
8262 }
8263
8264 std::string AssertionResult::getExpressionInMacro() const {
8265 std::string expr;

Callers 3

writeAssertionMethod · 0.80
assertionEndedMethod · 0.80

Calls 2

isFalseTestFunction · 0.85
sizeMethod · 0.80

Tested by

no test coverage detected