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

#include <catch_test_case_tracker.h>

Public Member Functions

ITrackerstartRun ()
 
void endRun ()
 
void startCycle ()
 
void completeCycle ()
 
bool completedCycle () const
 
ITrackercurrentTracker ()
 
void setCurrentTracker (ITracker *tracker)
 

Detailed Description

Definition at line 60 of file catch_test_case_tracker.h.

Member Function Documentation

◆ completeCycle()

void Catch::TestCaseTracking::TrackerContext::completeCycle ( )

Definition at line 52 of file catch_test_case_tracker.cpp.

52 {
53 m_runState = CompletedCycle;
54 }
Here is the caller graph for this function:

◆ completedCycle()

bool Catch::TestCaseTracking::TrackerContext::completedCycle ( ) const

Definition at line 56 of file catch_test_case_tracker.cpp.

56 {
57 return m_runState == CompletedCycle;
58 }
Here is the caller graph for this function:

◆ currentTracker()

ITracker & Catch::TestCaseTracking::TrackerContext::currentTracker ( )

Definition at line 59 of file catch_test_case_tracker.cpp.

59 {
60 return *m_currentTracker;
61 }
Here is the caller graph for this function:

◆ endRun()

void Catch::TestCaseTracking::TrackerContext::endRun ( )

Definition at line 42 of file catch_test_case_tracker.cpp.

42 {
43 m_rootTracker.reset();
44 m_currentTracker = nullptr;
45 m_runState = NotStarted;
46 }

◆ setCurrentTracker()

void Catch::TestCaseTracking::TrackerContext::setCurrentTracker ( ITracker * tracker)

Definition at line 62 of file catch_test_case_tracker.cpp.

62 {
63 m_currentTracker = tracker;
64 }

◆ startCycle()

void Catch::TestCaseTracking::TrackerContext::startCycle ( )

Definition at line 48 of file catch_test_case_tracker.cpp.

48 {
49 m_currentTracker = m_rootTracker.get();
50 m_runState = Executing;
51 }
Here is the caller graph for this function:

◆ startRun()

ITracker & Catch::TestCaseTracking::TrackerContext::startRun ( )

Definition at line 35 of file catch_test_case_tracker.cpp.

35 {
36 m_rootTracker = std::make_shared<SectionTracker>( NameAndLocation( "{root}", CATCH_INTERNAL_LINEINFO ), *this, nullptr );
37 m_currentTracker = nullptr;
38 m_runState = Executing;
39 return *m_rootTracker;
40 }
#define CATCH_INTERNAL_LINEINFO
Here is the caller graph for this function:

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