Liking cljdoc? Tell your friends :D

midje.parsing.arrow-symbols

Lexicon of all Midje arrows. Arrows are used in both the sweet and expanded forms.

Lexicon of all Midje arrows. Arrows are used in both the sweet and expanded forms.
raw docstring

=>clj

As a checking arrow: the left side should result in the right side. As a prerequisite arrow: the fake should return the thing on the right.

As a checking arrow: the left side should result in the right side.
As a prerequisite arrow: the fake should return the thing on the right.
sourceraw docstring

=contains=>clj

Data prerequisite arrow. Ex. (fact (:a ..m..) => 1 (provided ..m.. =contains=> {:a 1}))

Data prerequisite arrow.
Ex. (fact
      (:a ..m..) => 1
      (provided ..m.. =contains=> {:a 1}))
sourceraw docstring

=deny=>clj

Checking arrow. The left side should NOT result in the right side.

Checking arrow. The left side should NOT result in the right side.
sourceraw docstring

=expands-to=>clj

Checking arrow. The left side should macroexpand-1 to the right side.

Checking arrow. The left side should macroexpand-1 to the right side.
sourceraw docstring

=future=>clj

Checking arrow. The check won't evaluate, but will leave a 'WORK TO DO' reminder in the report.

Checking arrow. The check won't evaluate, but will
leave a 'WORK TO DO' reminder in the report.
sourceraw docstring

=not=>clj

Checking arrow. The left side should NOT result in the right side.

Checking arrow. The left side should NOT result in the right side.
sourceraw docstring

=streams=>clj

Prerequisite arrow. The fake will return the first element of the given sequence the first time the fake is evaluated, the second element the second time, and so on. Note, that each element is only evaluated when needed, thus in the below example the exception is never thrown.

Ex. (def tally [] (+ (bar) (bar) (bar))) (fact (tally) => 6 (provided (bar) =streams=> [1 2 3 (throw (Exception.))]))

Prerequisite arrow. The fake will return the first element
of the given sequence the first time the fake is evaluated, the second
element the second time, and so on. Note, that each element is only
evaluated when needed, thus in the below example the exception is
never thrown.

Ex. (def tally [] (+ (bar) (bar) (bar)))
    (fact (tally) => 6
      (provided (bar) =streams=> [1 2 3 (throw (Exception.))]))
sourceraw docstring

=test=>clj

Use this when testing Midje code that processes arrow-forms

Use this when testing Midje code that processes arrow-forms
sourceraw docstring

=throw-parse-exception=>clj

Use this to generate an exception while parsing

Use this to generate an exception while parsing
sourceraw docstring

=throws=>clj

Prerequisite arrow. The fake will throw the Throwable on the right side of the arrow.

Ex. (def f [] (g)) (fact (f) => (throws IllegalArgumentException. "boom") (provided (g) =throws=> (IllegalArgumentException. "boom")))

Prerequisite arrow. The fake will throw the Throwable on
the right side of the arrow.

Ex. (def f [] (g))
    (fact (f) => (throws IllegalArgumentException. "boom")
      (provided (g) =throws=> (IllegalArgumentException. "boom")))
sourceraw docstring

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

× close