You're viewing version 1.2.0 of do-report. The latest stable version of Clojure Core is 1.3.0.
1.2.0 Arrow_down_16x16

do-report

clojure.test

  • (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.

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/test.clj:335 top

(defn do-report
  "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."
  {:added "1.2"}
  [m]
  (report
   (case
    (:type m)
    :fail (merge (file-and-line (new java.lang.Throwable) 1) m)
    :error (merge (file-and-line (:actual m) 0) m) 
    m)))
Vars in clojure.test/do-report: case defn merge
Used in 0 other vars

Comments top

No comments for do-report. Log in to add a comment.