MCPcopy Create free account
hub / github.com/Compaile/ctrack / binary_assert

Method binary_assert

test/doctest.h:1693–1700  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1691
1692 template <int comparison, typename L, typename R>
1693 DOCTEST_NOINLINE bool binary_assert(const DOCTEST_REF_WRAP(L) lhs,
1694 const DOCTEST_REF_WRAP(R) rhs) {
1695 m_failed = !RelationalComparator<comparison, L, R>()(lhs, rhs);
1696 if (m_failed || getContextOptions()->success) {
1697 m_decomp = stringifyBinaryExpr(lhs, ", ", rhs);
1698 }
1699 return !m_failed;
1700 }
1701
1702 template <typename L>
1703 DOCTEST_NOINLINE bool unary_assert(const DOCTEST_REF_WRAP(L) val) {

Callers

nothing calls this directly

Calls 2

getContextOptionsFunction · 0.85
stringifyBinaryExprFunction · 0.85

Tested by

no test coverage detected