CollectionGenerationSpec

Configured generation rule for collection values.

Functions

Link copied to clipboard
abstract infix fun orDefaultAt(probability: Probability): GenerationSpec<CollectionType>
open infix fun orDefaultAt(probability: Double): GenerationSpec<CollectionType>

Records the probability of using the property's default value.

Link copied to clipboard
abstract infix fun orNullAt(probability: Probability): GenerationSpec<CollectionType?>
open infix fun orNullAt(probability: Double): GenerationSpec<CollectionType?>

Allows this rule to generate null with probability.

Link copied to clipboard
abstract infix fun withSeed(seed: Long): GenerationSpec<CollectionType>

Sets a deterministic seed for this generation rule.

Link copied to clipboard

Sets the generated collection size.

Sets the generated collection size range.