kotest-assertions / io.kotest.properties / duration

duration

fun Gen.Companion.duration(maxDuration: Duration = Duration.ofDays(10)): Gen<Duration>
Deprecated: Deprecated and will be removed in 5.0. Migrate to the new property test classes in 4.0

Generates a stream of random Durations

This generator creates randomly generated Duration, of at most maxDuration.