| 1720 | |
| 1721 | template <int comparison, typename L, typename R> |
| 1722 | DOCTEST_NOINLINE bool binary_assert(assertType::Enum at, const char* file, int line, |
| 1723 | const char* expr, const DOCTEST_REF_WRAP(L) lhs, |
| 1724 | const DOCTEST_REF_WRAP(R) rhs) { |
| 1725 | bool failed = !RelationalComparator<comparison, L, R>()(lhs, rhs); |
| 1726 | |
| 1727 | // ################################################################################### |
| 1728 | // IF THE DEBUGGER BREAKS HERE - GO 1 LEVEL UP IN THE CALLSTACK FOR THE FAILING ASSERT |
| 1729 | // THIS IS THE EFFECT OF HAVING 'DOCTEST_CONFIG_SUPER_FAST_ASSERTS' DEFINED |
| 1730 | // ################################################################################### |
| 1731 | DOCTEST_ASSERT_OUT_OF_TESTS(stringifyBinaryExpr(lhs, ", ", rhs)); |
| 1732 | DOCTEST_ASSERT_IN_TESTS(stringifyBinaryExpr(lhs, ", ", rhs)); |
| 1733 | return !failed; |
| 1734 | } |
| 1735 | |
| 1736 | template <typename L> |
| 1737 | DOCTEST_NOINLINE bool unary_assert(assertType::Enum at, const char* file, int line, |
nothing calls this directly
no test coverage detected