![]() |
Arene Base
Fundamental Utilities For Safety Critical C++
|
Go to the source code of this file.
Macros to help define assertions that are conditionally static depending on the test's type parameter.
| #define ARENE_INSTANTIATE_TESTS | ( | Prefix, | |
| SuiteBaseName, | |||
| Types ) |
Instantiate the Arene Base parameterized tests for the given suite with the given types. Always instantiates the general and death tests, and also the constexpr-only tests for compatible types.
| Prefix | The prefix to use for this instantiation of the tests; passed directly to Google Test |
| SuiteBaseName | The name of the suite to instantiate without the Test , DeathTest , etc. at the end |
| Types | The name of a Google Test type list containing the types for which SuiteName should be instantiated |
| #define ARENE_INSTANTIATE_TYPED_TEST_SUITE_P | ( | Prefix, | |
| SuiteBaseName, | |||
| SuiteSuffix, | |||
| Types ) |
Call the Google Test suite instantiation macro with the given arguments This exists to avoid having more than one ## in a single macro, since concatenation is needed for Google Test The extra comma in the Google macro is part of its undocumented name generator API, which we don't use.
| Prefix | The prefix to use for this instantiation of the tests; passed directly to Google Test |
| SuiteBaseName | The name of the suite to instantiate without the Test , DeathTest , etc. at the end |
| SuiteSuffix | The suffix which is combined with SuiteBaseName to create the Google Test suite name |
| Types | The name of a Google Test type list containing the types for which SuiteName should be instantiated |
| #define COND_STATIC_ASSERT_BINARY | ( | left_arg, | |
| right_arg, | |||
| assertion_type ) |
Call a Google Test binary assertion macro at runtime, and statically if TypeParam is compatible.
| left_arg | Left half of the assertion; should not contain references to non-constexpr variables |
| right_arg | Right half of the assertion; should not contain references to non-constexpr variables |
| assertion_type | The ::arene::base::testing::gtest_operation value specifying the assertion to use |
| #define COND_STATIC_ASSERT_EQ | ( | left_arg, | |
| right_arg ) |
Call Google Test ASSERT_EQ at runtime, and also statically if TypeParam is compatible.
| left_arg | Left half of the assertion; should not contain references to non-constexpr variables |
| right_arg | Right half of the assertion; should not contain references to non-constexpr variables |
| #define COND_STATIC_ASSERT_FALSE | ( | ... | ) |
Call Google Test ASSERT_FALSE at runtime, and also statically if TypeParam is compatible.
| condition | The condition to assert as false; should not contain references to non-constexpr variables |
| #define COND_STATIC_ASSERT_GE | ( | left_arg, | |
| right_arg ) |
Call Google Test ASSERT_GE at runtime, and also statically if TypeParam is compatible.
| left_arg | Left half of the assertion; should not contain references to non-constexpr variables |
| right_arg | Right half of the assertion; should not contain references to non-constexpr variables |
| #define COND_STATIC_ASSERT_GT | ( | left_arg, | |
| right_arg ) |
Call Google Test ASSERT_GT at runtime, and also statically if TypeParam is compatible.
| left_arg | Left half of the assertion; should not contain references to non-constexpr variables |
| right_arg | Right half of the assertion; should not contain references to non-constexpr variables |
| #define COND_STATIC_ASSERT_LE | ( | left_arg, | |
| right_arg ) |
Call Google Test ASSERT_LE at runtime, and also statically if TypeParam is compatible.
| left_arg | Left half of the assertion; should not contain references to non-constexpr variables |
| right_arg | Right half of the assertion; should not contain references to non-constexpr variables |
| #define COND_STATIC_ASSERT_LT | ( | left_arg, | |
| right_arg ) |
Call Google Test ASSERT_LT at runtime, and also statically if TypeParam is compatible.
| left_arg | Left half of the assertion; should not contain references to non-constexpr variables |
| right_arg | Right half of the assertion; should not contain references to non-constexpr variables |
| #define COND_STATIC_ASSERT_NE | ( | left_arg, | |
| right_arg ) |
Call Google Test ASSERT_NE at runtime, and also statically if TypeParam is compatible.
| left_arg | Left half of the assertion; should not contain references to non-constexpr variables |
| right_arg | Right half of the assertion; should not contain references to non-constexpr variables |
| #define COND_STATIC_ASSERT_TRUE | ( | ... | ) |
Call Google Test ASSERT_TRUE at runtime, and also statically if TypeParam is compatible.
| condition | The condition to assert as true; should not contain references to non-constexpr variables |
| #define COND_STATIC_ASSERT_UNARY | ( | assertion_type, | |
| ... ) |
Call a Google Test unary assertion macro at runtime, and statically if TypeParam is compatible.
| condition | The condition to assert; should not contain reference to non-constexpr variables |
| assertion_type | The ::arene::base::testing::gtest_operation value specifying the assertion to use |