Generator

Properties

Link copied to clipboard
const val SALT_TRIES: Int = 64

Functions

Link copied to clipboard
fun expand(template: Template, seed: Long, tries: Int = SALT_TRIES): List<Scenario>
Link copied to clipboard
fun generate(templates: List<Template>, seed: Long, exclude: Set<String> = emptySet()): List<Scenario>

Every template expanded and sorted by id; ids in exclude are left out.

Link copied to clipboard
fun scenariosJson(scenarios: List<Scenario>): String

One scenario per line so a diff shows which scenario moved.