Liking cljdoc? Tell your friends :D

spy.assert

clj

Assertion functions wrapping spy.core functions, providing assertions using clojure.test/is and messages to aid debugging when test expectations are not met.

Macros are used to ensure the clojure.test/is macro appears in the calling code, otherwise line numbers reported on failure will show as failures in the library and not the calling code.

Assertion functions wrapping spy.core functions,
providing assertions using clojure.test/is and messages
to aid debugging when test expectations are not met.

Macros are used to ensure the clojure.test/is macro
appears in the calling code, otherwise line numbers
reported on failure will show as failures in the
library and not the calling code.
cljs

Assertion functions wrapping spy.core functions, providing assertions using cljs.test/is and messages to aid debugging when test expectations are not met.

Differs from the Clojure version as macros are not used due to added complexity and the fact that cljs does not provide the line number on failure at present.

Assertion functions wrapping spy.core functions,
providing assertions using cljs.test/is and messages
to aid debugging when test expectations are not met.

Differs from the Clojure version as macros are not used
due to added complexity and the fact that cljs does not
provide the line number on failure at present.
raw docstring

called-at-least-n-times?clj/s

(called-at-least-n-times? f n)
source (clj)source (cljs)

called-at-least-once?clj/s

(called-at-least-once? f)
source (clj)source (cljs)

called-n-times?clj/s

(called-n-times? f n)
source (clj)source (cljs)

called-no-more-than-n-times?clj/s

(called-no-more-than-n-times? f n)
source (clj)source (cljs)

called-no-more-than-once?clj/s

(called-no-more-than-once? f)
source (clj)source (cljs)

called-once-with?clj/s

(called-once-with? f & args)
source (clj)source (cljs)

called-once?clj/s

(called-once? f)
source (clj)source (cljs)

called-with?clj/s

(called-with? f & args)
source (clj)source (cljs)

called?clj/s

(called? f)
source (clj)source (cljs)

not-called-with?clj/s

(not-called-with? f & args)
source (clj)source (cljs)

not-called?clj/s

(not-called? f)
source (clj)source (cljs)

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

× close