Base module

FunctionTest

[Test]({#ref classicy_1_1test_1_1Test #}) wrapper for standalone test functions.

FunctionTest

#include <icy/test.h>

Inherits: Test

Test wrapper for standalone test functions.

Public Attributes

ReturnNameDescription
std::function< void()>target

target

std::function< void()> target

Public Methods

ReturnNameDescription
FunctionTest inline#### Parameters

FunctionTest

inline

inline FunctionTest(std::function< void()> target, const std::string & name)

Parameters

  • target Lambda or function to execute as the test body.

  • name Human-readable test name.

Protected Methods

ReturnNameDescription
voidrun virtual inlineCalled by the TestRunner to run the test.

run

virtual inline

virtual inline void run()

Called by the TestRunner to run the test.