Liking cljdoc? Tell your friends :D

speculative.test

Macros and function utils for clojure.spec.test.alpha. API may change at any time.

Macros and function utils for clojure.spec.test.alpha. API may change
at any time.
raw docstring

?clj/smacro

(? & {:keys [cljs clj]})
source (clj)source (cljs)

checkclj/smacro

(check sym)
(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.
source (clj)source (cljs)raw docstring

check-callclj/smacro

(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.
source (clj)source (cljs)raw docstring

check-call*clj/s

(check-call* f spec args)
source

deftimeclj/smacro

(deftime & body)
source (clj)source (cljs)

do-check-callclj/s

(do-check-call f specs args)

From clojure.spec.test.alpha, adapted for speculative.

From clojure.spec.test.alpha, adapted for speculative.
sourceraw docstring

get-specclj/smacro

(get-spec symbol)
source (clj)source (cljs)

instrumentclj/smacro

(instrument symbol)
source (clj)source (cljs)

successful?clj/s

(successful? stc-result)

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

Returns true if all spec.test.check tests have pass? true.
sourceraw docstring

test-checkclj/smacro

(test-check symbol opts)
source (clj)source (cljs)

test-check-kwclj/s

(test-check-kw name)

Returns qualified keyword used for interfacing with clojure.test.check

Returns qualified keyword used for interfacing with
clojure.test.check
sourceraw docstring

throwable?clj/s

(throwable? e)
source

throwsclj/smacro

(throws symbol & body)

Asserts that body throws spec error concerning s/fdef for symbol.

Asserts that body throws spec error concerning s/fdef for symbol.
source (clj)source (cljs)raw docstring

try-returnclj/smacro

(try-return & body)

Executes body and returns exception as value

Executes body and returns exception as value
source (clj)source (cljs)raw docstring

unstrumentclj/smacro

(unstrument symbol)
source (clj)source (cljs)

with-instrument-disabledclj/smacro

(with-instrument-disabled & body)
source (clj)source (cljs)

with-instrumentationclj/smacro

(with-instrumentation symbol & body)

Executes body while instrumenting symbol.

Executes body while instrumenting symbol.
source (clj)source (cljs)raw docstring

with-unstrumentationclj/smacro

(with-unstrumentation symbol & body)

Executes body while unstrumenting symbol.

Executes body while unstrumenting symbol.
source (clj)source (cljs)raw docstring

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

× close