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.
sourceraw 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.
sourceraw 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.
sourceraw 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.
sourceraw 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.
sourceraw 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.
sourceraw 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.
sourceraw 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.
sourceraw docstring

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

× close