Github User Fetcher 1.0.0
C Application with Server and GUI
|
Macros | |
#define | Theory(Params, Suite, Name, ...) internal |
#define | TheoryDataPoints(Suite, Name) CR_TH_INTERNAL_TDPS(Suite, Name) |
#define | DataPoints(Type, ...) CR_EXPAND(CR_TH_INTERNAL_DP(Type, __VA_ARGS__)) |
#define DataPoints | ( | Type, | |
... ) CR_EXPAND(CR_TH_INTERNAL_DP(Type, __VA_ARGS__)) |
Defines a new set of data points.
Type | The type of each data point in the set. |
... | The data points in the set. |
Definition at line 98 of file theories.h.
#define Theory | ( | Params, | |
Suite, | |||
Name, | |||
... ) internal |
Defines a new theory test.
The parameters are selected from a cartesian product defined by a TheoryDataPoints macro.
Example:
Params | A list of function parameters. |
Suite | The name of the test suite containing this test. |
Name | The name of the test. |
... | An optional sequence of designated initializer key/value pairs as described in the criterion_test_extra_data structure (see criterion/types.h). Example: .exit_code = 1 |
Definition at line 69 of file theories.h.
#define TheoryDataPoints | ( | Suite, | |
Name ) CR_TH_INTERNAL_TDPS(Suite, Name) |
Defines an array of data points.
The types of the specified data points must match the types of the associated theory.
Each entry in the array must be the result of the DataPoints
macro.
Example:
Suite | The name of the test suite containing this test. |
Name | The name of the test. |
Definition at line 90 of file theories.h.