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

Method sectionStarted

extlibs/catch/include/catch/catch.hpp:12201–12214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12199 }
12200
12201 bool RunContext::sectionStarted(SectionInfo const & sectionInfo, Counts & assertions) {
12202 ITracker& sectionTracker = SectionTracker::acquire(m_trackerContext, TestCaseTracking::NameAndLocation(sectionInfo.name, sectionInfo.lineInfo));
12203 if (!sectionTracker.isOpen())
12204 return false;
12205 m_activeSections.push_back(&sectionTracker);
12206
12207 m_lastAssertionInfo.lineInfo = sectionInfo.lineInfo;
12208
12209 m_reporter->sectionStarting(sectionInfo);
12210
12211 assertions = m_totals.assertions;
12212
12213 return true;
12214 }
12215 auto RunContext::acquireGeneratorTracker( SourceLineInfo const& lineInfo ) -> IGeneratorTracker& {
12216 using namespace Generators;
12217 GeneratorTracker& tracker = GeneratorTracker::acquire( m_trackerContext, TestCaseTracking::NameAndLocation( "generator", lineInfo ) );

Callers 1

SectionMethod · 0.80

Calls 4

NameAndLocationClass · 0.85
isOpenMethod · 0.45
push_backMethod · 0.45
sectionStartingMethod · 0.45

Tested by

no test coverage detected