MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / binary_assert

Method binary_assert

Tests/Doctest/Include/doctest.h:1692–1699  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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