MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/SPlisHSPlasH / getExpression

Method getExpression

extern/Catch2/catch.hpp:8335–8346  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8333 }
8334
8335 std::string AssertionResult::getExpression() const {
8336 // Possibly overallocating by 3 characters should be basically free
8337 std::string expr; expr.reserve(m_info.capturedExpression.size() + 3);
8338 if (isFalseTest(m_info.resultDisposition)) {
8339 expr += "!(";
8340 }
8341 expr += m_info.capturedExpression;
8342 if (isFalseTest(m_info.resultDisposition)) {
8343 expr += ')';
8344 }
8345 return expr;
8346 }
8347
8348 std::string AssertionResult::getExpressionInMacro() const {
8349 std::string expr;

Callers 3

writeAssertionMethod · 0.80
assertionEndedMethod · 0.80

Calls 3

isFalseTestFunction · 0.85
reserveMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected