Liking cljdoc? Tell your friends :D

eg.report


->file-and-line-reprclj/s

(->file-and-line-repr file line)

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, test line is not concatenated to path to test file.

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, test line is not concatenated to path to test file.
sourceraw docstring

->testing-fn-reprclj/s

(->testing-fn-repr {:keys [function file line expression?]})

Returns a heading representation of the current test.

Returns a heading representation of the current test.
sourceraw docstring

do-equal-reportclj/s

(do-equal-report equal expected [f & params :as actual] expression?)

Support customised spec examples in a test result and call report.

Support customised spec examples in a test result and call report.
sourceraw docstring

do-reportclj/s≠

(do-report m)
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 clj.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 clj.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
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

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

do-spec-reportclj/s

(do-spec-report [f spec-kw example] expect-valid?)

Support customised spec examples in a test result and call report.

Support customised spec examples in a test result and call report.
sourceraw docstring

explain-strclj/s

(explain-str & args)
source

file-and-linecljs

(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
sourceraw docstring

rm-cljsjs-st-fname-prefix-fluffclj/s

(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.
sourceraw docstring

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

× close