MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / sectionEnded

Method sectionEnded

extlibs/catch/include/catch/catch.hpp:12235–12247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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())

Callers 3

catch.hppFile · 0.45
~SectionMethod · 0.45

Calls 8

SectionStatsClass · 0.85
getFormattedDurationFunction · 0.85
showDurationsMethod · 0.80
scopedElementMethod · 0.80
emptyMethod · 0.45
closeMethod · 0.45
clearMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected