Helper class for suites generated by the otest2 preprocessor.
More...
#include <suitegenerated.h>
Helper class for suites generated by the otest2 preprocessor.
Definition at line 36 of file suitegenerated.h.
◆ SuiteGenerated() [1/2]
◆ SuiteGenerated() [2/2]
OTest2::SuiteGenerated::SuiteGenerated |
( |
const Context & |
context_, |
|
|
const std::string & |
name_ |
|
) |
| |
|
explicit |
◆ ~SuiteGenerated()
OTest2::SuiteGenerated::~SuiteGenerated |
( |
| ) |
|
|
virtual |
◆ getName()
std::string OTest2::SuiteGenerated::getName |
( |
| ) |
const |
|
virtual |
◆ operator=()
◆ otest2Context()
const Context & OTest2::SuiteGenerated::otest2Context |
( |
| ) |
const |
|
virtual |
◆ registerFixture()
Register a fixture (a pair of a start-up and a tear-down functions)
- Parameters
-
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.
◆ scheduleBody()
Schedule body of the testing object.
- Parameters
-
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.
◆ startUpObject()
bool OTest2::SuiteGenerated::startUpObject |
( |
const Context & |
context_, |
|
|
int |
index_ |
|
) |
| |
|
overridevirtual |
Execute start-up function at specified index.
- Parameters
-
context_ | The OTest2 context |
index_ | The zero based index of the start-up function |
- Returns
- True if the start-up function exists and has been run
Implements OTest2::ObjectScenario.
Definition at line 92 of file suitegenerated.cpp.
◆ tearDownObject()
void OTest2::SuiteGenerated::tearDownObject |
( |
const Context & |
context_, |
|
|
int |
index_ |
|
) |
| |
|
overridevirtual |
The documentation for this class was generated from the following files: