Liking cljdoc? Tell your friends :D

bond.assertions


called-at-least-once-with-args?clj

(called-at-least-once-with-args? f args)

An assertion to check if f has been called at least once with args.

args should be a vector/coll of args [arg1 arg2 {:arg3 arg3}] to compare directly to the value of :args from bond/calls

An assertion to check if `f` has been called at least once with `args`.

`args` should be a vector/coll of args [arg1 arg2 {:arg3 arg3}] to compare directly to the value of `:args` from `bond/calls`
sourceraw docstring

called-once-with-args?clj

(called-once-with-args? f args)

An assertion to check if f was called with args strictly once.

args should be a vector/coll of args [arg1 arg2 arg3] to compare directly to the value of :args from bond/calls

An assertion to check if `f` was called with `args` strictly once.

`args` should be a vector/coll of args [arg1 arg2 arg3] to compare directly to the value of `:args` from `bond/calls`
sourceraw docstring

called-times?clj

(called-times? f times)

An assertion to check if f was called number of times.

An assertion to check if `f` was called number of `times`.
sourceraw docstring

called-with-args?clj

(called-with-args? f vargs)

An assertion to check if f was called with vargs.

vargs should be a vector of args [args-first-call args-second-call ...] to allow for the checking of multiple calls of f. Note that this method asserts about every call to f.

An assertion to check if `f` was called with `vargs`.

`vargs` should be a vector of args [args-first-call args-second-call ...] to allow for the checking of multiple calls of `f`.
 Note that this method asserts about every call to `f`.
sourceraw docstring

called?clj

(called? f)

An assertion to check if f was called at least 1 time.

An assertion to check if `f` was called at least 1 time.
sourceraw docstring

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

× close