OTest2
A C++ testing framework
Classes | Public Member Functions | List of all members
OTest2::RunnerOrdinary Class Reference

Ordinary implementation of the Runner interface. More...

#include <runnerordinary.h>

Inheritance diagram for OTest2::RunnerOrdinary:
Inheritance graph
[legend]
Collaboration diagram for OTest2::RunnerOrdinary:
Collaboration graph
[legend]

Classes

struct  Impl
 

Public Member Functions

 RunnerOrdinary (const RunnerOrdinary &)=delete
 
RunnerOrdinaryoperator= (const RunnerOrdinary &)=delete
 
 RunnerOrdinary (TimeSource *time_source_, ExcCatcher *exc_catcher_, Reporter *reporter_, TestMarkFactory *test_mark_factory_, TestMarkStorage *test_mark_storage_, UserData *user_data_, ScenarioIterPtr test_scenario_)
 Ctor. More...
 
virtual ~RunnerOrdinary ()
 Dtor. More...
 
virtual RunnerResult runNext () override
 Run next pack of work. More...
 
- Public Member Functions inherited from OTest2::Runner
 Runner (const Runner &)=delete
 
Runneroperator= (const Runner &)=delete
 
 Runner ()
 Ctor. More...
 
virtual ~Runner ()
 Dtor. More...
 

Detailed Description

Ordinary implementation of the Runner interface.

This implementation keeps a stack of commands and runs them until the stack is empty.

Definition at line 42 of file runnerordinary.h.

Constructor & Destructor Documentation

◆ RunnerOrdinary() [1/2]

OTest2::RunnerOrdinary::RunnerOrdinary ( const RunnerOrdinary )
delete

◆ RunnerOrdinary() [2/2]

OTest2::RunnerOrdinary::RunnerOrdinary ( TimeSource time_source_,
ExcCatcher exc_catcher_,
Reporter reporter_,
TestMarkFactory test_mark_factory_,
TestMarkStorage test_mark_storage_,
UserData user_data_,
ScenarioIterPtr  test_scenario_ 
)
explicit

Ctor.

Parameters
time_source_A source of current time. The ownership is not taken.
exc_catcher_An exception catcher. The ownership is not taken.
reporter_A reporter object. The ownership is not taken.
test_mark_factory_A factory of test mark nodes. The ownership is not taken.
test_mark_storage_Storage of test marks. The ownership is not taken.
user_data_A container keeping user's data passed into the test. The ownership is not taken.
test_registry_An iterator of the root scenario object

Definition at line 99 of file runnerordinary.cpp.

◆ ~RunnerOrdinary()

OTest2::RunnerOrdinary::~RunnerOrdinary ( )
virtual

Dtor.

Definition at line 119 of file runnerordinary.cpp.

Member Function Documentation

◆ operator=()

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

◆ runNext()

RunnerResult OTest2::RunnerOrdinary::runNext ( )
overridevirtual

Run next pack of work.

Returns
A runner result.
See also
the RunnerResult class for description how the test result is returned.

Implements OTest2::Runner.

Definition at line 123 of file runnerordinary.cpp.


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