MCPcopy Create free account
hub / github.com/crill-dev/crill / binary_assert

Function binary_assert

include/doctest/doctest.h:1722–1734  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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,

Callers

nothing calls this directly

Calls 1

stringifyBinaryExprFunction · 0.85

Tested by

no test coverage detected