Base module
Test
Test wrapper class.
Test
#include <icy/test.h>Subclassed by:
FunctionTest
Test wrapper class.
This class is for implementing any kind of unit test that can be executed by a [TestRunner](icy-test-TestRunner.html#testrunner).
Public Attributes
| Return | Name | Description |
|---|---|---|
std::string | name | The name of the test. |
SErrorist | errors | A list of test errors. |
double | duration | The test run duration for benchmarking. |
name
std::string nameThe name of the test.
errors
SErrorist errorsA list of test errors.
duration
double durationThe test run duration for benchmarking.
Public Methods
| Return | Name | Description |
|---|---|---|
Test | #### Parameters | |
~Test virtual | Should remain protected. | |
void | run | Called by the TestRunner to run the test. |
bool | passed | Return true when the test passed without errors. |
Test
Test(const std::string & name)Parameters
nameHuman-readable name displayed in test output.
~Test
virtual
virtual ~Test()Should remain protected.
run
void run()Called by the TestRunner to run the test.
passed
bool passed()Return true when the test passed without errors.
Protected Methods
| Return | Name | Description |
|---|---|---|
Test | Deleted constructor. |
Test
Test(const Test & test) = deleteDeleted constructor.
