Github User Fetcher 1.0.0
C Application with Server and GUI
|
Macros | |
#define | ParameterizedTest(Type, Suite, Name, ...) internal |
#define | ParameterizedTestParameters(Suite, Name) internal |
#define | cr_make_param_array(Type, Array, Len, Cleanup) internal |
#define cr_make_param_array | ( | Type, | |
Array, | |||
Len, | |||
Cleanup ) internal |
Constructs a parameter list used as a return value for a parameter generator.
This is only recommended for C sources. For C++, use criterion::parameters
or criterion_test_params
.
Type | The type of the array subscript. |
Array | The array of parameters. |
Len | The length of the array. |
Cleanup | The optional cleanup function for the array. |
Definition at line 80 of file parameterized.h.
#define ParameterizedTest | ( | Type, | |
Suite, | |||
Name, | |||
... ) internal |
ParameterizedTest(Type *param, Suite, Name, [Options...]) { Function Body }
Defines a new parameterized test.
A parameterized test only takes one parameter – to pass multiple parameters, use a structure type.
Type | The type of the parameter. |
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 55 of file parameterized.h.
#define ParameterizedTestParameters | ( | Suite, | |
Name ) internal |
Defines the parameter generator prototype for the associated parameterized test.
Suite | The name of the test suite containing the test. |
Test | The name of the test. |
Definition at line 66 of file parameterized.h.