Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
Catch::Section Class Reference

#include <catch_section.h>

Inheritance diagram for Catch::Section:
Collaboration diagram for Catch::Section:

Public Member Functions

 Section (SectionInfo const &info)
 
 ~Section ()
 
 operator bool () const
 
 Section (SectionInfo const &info)
 
 ~Section ()
 
 operator bool () const
 

Detailed Description

Definition at line 2535 of file catch.hpp.

Constructor & Destructor Documentation

◆ Section() [1/2]

Catch::Section::Section ( SectionInfo const & info)

Definition at line 15 of file catch_section.cpp.

16 : m_info( info ),
17 m_sectionIncluded( getResultCapture().sectionStarted( m_info, m_assertions ) )
18 {
19 m_timer.start();
20 }
IResultCapture & getResultCapture()
Here is the call graph for this function:

◆ ~Section() [1/2]

Catch::Section::~Section ( )

Definition at line 22 of file catch_section.cpp.

22 {
23 if( m_sectionIncluded ) {
24 SectionEndInfo endInfo{ m_info, m_assertions, m_timer.getElapsedSeconds() };
27 else
28 getResultCapture().sectionEnded( endInfo );
29 }
30 }
auto getElapsedSeconds() const -> double
virtual void sectionEnded(SectionEndInfo const &endInfo)=0
virtual void sectionEndedEarly(SectionEndInfo const &endInfo)=0
Here is the call graph for this function:

◆ Section() [2/2]

Catch::Section::Section ( SectionInfo const & info)

◆ ~Section() [2/2]

Catch::Section::~Section ( )

Member Function Documentation

◆ operator bool() [1/2]

Catch::Section::operator bool ( ) const
explicit

Definition at line 33 of file catch_section.cpp.

33 {
34 return m_sectionIncluded;
35 }

◆ operator bool() [2/2]

Catch::Section::operator bool ( ) const
explicit

The documentation for this class was generated from the following files: