Macros and function utils for clojure.spec.test.alpha and clojure.test. Alpha, subject to change.
Macros and function utils for clojure.spec.test.alpha and clojure.test. Alpha, subject to change.
(caught? sym & body)
Returns true if body throws spec error for instrumented fn
Returns true if body throws spec error for instrumented fn
(check sym)
(check sym opts)
(check sym opts tc-opts)
spec.test/check with third arg for passing clojure.test.check options.
spec.test/check with third arg for passing clojure.test.check options.
(check-call symbol args)
Applies args to function resolved by symbol. Checks :args, :ret and :fn specs for spec resolved by symbol. Returns return value if check succeeded, else throws.
Applies args to function resolved by symbol. Checks :args, :ret and :fn specs for spec resolved by symbol. Returns return value if check succeeded, else throws.
(successful? stc-result)
Returns true if all spec.test.alpha/check tests have pass? true.
Returns true if all spec.test.alpha/check tests have pass? true.
(with-instrumentation symbol & body)
Executes body while instrumenting symbol.
Executes body while instrumenting symbol.
(with-unstrumentation symbol & body)
Executes body while unstrumenting symbol.
Executes body while unstrumenting symbol.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close