(-strument!)
(-strument! {:keys [mode data filters gen]
:or {mode :instrument data (m/function-schemas)}
:as options})
(check)
(check options)
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! {:keys [ns]})
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! options)
Applies instrumentation for a filtered set of function Vars (e.g. defn
s).
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! options)
Removes instrumentation from a filtered set of function Vars (e.g. defn
s).
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 is a website building & hosting documentation for Clojure/Script libraries
× close