|
DCMTK
Version 3.6.2
OFFIS DICOM Toolkit
|
A single test case which can be run. More...
Public Types | |
| enum | E_Flags { , EF_Slow = 0x1 } |
| Special flags that a test can have. More... | |
| typedef OFList< OFString > | TestResult |
| This is the type used for test results. | |
Public Member Functions | |
| OFTestTest (const OFString &testName, int flag) | |
| Contructor. More... | |
| virtual | ~OFTestTest () |
| Destructor. | |
| int | flags () const |
| const OFString & | getTestName () const |
| const TestResult & | runAndReturn () |
| Execute this test case. More... | |
| virtual void | run ()=0 |
| Execute this test case. More... | |
| void | recordFailure (const OFString &file, unsigned long int line, const OFString &message) |
| Add a new failure to the result set. More... | |
Private Attributes | |
| OFString | testName_ |
| The unique name of this test. | |
| TestResult | results_ |
| The test results, empty for success. | |
| const int | flags_ |
| Flags that this test has. | |
A single test case which can be run.
| enum OFTestTest::E_Flags |
|
inline |
Contructor.
| testName | the name of this test case |
|
inline |
References flags_.
|
inline |
|
inline |
Add a new failure to the result set.
| result | list of test failures |
| file | filename for this failure |
| line | line number for this failure |
| message | error description. |
References OFList< T >::push_back(), results_, and testName_.
|
pure virtual |
Execute this test case.
| result | the list of error messages generated by this test. |
Referenced by runAndReturn().
|
inline |
Execute this test case.
References OFList< T >::clear(), results_, and run().