MCPcopy Create free account
hub / github.com/Profactor/cv-plot / sectionEnded

Method sectionEnded

CvPlot/ext/catch2/inc/catch.hpp:12620–12632  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 3

catch.hppFile · 0.45
~SectionMethod · 0.45

Calls 7

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

Tested by

no test coverage detected