Liking cljdoc? Tell your friends :D

com.wsscode.pathom.test


async-readerclj/s

(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.
raw docstring

hash-mod?clj/s

(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.
raw docstring

key-ex-valueclj/s

(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.
raw docstring

mutate-fnclj/s

(mutate-fn {:com.wsscode.pathom.test/keys [throw-errors?]} k _)

Mutation function suited for random testing.

Mutation function suited for random testing.
raw docstring

readerclj/s

(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.
raw docstring

repeat-readerclj/s

(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.
raw docstring

sleep-readerclj

(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.
raw docstring

union-test-pathclj/s

(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.
raw docstring

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

× close