Liking cljdoc? Tell your friends :D
Clojure only.

spy.protocol


mockcljmacro

(mock & opts+specs)

Creates an implementation via clojure.core/reify and a wrapper to spy on the implementation, forwards all calls to the implementation and records calsl in spies. Matches the signature and can be used directly instead of clojure.core/reify

Creates an implementation via `clojure.core/reify` and
a wrapper to spy on the implementation, forwards all calls
to the implementation and records calsl in spies. Matches the
signature and can be used directly instead of `clojure.core/reify`
sourceraw docstring

spiesclj

(spies instance)
source

spycljmacro

(spy & args)

Reify the protocols, spies attached to the reified object via metadata. Can accept multiple protocols at once: (spy.protocol/spy Proto1...ProtoN impl)

Reify the protocols, spies attached to the reified object via metadata.
Can accept multiple protocols at once: (spy.protocol/spy Proto1...ProtoN impl)
sourceraw docstring

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

× close