FCF 2.0 development in progress...
> > > >
[News] [C++ Libraries API] [C++ Downloads] [Donate to the project] [Contacts]

FCF_TEST_DEFINE macro

FCF_TEST_DEFINE (const char* am_part, const char* am_group, const char* am_test)
FCF_TEST_DEFINE (const char* am_part, const char* am_group, const char* am_test, TYPE am_testClassName)

Package: fcfTest

File: test.hpp

Available from version: 1.0.1

Declares a test and takes three parameters that organize the test tree (Parts -> Groups -> Tests)

This macro generates a static anonymous class that registers the test with the global storage upon instantiation.

Arguments

const char* am_part
- Test part name.

const char* am_group
- Test group name

const char* am_test
- Test name

TYPE am_testClassName
- [OPTIONAL] [SINCE 1.1.13] Specifies the name of the test class. Can be used when declaring a friend class.

Example:

FCF_TEST_DEFINE("Network", "HTTP", "GetRequestTest") { // Test implementation } FCF_TEST_DEFINE("Network", "HTTP", "PostRequestTest") { // Test implementation }