API Reference¶
Generated Dokka API docs can be built with:
./gradlew dokkaGeneratePublicationHtml
Generator DSL¶
Gen<T>: declarative generator tree.map,flatMap,filter,zip,repeat,nullable, andlabel: core combinators.Gen.int,Gen.uint,Gen.bits,Gen.uniformDouble,Gen.string, and primitive properties: built-in primitive generators.Gen.oneOf,Gen.freq,Gen.oneOfGen, andGen.freqGen: choice combinators.Gen.listOf,Gen.unfold, andGen.zip(list): sequence combinators.
Sampling and Checking¶
sampleR: low-level interpreter returningRunResult.sample: samples once and returns null for filtered or incomplete samples.sampleUnbounded: retries until a value is produced.foreach: runs a generator repeatedly.foreachMin: runs a generator and minimizes the first non-fatal exception.satisfyandminimize: lower-level search and minimization helpers.
Replay Model¶
TapeSeed: seed plus bit-flip sequence, with Base58 encoding.RawTapeReader: deterministic bit reader backed byTapeSeed.BitSource: abstraction used by the interpreter.RawTapeComplexity: minimization sort key.
Support Utilities¶
CoGen: stable input hashing for generated functions.Wheel: weighted selection table.MutableBitDequeandPersistentBitSeq: bit sequence implementations.Codecs: bit-level encoders and decoders used by the interpreter.Hashing: stable hash mixing and jump consistent hashing.ExceptionComparisonModeandcompareExceptions: failure matching for minimization.