Liking cljdoc? Tell your friends :D

me.pmatiello.mockfn.matchers


aclj

(a type)

Returns a matcher that expects an instance of the provided type.

Returns a matcher that expects an instance of the provided type.
sourceraw docstring

anyclj

(any)

Returns a matcher that expects any value.

Returns a matcher that expects any value.
sourceraw docstring

at-leastclj

(at-least value)

Returns a matcher that expects a value greater than or equal to the argument.

Returns a matcher that expects a value greater than or equal to the argument.
sourceraw docstring

at-mostclj

(at-most value)

Returns a matcher that expects a value less than or equal to the argument.

Returns a matcher that expects a value less than or equal to the argument.
sourceraw docstring

descriptionclj

(description matcher)

Describes a matcher by returning it's name and expectations.

Describes a matcher by returning it's name and expectations.
sourceraw docstring

exactlyclj

(exactly value)

Returns a matcher that expects an exact value.

Returns a matcher that expects an exact value.
sourceraw docstring

makeclj

(make name match-fn expected)
(make name match-fn expected description-fn)

Produces a new matcher instance.

Produces a new matcher instance.
sourceraw docstring

matches?clj

(matches? matcher actual)

Returns whether the matcher accepts the actual value.

Returns whether the matcher accepts the actual value.
sourceraw docstring

predclj

(pred pred-fn)

Returns a matcher that expects a value satisfying the provided predicate.

Returns a matcher that expects a value satisfying the provided predicate.
sourceraw docstring

str-ends-withclj

(str-ends-with suffix)

Returns a matcher that expects a string ending with the provided suffix.

Returns a matcher that expects a string ending with the provided suffix.
sourceraw docstring

str-includesclj

(str-includes substring)

Returns a matcher that expects a string containing the provided substring.

Returns a matcher that expects a string containing the provided substring.
sourceraw docstring

str-rexpclj

(str-rexp regex)

Returns a matcher that expects a string matching the provided regular expression.

Returns a matcher that expects a string matching the provided regular expression.
sourceraw docstring

str-starts-withclj

(str-starts-with prefix)

Returns a matcher that expects a string starting with the provided prefix.

Returns a matcher that expects a string starting with the provided prefix.
sourceraw docstring

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

× close