| 5903 | void assertionStarting(AssertionInfo const&) override {} |
| 5904 | |
| 5905 | bool assertionEnded(AssertionStats const& assertionStats) override { |
| 5906 | assert(!m_sectionStack.empty()); |
| 5907 | // AssertionResult holds a pointer to a temporary DecomposedExpression, |
| 5908 | // which getExpandedExpression() calls to build the expression string. |
| 5909 | // Our section stack copy of the assertionResult will likely outlive the |
| 5910 | // temporary, so it must be expanded or discarded now to avoid calling |
| 5911 | // a destroyed object later. |
| 5912 | prepareExpandedExpression(const_cast<AssertionResult&>( assertionStats.assertionResult ) ); |
| 5913 | SectionNode& sectionNode = *m_sectionStack.back(); |
| 5914 | sectionNode.assertions.push_back(assertionStats); |
| 5915 | return true; |
| 5916 | } |
| 5917 | void sectionEnded(SectionStats const& sectionStats) override { |
| 5918 | assert(!m_sectionStack.empty()); |
| 5919 | SectionNode& node = *m_sectionStack.back(); |
nothing calls this directly
no test coverage detected