Horizon
|
Public Member Functions | |
SectionTracker (NameAndLocation const &nameAndLocation, TrackerContext &ctx, ITracker *parent) | |
bool | isSectionTracker () const override |
Returns true if the instance is a section tracker. More... | |
bool | isComplete () const override |
Returns true if tracker run to completion (successfully or not) | |
void | tryOpen () |
void | addInitialFilters (std::vector< std::string > const &filters) |
void | addNextFilters (std::vector< StringRef > const &filters) |
std::vector< StringRef > const & | getFilters () const |
Returns filters active in this tracker. | |
StringRef | trimmedName () const |
Returns whitespace-trimmed name of the tracked section. | |
![]() | |
TrackerBase (NameAndLocation const &nameAndLocation, TrackerContext &ctx, ITracker *parent) | |
void | open () |
void | close () override |
void | fail () override |
![]() | |
ITracker (NameAndLocation const &nameAndLoc, ITracker *parent) | |
NameAndLocation const & | nameAndLocation () const |
ITracker * | parent () const |
bool | isSuccessfullyCompleted () const |
Returns true if tracker run to completion succesfully. | |
bool | isOpen () const |
Returns true if tracker has started but hasn't been completed. | |
bool | hasStarted () const |
Returns true iff tracker has started. | |
void | markAsNeedingAnotherRun () |
void | addChild (ITrackerPtr &&child) |
Register a nested ITracker. | |
ITracker * | findChild (NameAndLocation const &nameAndLocation) |
Returns ptr to specific child if register with this tracker. More... | |
bool | hasChildren () const |
Have any children been added? | |
void | openChild () |
Marks tracker as executing a child, doing se recursively up the tree. | |
virtual bool | isGeneratorTracker () const |
Returns true if the instance is a generator tracker. More... | |
Static Public Member Functions | |
static SectionTracker & | acquire (TrackerContext &ctx, NameAndLocation const &nameAndLocation) |
Additional Inherited Members | |
![]() | |
enum | CycleState { NotStarted , Executing , ExecutingChildren , NeedsAnotherRun , CompletedSuccessfully , Failed } |
![]() | |
TrackerContext & | m_ctx |
![]() | |
ITracker * | m_parent = nullptr |
Children | m_children |
CycleState | m_runState = NotStarted |
|
overridevirtual |
Returns true if the instance is a section tracker.
Subclasses should override to true if they are, replaces RTTI for internal debug checks.
Reimplemented from Catch::TestCaseTracking::ITracker.