| 12233 | } |
| 12234 | |
| 12235 | void RunContext::sectionEnded(SectionEndInfo const & endInfo) { |
| 12236 | Counts assertions = m_totals.assertions - endInfo.prevAssertions; |
| 12237 | bool missingAssertions = testForMissingAssertions(assertions); |
| 12238 | |
| 12239 | if (!m_activeSections.empty()) { |
| 12240 | m_activeSections.back()->close(); |
| 12241 | m_activeSections.pop_back(); |
| 12242 | } |
| 12243 | |
| 12244 | m_reporter->sectionEnded(SectionStats(endInfo.sectionInfo, assertions, endInfo.durationInSeconds, missingAssertions)); |
| 12245 | m_messages.clear(); |
| 12246 | m_messageScopes.clear(); |
| 12247 | } |
| 12248 | |
| 12249 | void RunContext::sectionEndedEarly(SectionEndInfo const & endInfo) { |
| 12250 | if (m_unfinishedSections.empty()) |
no test coverage detected