OTest2
A C++ testing framework
|
Generic interface of a scenario container. More...
#include <scenariocontainer.h>
Public Member Functions | |
ScenarioContainer () | |
Ctor. More... | |
virtual | ~ScenarioContainer () |
Dtor. More... | |
ScenarioContainer (const ScenarioContainer &)=delete | |
ScenarioContainer & | operator= (const ScenarioContainer &)=delete |
virtual void | appendScenario (ScenarioPtr scenario_)=0 |
Append new sub-scenario into the container. More... | |
virtual bool | isEmpty () const noexcept=0 |
Check whether the container is empty. More... | |
![]() | |
Scenario () | |
Ctor. More... | |
virtual | ~Scenario () |
Dtor. More... | |
Scenario (const Scenario &)=delete | |
Scenario & | operator= (const Scenario &)=delete |
virtual ScenarioPtr | filterScenario (TagsStack &tags_, ScenarioContainerPtr parent_, const RunnerFilter &filter_) const =0 |
Filter the scenario. More... | |
virtual std::pair< std::string, ObjectRepeaterPtr > | createRepeater (const Context &context_) const =0 |
Create repeater object for testing object represented by this scenario object. More... | |
virtual void | enterObject (const Context &context_) const noexcept=0 |
Enter the testing object. More... | |
virtual void | leaveObject (const Context &context_) const noexcept=0 |
Report leaving of the testing object. More... | |
virtual ScenarioIterPtr | getChildren () const =0 |
Get iterator of children object. More... | |
Generic interface of a scenario container.
Definition at line 34 of file scenariocontainer.h.
OTest2::ScenarioContainer::ScenarioContainer | ( | ) |
Ctor.
Definition at line 23 of file scenariocontainer.cpp.
|
virtual |
Dtor.
Definition at line 27 of file scenariocontainer.cpp.
|
delete |
|
pure virtual |
Append new sub-scenario into the container.
scenario_ | The appended scenario |
Implemented in OTest2::ScenarioSuite, and OTest2::ScenarioRoot.
|
pure virtualnoexcept |
Check whether the container is empty.
Implemented in OTest2::ScenarioRoot, and OTest2::ScenarioSuite.
|
delete |