![]() |
Arene Base
Fundamental Utilities For Safety Critical C++
|
Go to the source code of this file.
| #define CONDITIONAL_CONSTEXPR_TYPED_TEST | ( | testsuite, | |
| testcase, | |||
| ... ) |
defines a typed test case that is invoked at compile time which is conditionally run based on the third parameter
| testsuite | The GoogleTest testsuite name |
| testcase | The GoogleTest testcase name |
| Condition | A condition convertible to bool which depends on TypeParam |
Defines a TYPED_TEST that invokes a constexpr test implementation function. The implementation function is invoked twice: once at compile-time to ensure it is in-fact compile-time invocable, and again at runtime in order to generate test coverage. If the Condition is false, then the implementation function is never instantiated.
The Condition parameter can be a type_trait depending on the TypeParam of the TYPED_TEST.
A test defined with this macro may not use *this or other non- constexpr members from the test fixture.
| #define CONDITIONALLY_CONSTEXPR_TEST | ( | testsuite, | |
| testcase, | |||
| ... ) |
defines a test case that is conditionally invoked at compile-time
| testsuite | The GoogleTest testsuite name |
| testcase | The GoogleTest testcase name |
| Condition | A condition convertible to bool |
Defines a TEST that conditionally invokes a constexpr test implementation function. The implementation function is invoked at least once at runtime, and possibly a second time at compile-time, depending on the Condition parameter.
| #define CONDITIONALLY_CONSTEXPR_TYPED_TEST | ( | testsuite, | |
| testcase, | |||
| ... ) |
defines a typed test case that is conditionally invoked at compile-time
| testsuite | The GoogleTest testsuite name |
| testcase | The GoogleTest testcase name |
| Condition | A condition convertible to bool which depends on TypeParam |
Defines a TYPED_TEST that conditionally invokes a constexpr test implementation function. The implementation function is invoked at least once at runtime, and possibly a second time at compile-time, depending on the CheckIfShouldRunInConstexpr parameter.
The CheckIfShouldRunInConstexpr parameter can be a type_trait depending on the TypeParam of the TYPED_TEST.
A test defined with this macro may not use *this or other non- constexpr members from the test fixture.
| #define CONSTEXPR_ASSERT | ( | ... | ) |
asserts that the argument is true
Replacement assertion macro for use in CONSTEXPR_TEST and CONSTEXPR_TYPED_TEST. No GoogleTest assertion macro can be used at compile-time due to all implementations invoking functionality that cannot be used at compile-time (e.g. malloc).
| #define CONSTEXPR_ASSERT_EQ | ( | lhs, | |
| rhs ) |
asserts that the arguments are equal
Replacement assertion macro for use in CONSTEXPR_TEST and CONSTEXPR_TYPED_TEST. No GoogleTest assertion macro can be used at compile-time due to all implementations invoking functionality that cannot be used at compile-time (e.g. malloc).
| #define CONSTEXPR_ASSERT_FALSE | ( | ... | ) |
asserts that the argument is false
Replacement assertion macro for use in CONSTEXPR_TEST and CONSTEXPR_TYPED_TEST. No GoogleTest assertion macro can be used at compile-time due to all implementations invoking functionality that cannot be used at compile-time (e.g. malloc).
| #define CONSTEXPR_TEST | ( | testsuite, | |
| testcase ) |
defines a test case that is invoked at compile-time
| testsuite | The GoogleTest testsuite name |
| testcase | The GoogleTest testcase name |
Performs custom test registration for testsuite testsuite and testcase @testcase that invokes a constexpr test implementation function. The implementation function is invoked twice: once at compile-time to ensure it is in-fact compile-time invocable, and again at runtime in order to generate test coverage.
| #define CONSTEXPR_TYPED_TEST | ( | testsuite, | |
| testcase ) |
defines a typed test case that is invoked at compile-time
| testsuite | The GoogleTest testsuite name |
| testcase | The GoogleTest testcase name |
Defines a TYPED_TEST that invokes a constexpr test implementation function. The implementation function is invoked twice: once at compile-time to ensure it is in-fact compile-time invocable, and again at runtime in order to generate test coverage.
A test defined with this macro may not use *this or other non- constexpr members from the test fixture.
| #define TESTCASE_TAG_NAME | ( | testsuite, | |
| testcase ) |
defines the name of a tag associated with a testcase
| testsuite | The GoogleTest testsuite name |
| testcase | The GoogleTest testcase name |
| #define TESTCASE_TYPE_NAME | ( | testsuite, | |
| testcase ) |
defines the name of a type associated with a testcase
| testsuite | The GoogleTest testsuite name |
| testcase | The GoogleTest testcase name |