|
| #define | PRINT_EXPECTED(data) |
| | Print the given object for unit/regression tests.
|
| |
|
#define | EXPECT_REF_EQ(expected, actual) EXPECT_PRED_FORMAT2(::celeritas::testdetail::IsRefEq, expected, actual) |
| | Custom comparison for Celeritas test result types, using ADL.
|
| |
| #define | EXPECT_REF_NEAR(expected, actual, tol) |
| |
|
#define | EXPECT_VEC_EQ(expected, actual) EXPECT_PRED_FORMAT2(::celeritas::testdetail::IsVecEq, expected, actual) |
| | Container equality macro.
|
| |
|
#define | EXPECT_REAL_EQ(expected, actual) EXPECT_DOUBLE_EQ(expected, actual) |
| | Single-ULP floating point equality macro.
|
| |
|
#define | EXPECT_SOFT_EQ(expected, actual) EXPECT_PRED_FORMAT2(::celeritas::testdetail::IsSoftEquiv, expected, actual) |
| | Soft equivalence macro.
|
| |
| #define | EXPECT_SOFT_NEAR(expected, actual, tol) |
| | Soft equivalence macro with relative error or comparator.
|
| |
| #define | EXPECT_VEC_SOFT_EQ(expected, actual) |
| | Container soft equivalence macro.
|
| |
| #define | EXPECT_VEC_NEAR(expected, actual, tol) |
| | Container soft equivalence macro with relative error or comparator.
|
| |
| #define | CELER_REPR_ATTR(ref, attr) |
| | Helper for printing expected values in reference structs.
|
| |
|
#define | CELER_INVOKE_TYPE_ATTR(func, type, attr) func(#attr, &type::attr) |
| | Invoke an attribute comparison with an optional tolerance.
|
| |
|
#define | CELER_INVOKE_TYPE_ATTR_TOL(func, type, attr, tol) func(#attr, &type::attr, tol) |
| |
|
#define | EXPECT_JSON_EQ(expected, actual) EXPECT_PRED_FORMAT2(::celeritas::testdetail::IsJsonEq, expected, actual) |
| | JSON string equality (soft equal for floats)
|
| |
|
#define | TEST_IF_CELERITAS_DEBUG(name) DISABLED_##name |
| | Construct a test name that is disabled when assertions are enabled.
|
| |
|
#define | TEST_IF_CELER_DEVICE(name) DISABLED_##name |
| | Construct a test name that is disabled when CUDA/HIP are disabled.
|
| |
|
#define | TEST_IF_CELERITAS_DOUBLE(name) name |
| | Construct a test name that is disabled unless using double-precision real.
|
| |
|
#define | TEST_IF_CELERITAS_GEANT(name) DISABLED_##name |
| | Construct a test name that is disabled when Geant4 is disabled.
|
| |
|
#define | TEST_IF_CELERITAS_USE_ROOT(name) DISABLED_##name |
| | Construct a test name that is disabled when ROOT is disabled.
|
| |