Liking cljdoc? Tell your friends :D

malli.instrument


-arity->schemacljs

(-arity->schema fn-schema)
source

-cljs-collect!*clj

(-cljs-collect!* env simple-name {:keys [meta] :as var-map})
source

-collect!clj

(-collect! v)
source

-f->originalclj

(-f->original f)
source

-filter-nsclj/s

(-filter-ns & ns)
source (clj)source (cljs)

-filter-schemaclj/s

(-filter-schema f)
source (clj)source (cljs)

-filter-varclj/s

(-filter-var f)
source (clj)source (cljs)

-find-varclj

(-find-var n s)
source

-max-fixed-aritycljs

(-max-fixed-arity f)
source

-originalclj

(-original v)
source

-pure-variadic?cljs

(-pure-variadic? f)
source

-replace-fncljs

(-replace-fn original-fn n s opts)
source

-replace-multi-aritycljs

(-replace-multi-arity original-fn n s opts)
source

-replace-variadic-fncljs

(-replace-variadic-fn original-fn n s opts)
source

-schemaclj

(-schema v)
source

-sequentialclj

(-sequential x)
source

-strument!clj/s≠

clj
(-strument!)
(-strument! {:keys [mode data filters gen report]
             :or {mode :instrument data (m/function-schemas)}
             :as options})
cljs
(-strument!)
(-strument! {:keys [mode data filters gen report skip-instrumented?]
             :or {skip-instrumented? false
                  mode :instrument
                  data (m/function-schemas :cljs)}
             :as options})
source (clj)source (cljs)

-variadic?cljs

(-variadic? f)
source

checkclj/s

(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.
source (clj)source (cljs)raw docstring

clj-collect!clj

(clj-collect!)
(clj-collect! {:keys [ns]})
source

cljs-collect!clj/smacro

(cljs-collect!)
(cljs-collect! opts)
source

collect!clj/smacro

(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:

keydescription
:malli/schemafunction schema
:malli/scopeoptional set of scope definitions, defaults to #{:input :output}
:malli/reportoptional side-effecting function of key data -> any to report problems, defaults to m/-fail!
:malli/genoptional 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
sourceraw docstring

instrument!clj/s

(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.
source (clj)source (cljs)raw docstring

unstrument!clj/s

(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.
source (clj)source (cljs)raw docstring

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

× close