(async-reader {:keys [ast query]
:com.wsscode.pathom.test/keys [depth-limit]
:or {depth-limit 5}
:as env})Like reader, but have a chance to return channels.
Like reader, but have a chance to return channels.
(hash-mod? x n)Check if the mod of the hash of x is zero. This is useful to call against some random value. It will have a chance of 1/n to be true.
Check if the mod of the hash of x is zero. This is useful to call against some random value. It will have a chance of 1/n to be true.
(key-ex-value key
{:com.wsscode.pathom.test/keys [throw-errors? include-nils?]
:or {include-nils? true}
:as env})Generate a random value for a key, uses hash-mod to pick what type of value will be returned.
Generate a random value for a key, uses hash-mod to pick what type of value will be returned.
(mutate-fn {:com.wsscode.pathom.test/keys [throw-errors?]} k _)Mutation function suited for random testing.
Mutation function suited for random testing.
(reader {:keys [ast query]
:com.wsscode.pathom.test/keys [depth-limit]
:or {depth-limit 5}
:as env})Reader suited for random testing.
Reader suited for random testing.
(repeat-reader env)This reader looks for ident queries starting with :repeat., and repeat for the ident value amount of times.
This reader looks for ident queries starting with :repeat., and repeat for the ident value amount of times.
(sleep-reader {:keys [ast query] :as env})This reader looks for ident queries starting with :sleep., and sleep for the ident value amount of time.
This reader looks for ident queries starting with :sleep., and sleep for the ident value amount of time.
(union-test-path env)Picks a union path based on the hash-mod of key.
Picks a union path based on the hash-mod of key.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |