Function sectionEnded
Synopsis
#include <include/internal/catch_run_context.h>
void sectionEnded(SectionEndInfo const &endInfo) override
Description
No description yet.
Source
Lines 245-257 in include/internal/catch_run_context.cpp. Line 80 in include/internal/catch_run_context.h.
void RunContext::sectionEnded(SectionEndInfo const & endInfo) {
Counts assertions = m_totals.assertions - endInfo.prevAssertions;
bool missingAssertions = testForMissingAssertions(assertions);
if (!m_activeSections.empty()) {
m_activeSections.back()->close();
m_activeSections.pop_back();
}
m_reporter->sectionEnded(SectionStats(endInfo.sectionInfo, assertions, endInfo.durationInSeconds, missingAssertions));
m_messages.clear();
m_messageScopes.clear();
}