|
tfel
|
#include <string>#include "TFEL/Config/TFELConfig.hxx"#include "TFEL/Tests/TestFunctionWrapper.hxx"#include "TFEL/Tests/TestProxy.ixx"Classes | |
| struct | tfel::tests::TestProxy< TestType > |
| proxy class for automatic registration of tests More... | |
Namespaces | |
| namespace | tfel |
| the namespace tfel encloses all the TFEL project. This namespace is empty. | |
Macros | |
| #define | TFEL_PP_JOIN(X, Y) |
| this macro joins joins its two arguments together. | |
| #define | TFEL_PP_DO_JOIN(X, Y) |
| An helper macro for TFEL_PP_JOIN. | |
| #define | TFEL_PP_DO_JOIN2(X, Y) |
| #define | TFEL_TESTS_GENERATE_PROXY2(X, X2, Y) |
| generate a proxy for class X | |
| #define | TFEL_TESTS_GENERATE_PROXY3(X, X2, Y, Y2) |
| generate a proxy for class X | |
| #define | TFEL_TESTS_GENERATE_PROXY(X, Y) |
| generate a proxy for class X | |
| #define | TFEL_TESTS_FUNCTION(X, G, Y) |
| generate a proxy for function X | |
| #define TFEL_PP_DO_JOIN | ( | X, | |
| Y ) |
An helper macro for TFEL_PP_JOIN.
| #define TFEL_PP_DO_JOIN2 | ( | X, | |
| Y ) |
| #define TFEL_PP_JOIN | ( | X, | |
| Y ) |
this macro joins joins its two arguments together.
This macro was taken from the boost library:
The following piece of macro magic joins the two arguments together, even when one of the arguments is itself a macro (see 16.3.1 in C++ standard). The key is that macro expansion of macro arguments does not occur in TFEL_PP_DO_JOIN2 but does in TFEL_PP_DO_JOIN.
| #define TFEL_TESTS_FUNCTION | ( | X, | |
| G, | |||
| Y ) |
generate a proxy for function X
| X | : test function to be generated |
| G | : test group |
| Y | : test suite to which the test is associated |
| #define TFEL_TESTS_GENERATE_PROXY | ( | X, | |
| Y ) |
generate a proxy for class X
| X | : class for which the proxy is generated |
| Y | : test suite to which the test is associated |
| #define TFEL_TESTS_GENERATE_PROXY2 | ( | X, | |
| X2, | |||
| Y ) |
generate a proxy for class X
| X | : class for which the proxy is generated |
| X2 | : stripped class name |
| Y | : test suite to which the test is associated |
| #define TFEL_TESTS_GENERATE_PROXY3 | ( | X, | |
| X2, | |||
| Y, | |||
| Y2 ) |
generate a proxy for class X
| X | : class for which the proxy is generated |
| X2 | : stripped class name |
| Y | : test suite to which the test is associated |
| Y2 | : parameter passed to the class constructor |