Liking cljdoc? Tell your friends :D

strojure.assertie.impl


assert-implclj/smacro

(assert-impl x test form message edf)

Evaluates x and test, catches exception and throws an exception if test does not evaluate to logical true or other exceptions were thrown. Evaluated x is available in implementing macros as symbol 'x, which is ::no-value when evaluation failed. Returns true when assertion passed.

Evaluates `x` and `test`, catches exception and throws an exception if `test`
does not evaluate to logical true or other exceptions were thrown. Evaluated
`x` is available in implementing macros as symbol `'x`, which is `::no-value`
when evaluation failed. Returns `true` when assertion passed.
sourceraw docstring

asserting-value?clj/s

(asserting-value? x)

True if x is asserting value.

True if x is asserting value.
sourceraw docstring

ex-data-fnclj/smultimethod

(ex-data-fn id value)

Returns ex-data function by id and asserting value.

Returns ex-data function by `id` and asserting value.
sourceraw docstring

exceptionclj/s

(exception form message edf throwable)

Returns assertion exception with message: {message} - Assert failed: {form} and ex-data from (edf throwable). Arguments message, edf and throwable can be nil.

Returns assertion exception with message:
`{message} - Assert failed: {form}` and ex-data from `(edf throwable)`.
Arguments `message`, `edf` and `throwable` can be `nil`.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close