#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).
| 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. |
std::string nameThe name of the test.
SErrorist errorsA list of test errors.
double durationThe test run duration for benchmarking.
| 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(const std::string & name)name Human-readable name displayed in test output.virtual
virtual ~Test()Should remain protected.
void run()Called by the TestRunner to run the test.
bool passed()Return true when the test passed without errors.
| Return | Name | Description |
|---|---|---|
Test | Deleted constructor. |
Test(const Test & test) = deleteDeleted constructor.