(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`
(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)
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |