kotest-property / io.kotest.property.arbitrary / enum

enum

fun <reified T : Enum<T>> Arb.Companion.enum(): Arb<T>

Returns an Arb that produces values randomly from the constants of the supplied enum type. Eg, val arb: Arb = Arb.enum()