(-strument!)(-strument! {:keys [mode data filters gen report]
:or {mode :instrument data (m/function-schemas)}
:as options})(-strument!)(-strument! {:keys [mode data filters gen report skip-instrumented?]
:or {skip-instrumented? false
mode :instrument
data (m/function-schemas :cljs)}
: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! opts)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. 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! options)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 |