Liking cljdoc? Tell your friends :D

matcher-combinators.core


indicates-match?clj/s

(indicates-match? match-result)

Returns true if match-result (the map returned by (match expected actual)) indicates a match.

Returns true if match-result (the map returned by `(match expected actual)`) indicates a match.
sourceraw docstring

matchclj/s

(match expected actual)

For internal use. Returns a map indicating whether the actual value matches expected.

expected can be the expected value, a matcher, or a predicate fn of actual.

Return map includes the following keys:

  • :matcher-combinators.result/type - either :match or :mismatch
  • :matcher-combinators.result/value - the actual value with mismatch annotations. Only present when :match/result is :mismatch
For internal use. Returns a map indicating whether the `actual` value matches `expected`.

`expected` can be the expected value, a matcher, or a predicate fn of actual.

Return map includes the following keys:

- :matcher-combinators.result/type  - either :match or :mismatch
- :matcher-combinators.result/value - the actual value with mismatch annotations.
                                      Only present when :match/result is :mismatch
sourceraw docstring

match?clj/sdeprecated

(match? match-result)

DEPRECATED! Use indicates-match? instead.

DEPRECATED! Use `indicates-match?` instead.
sourceraw docstring

Matcherclj/sprotocol

For internal use. Type-specific implementations for finding matchers for expected values and matching them against expected values.

For internal use. Type-specific implementations for finding matchers for
expected values and matching them against expected values.

-base-nameclj/s

(-base-name this)

The name of the matcher as a symbol

The name of the matcher as a symbol

-matchclj/s

(-match this actual)

Do not call directly. Implementation for matcher-combinators.core/match.

Do not call directly. Implementation for matcher-combinators.core/match.

-matcher-forclj/s

(-matcher-for expected)
(-matcher-for expected t->m)

Do not call directly. Implementation for matcher-combinators.matchers/matcher-for.

Do not call directly. Implementation for matcher-combinators.matchers/matcher-for.
sourceraw docstring

matcher?clj/s

(matcher? x)
source

regex-typeclj/s

source

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

× close