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