A single test case which can be run.
More...
Detailed Description
A single test case which can be run.
Definition at line 60 of file oftest.h.
Member Enumeration Documentation
Special flags that a test can have.
The flags for a test are the result of a bitwise or of these individual flags.
- Enumerator:
| EF_Slow |
Slow test which should only be run in exhaustive mode.
|
Definition at line 69 of file oftest.h.
Constructor & Destructor Documentation
| OFTestTest::OFTestTest |
( |
const OFString & |
testName, |
|
|
int |
flag |
|
) |
| |
|
inline |
Contructor.
- Parameters
-
| testName | the name of this test case |
Definition at line 78 of file oftest.h.
Member Function Documentation
| int OFTestTest::flags |
( |
| ) |
const |
|
inline |
- Returns
- the flags of this test case
Definition at line 91 of file oftest.h.
References flags_.
| const OFString& OFTestTest::getTestName |
( |
| ) |
const |
|
inline |
| void OFTestTest::recordFailure |
( |
const OFString & |
file, |
|
|
unsigned long int |
line, |
|
|
const OFString & |
message |
|
) |
| |
|
inline |
Add a new failure to the result set.
- Parameters
-
| result | list of test failures |
| file | filename for this failure |
| line | line number for this failure |
| message | error description. |
Definition at line 118 of file oftest.h.
References OFList< T >::push_back(), results_, and testName_.
| virtual void OFTestTest::run |
( |
| ) |
|
|
pure virtual |
The documentation for this class was generated from the following file: