Liking cljdoc? Tell your friends :D

conjtest.core


-any-failures?clj

(-any-failures? result opts)
source

-count-resultsclj

(-count-results m results)
source

-f-or-schemaclj

(-f-or-schema rule)
source

-failure-reportclj

(-failure-report result {:keys [trace] :as opts})
source

-failure?clj

(-failure? rule-type result)
source

-filter-resultsclj

(-filter-results results {:keys [fail-on-warn]})
source

-format-messageclj

(-format-message filename {:keys [message name rule-type]})
(-format-message filename rule-type name message)
source

-resolve-functionsclj

(-resolve-functions rules)
source

-resolve-ns-functionsclj

(-resolve-ns-functions namespace)
source

-summaryclj

(-summary result)
source

-summary-reportclj

(-summary-report result {:keys [trace] :as _opts})
source

-testclj

(-test inputs rule {:keys [trace] :as _opts})
source

-trace-entriesclj

(-trace-entries filename results)
source

-trace-reportclj

(-trace-report result)
source

initial-count-stateclj

source

malli-schema?clj

(malli-schema? rule)
source

message-or-nilclj

(message-or-nil x)
source

messages-or-nilclj

(messages-or-nil x)
source

rule-functionclj

(rule-function rule)
source

rule-messageclj

(rule-message rule)
source

rule-nameclj

(rule-name rule)
source

rule-typeclj

(rule-type rule)
source

rule?clj

(rule? x)
source

testclj

(test inputs & rules)

Validate rules against all given inputs. If all rules validate correctly, returns summary report. If any rules do not validate correctly, will return failure report.

inputs either accepts a map of filenames-to-data or a vec of data. Data can be any data structure.

rules either accepts functions, malli schemas, vars, or namespaces.

Validate `rules` against all given `inputs`. If all rules validate correctly, returns summary report. If any rules
 do not validate correctly, will return failure report.

`inputs` either accepts a map of filenames-to-data or a vec of data. Data can be any data structure.

`rules` either accepts functions, malli schemas, vars, or namespaces.
sourceraw docstring

test!clj

(test! inputs & rules)

Validate rules against all given inputs. If all rules validate correctly, returns summary report. If any rules do not validate correctly, function will throw.

inputs either accepts a map of filenames-to-data or a vec of data. Data can be any data structure.

rules either accepts functions, malli schemas, vars, or namespaces.

Validate `rules` against all given `inputs`. If all rules validate correctly, returns summary report. If any rules
 do not validate correctly, function will throw.

`inputs` either accepts a map of filenames-to-data or a vec of data. Data can be any data structure.

`rules` either accepts functions, malli schemas, vars, or namespaces.
sourceraw docstring

test-with-optsclj

(test-with-opts inputs rules)
(test-with-opts inputs rules opts)

Validate rules against all given inputs. If all rules validate correctly, returns summary report. If any rules do not validate correctly, will return failure report.

inputs either accepts a map of filenames-to-data or a vec of data. Data can be any data structure.

rules either accepts a vector of functions, malli schemas, vars, or namespaces.

opts optionally accepts a map of options with support for following configuration:

  • :fail-on-warn, returns failure report if warn policies fail
  • :trace, returns trace report
Validate `rules` against all given `inputs`. If all rules validate correctly, returns summary report. If any rules
 do not validate correctly, will return failure report.

`inputs` either accepts a map of filenames-to-data or a vec of data. Data can be any data structure.

`rules` either accepts a vector of functions, malli schemas, vars, or namespaces.

`opts` optionally accepts a map of options with support for following configuration:
- `:fail-on-warn`, returns failure report if warn policies fail
- `:trace`, returns trace report
sourceraw docstring

test-with-opts!clj

(test-with-opts! inputs rules)
(test-with-opts! inputs rules opts)

Validate rules against all given inputs. If all rules validate correctly, returns summary report. If any rules do not validate correctly, function will throw.

inputs either accepts a map of filenames-to-data or a vec of data. Data can be any data structure.

rules either accepts a vector of functions, malli schemas, vars, or namespaces.

opts optionally accepts a map of options with support for following configuration:

  • :fail-on-warn, throws if warn policies fail
  • :trace, returns trace report, prints trace report if function throws
Validate `rules` against all given `inputs`. If all rules validate correctly, returns summary report. If any rules
 do not validate correctly, function will throw.

`inputs` either accepts a map of filenames-to-data or a vec of data. Data can be any data structure.

`rules` either accepts a vector of functions, malli schemas, vars, or namespaces.

`opts` optionally accepts a map of options with support for following configuration:
- `:fail-on-warn`, throws if warn policies fail
- `:trace`, returns trace report, prints trace report if function throws
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close