| 5266 | void assertionStarting(AssertionInfo const&) override {} |
| 5267 | |
| 5268 | bool assertionEnded(AssertionStats const& assertionStats) override { |
| 5269 | assert(!m_sectionStack.empty()); |
| 5270 | // AssertionResult holds a pointer to a temporary DecomposedExpression, |
| 5271 | // which getExpandedExpression() calls to build the expression string. |
| 5272 | // Our section stack copy of the assertionResult will likely outlive the |
| 5273 | // temporary, so it must be expanded or discarded now to avoid calling |
| 5274 | // a destroyed object later. |
| 5275 | prepareExpandedExpression(const_cast<AssertionResult&>( assertionStats.assertionResult ) ); |
| 5276 | SectionNode& sectionNode = *m_sectionStack.back(); |
| 5277 | sectionNode.assertions.push_back(assertionStats); |
| 5278 | return true; |
| 5279 | } |
| 5280 | void sectionEnded(SectionStats const& sectionStats) override { |
| 5281 | assert(!m_sectionStack.empty()); |
| 5282 | SectionNode& node = *m_sectionStack.back(); |
nothing calls this directly
no test coverage detected