(->because-error-msg because-error)
Unify report behavior for failing spec tests expected to be valid.
Unify report behavior for failing spec tests expected to be valid.
(->file-and-line-repr file line & [expression-code])
Takes path to a test file, and test line. Returns a list of path to a test file and test line concatenated as a string. If runtime is cljs JS, expression is returned.
Takes path to a test file, and test line. Returns a list of path to a test file and test line concatenated as a string. If runtime is cljs JS, expression is returned.
(->testing-fn-repr {:keys [function file line expression-code actual]})
Returns a heading representation of the current test.
Returns a heading representation of the current test.
(do-example-equal-report [equal expected [f & params :as actual]])
Call do-report with a prepared params map for a function example.
Call do-report with a prepared params map for a function example.
(do-example-pred-report [_ [pred [f & params :as actual] :as result]])
Call do-report with a prepared params map for a function example taking a predicate checker.
Call do-report with a prepared params map for a function example taking a predicate checker.
(do-expected-spec-report [_ spec-kw [f & params :as actual] :as result])
Call do-report with a prepared params map for a function example taking a spec checker.
Call do-report with a prepared params map for a function example taking a spec checker.
(do-expression-equal-report [equal expected actual])
Call do-report for an expression test with an expected value.
Call do-report for an expression test with an expected value.
(do-expression-expected-spec-report [_ spec-kw actual :as result])
Call do-report on an expression test taking a spec checker.
Call do-report on an expression test taking a spec checker.
(do-expression-pred-report [_ [pred actual :as result]])
Call do-report for an expression checked against a predicate.
Call do-report for an expression checked against a predicate.
(do-report m)
Add file and line information to a test result and call report. If you are writing a custom assert-expr method, call this function to pass test results to report. Modified clojure.test fn to convert :fail-spec into :fail, in order to get file:line. Source: https://github.com/clojure/clojure/blob/master/src/clj/clojure/test.clj
Add file and line information to a test result and call report. If you are writing a custom assert-expr method, call this function to pass test results to report. Modified clojure.test fn to convert :fail-spec into :fail, in order to get file:line. Source: https://github.com/clojure/clojure/blob/master/src/clj/clojure/test.clj
Add file and line information to a test result and call report. If you are writing a custom assert-expr method, call this function to pass test results to report. Source: https://github.com/clojure/clojurescript/blob/master/src/main/cljs/cljs/test.cljs
Add file and line information to a test result and call report. If you are writing a custom assert-expr method, call this function to pass test results to report. Source: https://github.com/clojure/clojurescript/blob/master/src/main/cljs/cljs/test.cljs
(do-spec-report [f spec-kw example] expect-valid?)
Call do-report with a prepared params map for a spec example.
Call do-report with a prepared params map for a spec example.
(file-and-line exception depth)
Extract file, line, and maybe column number information from stracktrace. Source: https://github.com/clojure/clojurescript/blob/master/src/main/cljs/cljs/test.cljs
Extract file, line, and maybe column number information from stracktrace. Source: https://github.com/clojure/clojurescript/blob/master/src/main/cljs/cljs/test.cljs
(normalise-pred pred)
Represent predicate as a string. If predicate is part of clj core, omit the namespace.
Represent predicate as a string. If predicate is part of clj core, omit the namespace.
(print-report {:keys [params actual op expected expression-code pred spec-kw
spec-error-data]
:as m})
(rm-cljsjs-st-fname-prefix-fluff fname)
Remove unnecessary (for reports) prefix found in a filename of a cljs js stacktrace.
Remove unnecessary (for reports) prefix found in a filename of a cljs js stacktrace.
(spec->because-error {clj-problems :clojure.spec.alpha/problems
cljs-problems :cljs.spec.alpha/problems})
Prepare a spec error for a 'because' report error message.
Prepare a spec error for a 'because' report error message.
(spec-because example because-error expect-valid?)
Unify report behavior for failing spec tests expected to be valid and invalid.
Unify report behavior for failing spec tests expected to be valid and invalid.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close