| 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(§ionTracker); |
| 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 ) { |
no test coverage detected