| 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; |
no test coverage detected