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.
(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.
(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.
(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]].
(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