Skip to content

Function check_assertion

function check_assertion(...) test

bool check_assertion(...)

SFINAE fallback for non-comparison arguments.

Fully qualified name: kfr::check_assertion(...)

Declared at test/assert.hpp:60

Function check_assertion

function check_assertion(const comparison<Op, L, R> &, const char *, const char *, int) test

template <typename Op, typename L, typename R>
bool check_assertion(const comparison<Op, L, R>& comparison, const char* expr, const char* file, int line)

Evaluates a full comparison and reports it on failure.

Parameters
comparison The comparison object produced by make_comparison .
expr Textual representation of the asserted expression.
file Name of the source file where the assertion was evaluated.
line One-based line number within file.
Returns
true if the comparison holds, false otherwise.

Fully qualified name: kfr::check_assertion(const comparison<Op, L, R> &, const char *, const char *, int)

Declared at test/assert.hpp:75

Function check_assertion

function check_assertion(const half_comparison<L> &, const char *, const char *, int) test

template <typename L>
bool check_assertion(const half_comparison<L>& comparison, const char* expr, const char* file, int line)

Evaluates a half comparison (a bare boolean operand) and reports it on failure.

Parameters
comparison The half comparison holding the boolean-like operand.
expr Textual representation of the asserted expression.
file Name of the source file where the assertion was evaluated.
line One-based line number within file.
Returns
true if the operand is truthy, false otherwise.

Fully qualified name: kfr::check_assertion(const half_comparison<L> &, const char *, const char *, int)

Declared at test/assert.hpp:102

This file was generated by cxxdox, a C++ documentation generator based on MkDocs Material and libclang.