Clj-fakes 0.12.0
Released under the MIT
An isolation framework for Clojure/ClojureScript that makes creating test doubles (stubs, mocks, etc.) much easier.
Installation
To install, add the following dependency to your project or build file:
[clj-fakes "0.12.0"]
Namespaces
clj-fakes.context
API for working in explicit context.
Public variables and functions:
- any
- arg
- arg*
- ArgMatcher
- ArgsMatcher
- calls
- context
- cyclically
- default-fake-config
- fake
- fake*
- ImplicitArgMatcher
- mark-checked
- method
- method-was-called
- method-was-called-once
- method-was-matched-once
- method-was-not-called
- methods-were-called-in-order
- optional-fake
- original-val
- patch!
- recorded-fake
- recorded-fake*
- reify-fake
- reify-fake*
- reify-nice-fake
- reify-nice-fake*
- self-test
- self-test-unchecked-fakes
- self-test-unused-fakes
- unpatch!
- unpatch-all!
- was-called
- was-called-once
- was-matched-once
- was-not-called
- were-called-in-order
clj-fakes.core
Simpler API for working in implicit dynamic context. Implements almost the same set of functions as clj-fakes.context.
Public variables and functions:
- *context*
- any
- arg
- calls
- cyclically
- fake
- fake*
- mark-checked
- method
- method-was-called
- method-was-called-once
- method-was-matched-once
- method-was-not-called
- methods-were-called-in-order
- optional-fake
- original-val
- patch!
- recorded-fake
- recorded-fake*
- reify-fake
- reify-fake*
- reify-nice-fake
- reify-nice-fake*
- unpatch!
- unpatch-all!
- was-called
- was-called-once
- was-matched-once
- was-not-called
- were-called-in-order
- with-fakes
- with-fakes*