Public Member Functions |
| TestDecorator (Test *test) |
| ~TestDecorator () |
int | countTestCases () const |
| Return the number of test cases invoked by run().
|
std::string | getName () const |
| Returns the test name.
|
void | run (TestResult *result) |
| Run the test, collecting results.
|
int | getChildTestCount () const |
| Returns the number of direct child of the test.
|
virtual | ~Test () |
virtual Test * | getChildTestAt (int index) const |
| Returns the child test of the specified index.
|
virtual bool | findTestPath (const std::string &testName, TestPath &testPath) const |
| Finds the test with the specified name and its parents test.
|
virtual bool | findTestPath (const Test *test, TestPath &testPath) const |
| Finds the specified test and its parents test.
|
virtual Test * | findTest (const std::string &testName) const |
| Finds the test with the specified name in the hierarchy.
|
virtual TestPath | resolveTestPath (const std::string &testPath) const |
| Resolved the specified test path with this test acting as 'root'.
|
Decorator for Tests.
TestDecorator provides an alternate means to extend functionality of a test class without subclassing the test. Instead, one can subclass the decorater and use it to wrap the test class.
Assumes ownership of the test it decorates