Macros | |
#define | PW_CONSTEXPR_TEST(test_suite, test_name, ...) |
#define PW_CONSTEXPR_TEST | ( | test_suite, | |
test_name, | |||
... | |||
) |
Defines a test that is executed both at compile time in a static_assert
and as a regular GoogleTest-style TEST()
.
PW_CONSTEXPR_TEST
works similarly to the GoogleTest TEST()
macro, but has some differences.
constexpr
.PW_TEST_*
prefixed versions of GoogleTest's EXPECT_*
and ASSERT_*
macros.#define
. If these are needed, move them to a separate function that is called from the test.PW_CONSTEXPR_TEST
macro must be terminated with );
after the test body argument.test_suite | GoogleTest test suite name |
test_name | GoogleTest test name |
... | test function body surrounded by { } . |