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