test.check
generators for cells.
`test.check` generators for cells.
Recursive list cell where an item can be any cell.
Recursive list cell where an item can be any cell.
Recursive hash map cell where an item can be any cell.
Recursive hash map cell where an item can be any cell.
Recursive set cell where an item can be any cell.
Recursive set cell where an item can be any cell.
Recursive vector cell where an item can be any cell.
Recursive vector cell where an item can be any cell.
(blob)
(blob n)
(blob n-min n-max)
Blob cell.
When length is not given, depends on current test.check
size.
Blob cell. When length is not given, depends on current `test.check` size.
32-byte blob cell.
Useful for CVM hashes and keys.
32-byte blob cell. Useful for CVM hashes and keys.
(blob-map gen-k gen-v)
(blob-map gen-k gen-v n)
(blob-map gen-k gen-v n-min n-max)
Blob map here item are generated using gen
.
Generator for keys must output blob
or specialized blob like address
.
When length target is not provided, depends on current test.check
size.
Blob map here item are generated using `gen`. Generator for keys must output [[blob]] or specialized blob like [[address]]. When length target is not provided, depends on current `test.check` size.
Char cell between 0 and 255 inclusive.
Char cell between 0 and 255 inclusive.
Like char
but alphanumeric, hence always printable.
Like [[char]] but alphanumeric, hence always printable.
(double-bounded option+)
Like double
but accept a map with :min
and :max
for setting boundaries.
Both are optional.
Like [[double]] but accept a map with `:min` and `:max` for setting boundaries. Both are optional.
(hex-string)
(hex-string n-byte)
(hex-string n-byte-min n-byte-max)
A hex-string where each byte is written as two hex digits.
A hex-string where each byte is written as two hex digits.
(list gen)
(list gen n)
(list gen n-min n-max)
List cell where item are generated using gen
.
When length target is not provided, depends on current test.check
size.
List cell where item are generated using `gen`. When length target is not provided, depends on current `test.check` size.
(long-bounded option+)
Like long
but accept a map with :min
and :max
for setting boundaries.
Both are optional.
Like [[long]] but accept a map with `:min` and `:max` for setting boundaries. Both are optional.
(map gen-k gen-v)
(map gen-k gen-v n)
(map gen-k gen-v n-min n-max)
Map cell where item are generated using gen
.
When length target is not provided, depends on current test.check
size.
Map cell where item are generated using `gen`. When length target is not provided, depends on current `test.check` size.
(number-bounded option+)
Like number
but accept a map with :min
and :max
for setting boundaries.
Both are optional.
Like [[number]] but accept a map with `:min` and `:max` for setting boundaries. Both are optional.
(quoted gen)
Wraps the given gen
so that the output is wrapped in a quote
form.
Wraps the given `gen` so that the output is wrapped in a `quote` form.
Base generators for recursive collection cells where an item of a collection can be a collection as well.
Leaves are scalar
while containers can be:
Produces a scalar
in roughly 10% of outputs.
Base generators for recursive collection cells where an item of a collection can be a collection as well. Leaves are [[scalar]] while containers can be: - [[blob-map]] - [[list]] - [[map]] - [[set]] - [[vector]] Produces a [[scalar]] in roughly 10% of outputs.
Any CVM cell that is not a collection:
This excludes non-CVM cells such as the different transaction types.
Any CVM cell that is not a collection: - [[address]] - [[blob]] - [[boolean]] - [[byte]] - [[char-alphanum]] - [[double]] - [[keyword]] - [[long]] - [[nothing]] - [[string-alphanum]] - [[symbol]] This excludes non-CVM cells such as the different transaction types.
(set gen)
(set gen n)
(set gen n-min n-max)
Set cell where item are generated using gen
.
When length target is not provided, depends on current test.check
size.
Set cell where item are generated using `gen`. When length target is not provided, depends on current `test.check` size.
(string-alphanum)
(string-alphanum n)
(string-alphanum n-min n-max)
String cell containing char-alphanum
.
String cell containing [[char-alphanum]].
String that can be used to construct a keyword or a symbol.
String that can be used to construct a keyword or a symbol.
Like any
but neither false nor nil.
Like `any` but neither false nor nil.
(tuple & generator+)
CVX vector where each of the given generator respectively produces an item.
CVX vector where each of the given generator respectively produces an item.
(vector gen)
(vector gen n)
(vector gen n-min n-max)
Vector cell where item are generated using gen
.
When length target is not provided, depends on current test.check
size.
Vector cell where item are generated using `gen`. When length target is not provided, depends on current `test.check` size.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close