|
DCMTK Version 3.6.9
OFFIS DICOM Toolkit
|
A single test case which can be run. More...
Public Types | |
| enum | E_Flags { } |
| 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) | |
| Constructor. | |
| virtual | ~OFTestTest () |
| Destructor. | |
| int | flags () const |
| const OFString & | getTestName () const |
| const TestResult & | runAndReturn () |
| Execute this test case. | |
| virtual void | run ()=0 |
| Execute this test case. | |
| void | recordFailure (const OFString &file, unsigned long int line, const OFString &message) |
| Add a new failure to the result set. | |
| void | recordFailure (const OFString &file, unsigned long int line, const OFString &message, const OFString &errorDetails) |
| Add a new failure to the result set. | |
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 |
|
inline |
References flags_.
|
inline |
|
inline |
Add a new failure to the result set.
| file | filename for this failure |
| line | line number for this failure |
| message | error description. |
| errorDetails | details of what went wrong |
References OFString::empty(), results_, and testName_.
|
pure virtual |
|
inline |