Base module
FunctionTest
Test wrapper for standalone test functions.
FunctionTest
#include <icy/test.h>class FunctionTestDefined in src/base/include/icy/test.h:115
Inherits:
Test
Test wrapper for standalone test functions.
List of all members
| Name | Kind | Owner |
|---|---|---|
target | variable | Declared here |
FunctionTest | function | Declared here |
~FunctionTest | function | Declared here |
run | function | Declared here |
TestRunner | friend | Inherited from Test |
name | variable | Inherited from Test |
errors | variable | Inherited from Test |
duration | variable | Inherited from Test |
Test | function | Inherited from Test |
~Test | function | Inherited from Test |
run | function | Inherited from Test |
passed | function | Inherited from Test |
Test | function | Inherited from Test |
operator= | function | Inherited from Test |
Inherited from Test
| Kind | Name | Description |
|---|---|---|
friend | TestRunner | Tests belong to a TestRunner instance. |
variable | name | The name of the test. |
variable | errors | A list of test errors. |
variable | duration | The test run duration for benchmarking. |
function | Test | |
function | ~Test virtual | Should remain protected. |
function | run virtual | Called by the TestRunner to run the test. |
function | passed | Return true when the test passed without errors. |
function | Test | Deleted constructor. |
function | operator= | Deleted assignment operator. |
Public Attributes
| Return | Name | Description |
|---|---|---|
std::function< void()> | target |
target
std::function< void()> targetDefined in src/base/include/icy/test.h:118
Public Methods
| Return | Name | Description |
|---|---|---|
FunctionTest inline |
FunctionTest
inline
inline FunctionTest(std::function< void()> target, const std::string & name = "Unnamed Test")Defined in src/base/include/icy/test.h:122
Parameters
targetLambda or function to execute as the test body.nameHuman-readable test name.
Protected Methods
| Return | Name | Description |
|---|---|---|
void | run virtual inline override | Called by the TestRunner to run the test. |
run
virtual inline override
virtual inline void run() overrideDefined in src/base/include/icy/test.h:132
Called by the TestRunner to run the test.
