AbstractAbstractdoDraw a value from tc, printing nothing. A generator drawing from other
generators draws them with their own doDraw, or with
TestCase.drawSilent.
Generate a value, then use it to choose another generator. The first
value is not printed; the result prints as the chosen generator does,
so it is printable when f returns printable generators.
Transform generated values using a function. When the source has a schema, the schema is preserved. The result prints the transformed value as PrettyPrinter.value does; Mapped.printAsCall prints the source's draw instead.
Print each drawn value as PrettyPrinter.value does: the way to make a hand-written generator that only implements doDraw printable.
Print each drawn value by calling print with the value and the printer
positioned where it goes: the way to give a generator whose values have
no useful JavaScript representation (a function, a handle) a printed
form, or to print a value differently from how it prints as a value.
The generator keeps this one's label and schema.
Base class for all generators: an immutable description of how to draw a value of type T from a TestCase. The same generator can be drawn from any number of times, in any number of tests.
A
Generatordraws silently, with TestCase.drawSilent. To be drawn with TestCase.draw, which prints what it drew when a test fails, a generator must be a PrintableGenerator. Every built-in generator is one whenever its components are; a hand-writtenGeneratorbecomes one with printWith or printAsValue.