CppUnit project page | FAQ |
Decorator that runs a test repeatedly. More...
#include <RepeatedTest.h>
Public Member Functions | |
RepeatedTest (Test *test, int timesRepeat) | |
void | run (TestResult *result) |
Run the test, collecting results. | |
int | countTestCases () const |
Return the number of test cases invoked by run(). | |
![]() | |
TestDecorator (Test *test) | |
~TestDecorator () | |
std::string | getName () const |
Returns the test name. | |
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'. |
Private Member Functions | |
RepeatedTest (const RepeatedTest &) | |
void | operator= (const RepeatedTest &) |
Private Attributes | |
const int | m_timesRepeat |
Additional Inherited Members | |
![]() | |
Test * | doGetChildTestAt (int index) const |
Returns the child test of the specified valid index. | |
![]() | |
virtual void | checkIsValidIndex (int index) const |
![]() | |
Test * | m_test |
Decorator that runs a test repeatedly.
Does not assume ownership of the test it decorates
|
inline |
|
private |
|
virtual |
Return the number of test cases invoked by run().
The base unit of testing is the class TestCase. This method returns the number of TestCase objects invoked by the run() method.
Reimplemented from TestDecorator.
|
private |
|
virtual |
Run the test, collecting results.
Reimplemented from TestDecorator.
|
private |
Send comments to: CppUnit Developers |