| 8678 | } |
| 8679 | |
| 8680 | void RunContext::sectionEnded(SectionEndInfo const & endInfo) { |
| 8681 | Counts assertions = m_totals.assertions - endInfo.prevAssertions; |
| 8682 | bool missingAssertions = testForMissingAssertions(assertions); |
| 8683 | |
| 8684 | if (!m_activeSections.empty()) { |
| 8685 | m_activeSections.back()->close(); |
| 8686 | m_activeSections.pop_back(); |
| 8687 | } |
| 8688 | |
| 8689 | m_reporter->sectionEnded(SectionStats(endInfo.sectionInfo, assertions, endInfo.durationInSeconds, missingAssertions)); |
| 8690 | m_messages.clear(); |
| 8691 | } |
| 8692 | |
| 8693 | void RunContext::sectionEndedEarly(SectionEndInfo const & endInfo) { |
| 8694 | if (m_unfinishedSections.empty()) |
no test coverage detected