Liking cljdoc? Tell your friends :D

fooheads.test


ex-symbolclj/s

(ex-symbol env)

should-beclj/smacro

(should-be expected actual)

thrown-ex-dataclj/smacro

(thrown-ex-data body)
(thrown-ex-data ks body)

Catches an exception in body and extracts the ex-data, to make it easy to test exceptional code. If ks is given, these keys are extracted from the ex-data map.

If an exception is not thrown, it returns {:expected-exception :was-not-thrown}

Catches an exception in `body` and extracts the ex-data, to make it easy to
test exceptional code. If `ks` is given, these keys are extracted from the
ex-data map.

If an exception is not thrown, it returns
`{:expected-exception :was-not-thrown}`
raw docstring

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

× close