Liking cljdoc? Tell your friends :D

conjtest.core


-any-failures?clj

(-any-failures? result opts)

-count-resultsclj

(-count-results m results)

-failure-reportclj

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

-filter-resultsclj

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

-format-messageclj

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

-resolve-functionsclj

(-resolve-functions rules)

-resolve-ns-functionsclj

(-resolve-ns-functions namespace)

-summaryclj

(-summary result)

-summary-reportclj

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

-testclj

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

-trace-entriesclj

(-trace-entries filename results)

-trace-reportclj

(-trace-report result)

initial-count-stateclj


message-or-nilclj

(message-or-nil x)

messages-or-nilclj

(messages-or-nil x)

rule-functionclj

(rule-function rule)

rule-messageclj

(rule-message rule)

rule-nameclj

(rule-name rule)

rule-typeclj

(rule-type rule)

rule?clj

(rule? x)

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, 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, vars, or namespaces.
raw 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, 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, vars, or namespaces.
raw 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, 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, 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
raw 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, 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, 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
raw docstring

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

× close