| 5869 | void testCaseStarting( TestCaseInfo const& ) override {} |
| 5870 | |
| 5871 | void sectionStarting( SectionInfo const& sectionInfo ) override { |
| 5872 | SectionStats incompleteStats( sectionInfo, Counts(), 0, false ); |
| 5873 | std::shared_ptr<SectionNode> node; |
| 5874 | if( m_sectionStack.empty() ) { |
| 5875 | if( !m_rootSection ) |
| 5876 | m_rootSection = std::make_shared<SectionNode>( incompleteStats ); |
| 5877 | node = m_rootSection; |
| 5878 | } |
| 5879 | else { |
| 5880 | SectionNode& parentNode = *m_sectionStack.back(); |
| 5881 | auto it = |
| 5882 | std::find_if( parentNode.childSections.begin(), |
| 5883 | parentNode.childSections.end(), |
| 5884 | BySectionInfo( sectionInfo ) ); |
| 5885 | if( it == parentNode.childSections.end() ) { |
| 5886 | node = std::make_shared<SectionNode>( incompleteStats ); |
| 5887 | parentNode.childSections.push_back( node ); |
| 5888 | } |
| 5889 | else |
| 5890 | node = *it; |
| 5891 | } |
| 5892 | m_sectionStack.push_back( node ); |
| 5893 | m_deepestSection = std::move(node); |
| 5894 | } |
| 5895 | |
| 5896 | void assertionStarting(AssertionInfo const&) override {} |
| 5897 |
nothing calls this directly
no test coverage detected