(-emit-instrument-fn env
{:keys [gen filters report] :as instrument-opts}
{:keys [schema] :as schema-map}
ns-sym
fn-sym)(-emit-multi-arity-instrumentation-code fn-sym schema-map schema max-fixed-args)(-emit-unstrument-fn env {:keys [schema filters] :as opts} ns-sym fn-sym)(-emit-variadic-instrumented-fn fn-sym schema-map max-fixed-args)(-mock-cljs-schema schema)Takes malli schema data and replaces all non default schemas with :any
Takes malli schema data and replaces all non default schemas with :any
(check)Checks all registered function schemas using generative testing. Returns nil or a map of symbol -> explanation in case of errors.
Checks all registered function schemas using generative testing. Returns nil or a map of symbol -> explanation in case of errors.
(collect!)(collect! args-map)Reads all public Vars from a given namespace(s) and registers a function (var) schema if :malli/schema
metadata is present. The following metadata key can be used:
| key | description |
|---|---|
:malli/schema | function schema |
:malli/scope | optional set of scope definitions, defaults to #{:input :output} |
:malli/report | optional side-effecting function of key data -> any to report problems, defaults to m/-fail! |
:malli/gen | optional value true or function of schema -> schema -> value to be invoked on the args to get the return value |
Reads all public Vars from a given namespace(s) and registers a function (var) schema if `:malli/schema`
metadata is present. The following metadata key can be used:
| key | description |
| ----------------|-------------|
| `:malli/schema` | function schema
| `:malli/scope` | optional set of scope definitions, defaults to `#{:input :output}`
| `:malli/report` | optional side-effecting function of `key data -> any` to report problems, defaults to `m/-fail!`
| `:malli/gen` | optional value `true` or function of `schema -> schema -> value` to be invoked on the args to get the return value(instrument!)(instrument! opts)Applies instrumentation for a filtered set of function Vars (e.g. defns).
See malli.core/-instrument for possible options.
Applies instrumentation for a filtered set of function Vars (e.g. `defn`s). See [[malli.core/-instrument]] for possible options.
(unstrument!)(unstrument! opts)Removes instrumentation from a filtered set of function Vars (e.g. defns).
See malli.core/-instrument for possible options.
Removes instrumentation from a filtered set of function Vars (e.g. `defn`s). See [[malli.core/-instrument]] for possible options.
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 |