| 671 | } |
| 672 | |
| 673 | std::string AssertionResult::getExpression() const { |
| 674 | // Possibly overallocating by 3 characters should be basically free |
| 675 | std::string expr; expr.reserve(m_info.capturedExpression.size() + 3); |
| 676 | if (isFalseTest(m_info.resultDisposition)) { |
| 677 | expr += "!("; |
| 678 | } |
| 679 | expr += m_info.capturedExpression; |
| 680 | if (isFalseTest(m_info.resultDisposition)) { |
| 681 | expr += ')'; |
| 682 | } |
| 683 | return expr; |
| 684 | } |
| 685 | |
| 686 | std::string AssertionResult::getExpressionInMacro() const { |
| 687 | if ( m_info.macroName.empty() ) { |
no test coverage detected