Namespace providing testing facilities
Namespace providing testing facilities
(assert-exception slingshot-bindings & body)Macro for asserting on the shape of the data provided by ex-info.
See slingshot.slingshot/try+ for more details on the bindings.
An example that would match:
(assert-exception [:type :foo] (throw (ex-info "Error" {:type :foo})))
Macro for asserting on the shape of the data provided by `ex-info`.
See `slingshot.slingshot/try+` for more details on the bindings.
An example that would match:
(assert-exception [:type :foo] (throw (ex-info "Error" {:type :foo})))(assert-match result match-pattern)Macro which asserts that result matches the match-pattern, throwing an
exception if it does not.
Macro which asserts that `result` matches the `match-pattern`, throwing an exception if it does not.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |