Liking cljdoc? Tell your friends :D

respeced.test

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.
raw docstring

caught?clj/smacro

(caught? sym & body)

Returns true if body throws spec error for instrumented fn.

Returns `true` if body throws spec error for instrumented fn.
sourceraw docstring

checkclj/smacro

(check sym)
(check sym opts)
(check sym opts tc-opts)

Like clojure.spec.test.alpha/check with third arg for passing clojure.test.check options.

Like `clojure.spec.test.alpha/check` with third arg for passing
`clojure.test.check` options.
sourceraw docstring

check-callclj/smacro

(check-call symbol args)

Applies args to function resolved by symbol. Checks :args, :ret and :fn specs. Returns return value of call if succeeded, else throws.

Applies args to function resolved by symbol. Checks `:args`, `:ret`
and `:fn` specs. Returns return value of call if succeeded, else
throws.
sourceraw docstring

successful?clj/s

(successful? stc-result)

Returns true if all clojure.spec.test.alpha/check tests have pass? true.

Returns `true` if all `clojure.spec.test.alpha/check` tests have
`pass?` `true.`
sourceraw docstring

with-instrumentationclj/smacro

(with-instrumentation symbol & body)

Instrument a function in the scope of a body. Restores instrumentation state, i.e. unstruments after the call only when the function was not instrumented before the call).

Instrument a function in the scope of a body. Restores instrumentation state,
i.e. unstruments after the call only when the function was not
instrumented before the call).
sourceraw docstring

with-unstrumentationclj/smacro

(with-unstrumentation symbol & body)

Unstrument a function in the scope of a body. Restores instrumentation state, i.e. only re-instruments after the call when the function was instrumented before the call.

Unstrument a function in the scope of a body. Restores instrumentation state,
i.e. only re-instruments after the call when the function was
instrumented before the call.
sourceraw docstring

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

× close