| 5837 | void assertionStarting(AssertionInfo const&) override {} |
| 5838 | |
| 5839 | bool assertionEnded(AssertionStats const& assertionStats) override { |
| 5840 | assert(!m_sectionStack.empty()); |
| 5841 | // AssertionResult holds a pointer to a temporary DecomposedExpression, |
| 5842 | // which getExpandedExpression() calls to build the expression string. |
| 5843 | // Our section stack copy of the assertionResult will likely outlive the |
| 5844 | // temporary, so it must be expanded or discarded now to avoid calling |
| 5845 | // a destroyed object later. |
| 5846 | prepareExpandedExpression(const_cast<AssertionResult&>( assertionStats.assertionResult ) ); |
| 5847 | SectionNode& sectionNode = *m_sectionStack.back(); |
| 5848 | sectionNode.assertions.push_back(assertionStats); |
| 5849 | return true; |
| 5850 | } |
| 5851 | void sectionEnded(SectionStats const& sectionStats) override { |
| 5852 | assert(!m_sectionStack.empty()); |
| 5853 | SectionNode& node = *m_sectionStack.back(); |
nothing calls this directly
no test coverage detected