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

Method sectionStarted

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

Source from the content-addressed store, hash-verified

12584 }
12585
12586 bool RunContext::sectionStarted(SectionInfo const & sectionInfo, Counts & assertions) {
12587 ITracker& sectionTracker = SectionTracker::acquire(m_trackerContext, TestCaseTracking::NameAndLocation(sectionInfo.name, sectionInfo.lineInfo));
12588 if (!sectionTracker.isOpen())
12589 return false;
12590 m_activeSections.push_back(&sectionTracker);
12591
12592 m_lastAssertionInfo.lineInfo = sectionInfo.lineInfo;
12593
12594 m_reporter->sectionStarting(sectionInfo);
12595
12596 assertions = m_totals.assertions;
12597
12598 return true;
12599 }
12600 auto RunContext::acquireGeneratorTracker( SourceLineInfo const& lineInfo ) -> IGeneratorTracker& {
12601 using namespace Generators;
12602 GeneratorTracker& tracker = GeneratorTracker::acquire( m_trackerContext, TestCaseTracking::NameAndLocation( "generator", lineInfo ) );

Callers 1

SectionMethod · 0.80

Calls 3

NameAndLocationClass · 0.85
isOpenMethod · 0.80
sectionStartingMethod · 0.45

Tested by

no test coverage detected