| 9421 | virtual void assertionStarting( AssertionInfo const& ) CATCH_OVERRIDE {} |
| 9422 | |
| 9423 | virtual bool assertionEnded( AssertionStats const& assertionStats ) CATCH_OVERRIDE { |
| 9424 | assert( !m_sectionStack.empty() ); |
| 9425 | SectionNode& sectionNode = *m_sectionStack.back(); |
| 9426 | sectionNode.assertions.push_back( assertionStats ); |
| 9427 | // AssertionResult holds a pointer to a temporary DecomposedExpression, |
| 9428 | // which getExpandedExpression() calls to build the expression string. |
| 9429 | // Our section stack copy of the assertionResult will likely outlive the |
| 9430 | // temporary, so it must be expanded or discarded now to avoid calling |
| 9431 | // a destroyed object later. |
| 9432 | prepareExpandedExpression( sectionNode.assertions.back().assertionResult ); |
| 9433 | return true; |
| 9434 | } |
| 9435 | virtual void sectionEnded( SectionStats const& sectionStats ) CATCH_OVERRIDE { |
| 9436 | assert( !m_sectionStack.empty() ); |
| 9437 | SectionNode& node = *m_sectionStack.back(); |