|
OTest2
A C++ testing framework
|
Helper class for suites generated by the otest2 preprocessor. More...
#include <suitegenerated.h>


Classes | |
| struct | Impl |
Public Member Functions | |
| SuiteGenerated (const SuiteGenerated &)=delete | |
| SuiteGenerated & | operator= (const SuiteGenerated &)=delete |
| SuiteGenerated (const Context &context_, const std::string &name_) | |
| Ctor. More... | |
| virtual | ~SuiteGenerated () |
| Dtor. More... | |
| virtual std::string | getName () const |
| Get object's name. More... | |
| virtual bool | startUpObject (const Context &context_, int index_) override |
| Execute start-up function at specified index. More... | |
| virtual void | scheduleBody (const Context &context_, ScenarioPtr scenario_, ObjectPtr parent_) override |
| Schedule body of the testing object. More... | |
| virtual void | tearDownObject (const Context &context_, int index_) override |
| Execute tear-down function at specified index. More... | |
| virtual const Context & | otest2Context () const |
| Get the OTest2 context. More... | |
Public Member Functions inherited from OTest2::Suite | |
| Suite () | |
| Ctor. More... | |
| virtual | ~Suite () |
| Dtor. More... | |
| Suite (const Suite &)=delete | |
| Suite & | operator= (const Suite &)=delete |
Public Member Functions inherited from OTest2::ObjectScenario | |
| ObjectScenario () | |
| Dtor. More... | |
| virtual | ~ObjectScenario () |
| Dtor. More... | |
| ObjectScenario (const ObjectScenario &)=delete | |
| ObjectScenario & | operator= (const ObjectScenario &)=delete |
Public Member Functions inherited from OTest2::Object | |
| Object (const Object &)=delete | |
| Object & | operator= (const Object &)=delete |
| Object () | |
| Ctor. More... | |
| virtual | ~Object () |
| Dtor. More... | |
Public Member Functions inherited from OTest2::ContextObject | |
| ContextObject (const ContextObject &)=delete | |
| ContextObject & | operator= (const ContextObject &)=delete |
| ContextObject () | |
| Ctor. More... | |
| virtual | ~ContextObject () |
| Dtor. More... | |
Protected Member Functions | |
| void | registerFixture (FceMarshalerPtr start_up_, FceMarshalerPtr tear_down_) |
| Register a fixture (a pair of a start-up and a tear-down functions) More... | |
Helper class for suites generated by the otest2 preprocessor.
Definition at line 36 of file suitegenerated.h.
|
delete |
|
explicit |
Ctor.
| context_ | OTest2 context |
| name_ | Name of the suite |
Definition at line 76 of file suitegenerated.cpp.
|
virtual |
Dtor.
Definition at line 84 of file suitegenerated.cpp.
|
virtual |
|
delete |
|
virtual |
Get the OTest2 context.
Implements OTest2::ContextObject.
Definition at line 122 of file suitegenerated.cpp.
|
protected |
Register a fixture (a pair of a start-up and a tear-down functions)
| start_up_ | A start-up fuction of the fixture |
| tear_down_ | A tear-down function of the fixture |
Definition at line 126 of file suitegenerated.cpp.
|
overridevirtual |
Schedule body of the testing object.
| context_ | The OTest2 context |
| scenario_ | The scenario representing this object |
| me_ | A shared pointer pointing this instance |
Implements OTest2::ObjectScenario.
Definition at line 105 of file suitegenerated.cpp.
|
overridevirtual |
Execute start-up function at specified index.
| context_ | The OTest2 context |
| index_ | The zero based index of the start-up function |
Implements OTest2::ObjectScenario.
Definition at line 92 of file suitegenerated.cpp.
|
overridevirtual |
Execute tear-down function at specified index.
| context_ | The OTest2 context |
| index_ | The zero based index of the tear-down function |
Implements OTest2::ObjectScenario.
Definition at line 113 of file suitegenerated.cpp.
1.8.17