OTest2
A C++ testing framework
Public Member Functions | List of all members
OTest2::RunnerFilter Class Referenceabstract

Generic interface of a runner filter. More...

#include <runnerfilter.h>

Inheritance diagram for OTest2::RunnerFilter:
Inheritance graph
[legend]

Public Member Functions

 RunnerFilter (const RunnerFilter &)=delete
 
RunnerFilteroperator= (const RunnerFilter &)=delete
 
 RunnerFilter ()
 Ctor. More...
 
virtual ~RunnerFilter ()
 Dtor. More...
 
virtual bool filterPath (const TagsStack &path_) const noexcept=0
 Check whether the path should be filtered. More...
 

Detailed Description

Generic interface of a runner filter.

The runner filter allows filtering of suites and test cases. So the user can specify only some of the test which he wants to run.

Definition at line 35 of file runnerfilter.h.

Constructor & Destructor Documentation

◆ RunnerFilter() [1/2]

OTest2::RunnerFilter::RunnerFilter ( const RunnerFilter )
delete

◆ RunnerFilter() [2/2]

OTest2::RunnerFilter::RunnerFilter ( )

Ctor.

Definition at line 24 of file runnerfilter.cpp.

◆ ~RunnerFilter()

OTest2::RunnerFilter::~RunnerFilter ( )
virtual

Dtor.

Definition at line 28 of file runnerfilter.cpp.

Member Function Documentation

◆ filterPath()

virtual bool OTest2::RunnerFilter::filterPath ( const TagsStack path_) const
pure virtualnoexcept

Check whether the path should be filtered.

Parameters
path_Stack of names and tags of the current object and its ancestors.
Returns
True if the path matches the filter and the object should be filtered out (not run).

Implemented in OTest2::RunnerFilterTags, OTest2::RunnerFilterEntire, and OTest2::RunnerFilterUntagged.

◆ operator=()

RunnerFilter& OTest2::RunnerFilter::operator= ( const RunnerFilter )
delete

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