MCPcopy Create free account
hub / github.com/catchorg/Catch2 / sectionStarted

Method sectionStarted

extras/catch_amalgamated.cpp:6322–6346  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6320 }
6321
6322 bool RunContext::sectionStarted( StringRef sectionName,
6323 SourceLineInfo const& sectionLineInfo,
6324 Counts& assertions ) {
6325 ITracker& sectionTracker =
6326 SectionTracker::acquire( m_trackerContext,
6327 TestCaseTracking::NameAndLocationRef(
6328 sectionName, sectionLineInfo ) );
6329
6330 if (!sectionTracker.isOpen())
6331 return false;
6332 m_activeSections.push_back(&sectionTracker);
6333
6334 SectionInfo sectionInfo( sectionLineInfo, static_cast<std::string>(sectionName) );
6335 Detail::g_lastKnownLineInfo = sectionLineInfo;
6336
6337 {
6338 auto _ = scopedDeactivate( *m_outputRedirect );
6339 m_reporter->sectionStarting( sectionInfo );
6340 }
6341
6342 updateTotalsFromAtomics();
6343 assertions = m_totals.assertions;
6344
6345 return true;
6346 }
6347 IGeneratorTracker*
6348 RunContext::acquireGeneratorTracker( StringRef generatorName,
6349 SourceLineInfo const& lineInfo ) {

Callers 1

SectionMethod · 0.45

Calls 4

NameAndLocationRefClass · 0.70
scopedDeactivateFunction · 0.70
isOpenMethod · 0.45
sectionStartingMethod · 0.45

Tested by

no test coverage detected