Liking cljdoc? Tell your friends :D

mockfn.internal.mock


call->ret-valclj/s

(call->ret-val func spec args)

Produces the return value for a mocked call.

Tracks the number of times a specific call is made for a given function and set of parameters fulfilling matcher criteria. Throws an exception when an unexpected call is received.

Produces the return value for a mocked call.

Tracks the number of times a specific call is made for a given function
and set of parameters fulfilling matcher criteria.
Throws an exception when an unexpected call is received.
sourceraw docstring

Callingcljs

source

CallingOriginalcljs

source

matcher-failure-ex-msgclj/s

(matcher-failure-ex-msg func args matcher times-called)

Exception message for call count not matching the expectation.

Exception message for call count not matching the expectation.
sourceraw docstring

mock->specclj/s

(mock->spec mock)

Retrieves the specification for the given mock.

Retrieves the specification for the given mock.
sourceraw docstring

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

× close