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

FCF_TEST_DECLARE macro

FCF_TEST_DECLARE (const char* am_part, const char* am_group, const char* am_test)

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

Example:

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