| 8636 | } |
| 8637 | |
| 8638 | void RunContext::sectionEnded(SectionEndInfo const &endInfo) { |
| 8639 | Counts assertions = m_totals.assertions - endInfo.prevAssertions; |
| 8640 | bool missingAssertions = testForMissingAssertions(assertions); |
| 8641 | |
| 8642 | if (!m_activeSections.empty()) { |
| 8643 | m_activeSections.back()->close(); |
| 8644 | m_activeSections.pop_back(); |
| 8645 | } |
| 8646 | |
| 8647 | m_reporter->sectionEnded(SectionStats(endInfo.sectionInfo, assertions, endInfo.durationInSeconds, missingAssertions)); |
| 8648 | m_messages.clear(); |
| 8649 | } |
| 8650 | |
| 8651 | void RunContext::sectionEndedEarly(SectionEndInfo const &endInfo) { |
| 8652 | if (m_unfinishedSections.empty()) |
no test coverage detected