OTest2
A C++ testing framework
|
Go to the documentation of this file.
20 #ifndef OTest2_INCLUDE_OTEST2_SCENARIOROOT_H_
21 #define OTest2_INCLUDE_OTEST2_SCENARIOROOT_H_
42 const std::string& name_);
61 const std::string& name_);
69 const Context& context_)
const override;
71 const Context& context_)
const noexcept
override;
73 const Context& context_)
const noexcept
override;
79 virtual bool isEmpty()
const noexcept
override;
virtual void enterObject(const Context &context_) const noexcept override
Enter the testing object.
Generic interface of a runner filter.
virtual void appendScenario(ScenarioPtr scenario_) override
Append new sub-scenario into the container.
Generic interface of a scenario container.
virtual ~ScenarioRoot()
Dtor.
virtual ScenarioPtr filterScenario(TagsStack &tags_, ScenarioContainerPtr parent_, const RunnerFilter &filter_) const override
Filter the scenario.
ScenarioRoot(const std::string &name_)
Ctor.
virtual void leaveObject(const Context &context_) const noexcept override
Report leaving of the testing object.
virtual std::pair< std::string, ObjectRepeaterPtr > createRepeater(const Context &context_) const override
Create repeater object for testing object represented by this scenario object.
virtual ScenarioIterPtr getChildren() const override
Get iterator of children object.
std::shared_ptr< ScenarioIter > ScenarioIterPtr
Shared pointer of the scenario iter interface.
std::shared_ptr< Scenario > ScenarioPtr
Shared pointer of the scenario object.
Scenario object representing entire test.
void setName(const std::string &name_)
Set name of the scenario (the name of the entire test)
ScenarioRoot & operator=(const ScenarioRoot &)=delete
std::shared_ptr< ScenarioContainer > ScenarioContainerPtr
Shared pointer to a scenario container.
virtual bool isEmpty() const noexcept override
Check whether the container is empty.