Base class for test cases.
More...
#include <vici/testmgr.h>
|
|
static const bool | EXPECTED = true |
| | Value for expected parameter of test()
|
| |
|
| bool | test (bool cond, csr testMsg, bool expected=false) |
| | Perform or record a test. More...
|
| |
| virtual bool | runTest ()=0 |
| | Run the tests for the test case. More...
|
| |
Base class for test cases.
| VICI::cdi::AbstractTestCase::AbstractTestCase |
( |
csr |
nm | ) |
|
|
inlineexplicit |
Constructor.
Derived classes should perform any test case specific initialisations.
- Parameters
-
| nm | The name of the test case. |
| virtual VICI::cdi::AbstractTestCase::~AbstractTestCase |
( |
| ) |
|
|
inlinevirtual |
Destructor.
Derived classes should perform test case specific clean up.
Execute the tests.
- Returns
- true if tests passed.
| virtual bool VICI::cdi::AbstractTestCase::runTest |
( |
| ) |
|
|
protectedpure virtual |
Run the tests for the test case.
Derived classes implement this to perform the required tests.
- Returns
- true if all tests passed.
Implemented in VICI::gth::DefaultTestCase.
| bool AbstractTestCase::test |
( |
bool |
cond, |
|
|
csr |
testMsg, |
|
|
bool |
expected = false |
|
) |
| |
|
protected |
Perform or record a test.
- Parameters
-
| cond | Set to true if test passes. |
| testMsg | Message to report when test fails |
| expected | Set to EXPECTED if test is expected to fail. |
- Returns
- true if test passes, or failed and was expected to fail
The documentation for this class was generated from the following files: