Liking cljdoc? Tell your friends :D

stateful-check.command-utils


args-genclj

(args-gen command state)

Generate the arguments for a command, taking into account whether or not the command declares a :args function.

Generate the arguments for a command, taking into account whether
or not the command declares a :args function.
sourceraw docstring

check-postconditionclj

(check-postcondition command prev-state next-state args result)

Check the postcondition for a command, taking into account whether or not the command declares a :postcondition function. Returns nil if the postcondition passes, otherwise returns a map with a :message key describing the failure. If the postcondition made any clojure.test assertions, events of type :fail and :error are added to the result under the :events key.

Check the postcondition for a command, taking into account whether or
not the command declares a :postcondition function. Returns nil if
the postcondition passes, otherwise returns a map with a :message
key describing the failure. If the postcondition made any
clojure.test assertions, events of type :fail and :error are added
to the result under the :events key.
sourceraw docstring

check-preconditionclj

(check-precondition command state args)

Check the precondition for a command, taking into account whether or not the command declares a :precondition function.

Check the precondition for a command, taking into account whether
or not the command declares a :precondition function.
sourceraw docstring

check-requiresclj

(check-requires command state)

Check the requirements for a command to be generated at all, taking into account whether or not the command declares a :requires function.

Check the requirements for a command to be generated at all, taking
into account whether or not the command declares a :requires
function.
sourceraw docstring

make-next-stateclj

(make-next-state command state args result)

Make the next state for a command, taking into account whether or not the command declares a :next-state function.

Make the next state for a command, taking into account whether or
not the command declares a :next-state function.
sourceraw docstring

to-generatorclj

(to-generator value)

Convert a value into a generator, recursively. This means:

  • generator? -> the value
  • sequential? -> gen/tuple with each sub-value already processed
  • map? -> gen/hash-map with each value (not keys) already processed
  • otherwise -> gen/return the value
Convert a value into a generator, recursively. This means:
+ generator? -> the value
+ sequential? -> gen/tuple with each sub-value already processed
+ map? -> gen/hash-map with each value (not keys) already processed
+ otherwise -> gen/return the value
sourceraw docstring

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

× close