0.0.12 permalink Arrow_down_16x16
  • (report-problem fn-name expected actual msg)
This function is designed to be used in a binding macro to override
the report-problem function in clojure.contrib.mock. Instead of printing
the error to the console, the error is logged via clojure.test.

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 circumspec/contrib_mocking.clj:9 top

(defn report-problem
 "This function is designed to be used in a binding macro to override
the report-problem function in clojure.contrib.mock. Instead of printing
the error to the console, the error is logged via clojure.test."
 {:dynamic true}
 [fn-name expected actual msg]
 (fail {:message (str msg " Function name: " fn-name),
        :expected expected,
        :actual actual}))
Vars in circumspec.contrib-mocking/report-problem: defn
Used in 0 other vars

Comments top

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