| 12854 | } |
| 12855 | |
| 12856 | void RunContext::sectionEnded(SectionEndInfo const & endInfo) { |
| 12857 | Counts assertions = m_totals.assertions - endInfo.prevAssertions; |
| 12858 | bool missingAssertions = testForMissingAssertions(assertions); |
| 12859 | |
| 12860 | if (!m_activeSections.empty()) { |
| 12861 | m_activeSections.back()->close(); |
| 12862 | m_activeSections.pop_back(); |
| 12863 | } |
| 12864 | |
| 12865 | m_reporter->sectionEnded(SectionStats(endInfo.sectionInfo, assertions, endInfo.durationInSeconds, missingAssertions)); |
| 12866 | m_messages.clear(); |
| 12867 | m_messageScopes.clear(); |
| 12868 | } |
| 12869 | |
| 12870 | void RunContext::sectionEndedEarly(SectionEndInfo const & endInfo) { |
| 12871 | if (m_unfinishedSections.empty()) |
no test coverage detected