Base module
FunctionTest
Test wrapper for standalone test functions.
FunctionTest
#include <icy/test.h>Inherits:
Test
Test wrapper for standalone test functions.
Public Attributes
| Return | Name | Description |
|---|---|---|
std::function< void()> | target |
target
std::function< void()> targetPublic Methods
| Return | Name | Description |
|---|---|---|
FunctionTest inline | #### Parameters |
FunctionTest
inline
inline FunctionTest(std::function< void()> target, const std::string & name)Parameters
targetLambda or function to execute as the test body.nameHuman-readable test name.
Protected Methods
| Return | Name | Description |
|---|---|---|
void | run virtual inline | Called by the TestRunner to run the test. |
run
virtual inline
virtual inline void run()Called by the TestRunner to run the test.
