MCPcopy Create free account
hub / github.com/apache/trafficserver / getExpression

Method getExpression

lib/catch2/catch.hpp:8337–8348  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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