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

checkclj/smacro

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

check*clj/s

(check* f spec args)

check-callclj/s

(check-call f specs args)

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

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

choose-envclj/smacro

(choose-env & {:keys [cljs clj]})

deftimeclj/smacro

(deftime & body)

gentestclj/smacro

(gentest sym)
(gentest 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.
raw docstring

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

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

throwable?clj/s

(throwable? e)

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

with-instrumentationclj/smacro

(with-instrumentation symbol & body)

Executes body while instrumenting symbol.

Executes body while instrumenting symbol.
raw docstring

with-unstrumentationclj/smacro

(with-unstrumentation symbol & body)

Executes body while unstrumenting symbol.

Executes body while unstrumenting symbol.
raw docstring

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

× close