| 12618 | } |
| 12619 | |
| 12620 | void RunContext::sectionEnded(SectionEndInfo const & endInfo) { |
| 12621 | Counts assertions = m_totals.assertions - endInfo.prevAssertions; |
| 12622 | bool missingAssertions = testForMissingAssertions(assertions); |
| 12623 | |
| 12624 | if (!m_activeSections.empty()) { |
| 12625 | m_activeSections.back()->close(); |
| 12626 | m_activeSections.pop_back(); |
| 12627 | } |
| 12628 | |
| 12629 | m_reporter->sectionEnded(SectionStats(endInfo.sectionInfo, assertions, endInfo.durationInSeconds, missingAssertions)); |
| 12630 | m_messages.clear(); |
| 12631 | m_messageScopes.clear(); |
| 12632 | } |
| 12633 | |
| 12634 | void RunContext::sectionEndedEarly(SectionEndInfo const & endInfo) { |
| 12635 | if (m_unfinishedSections.empty()) |
no test coverage detected