kotest-property / io.kotest.property.exhaustive

Package io.kotest.property.exhaustive

Extensions for External Classes

kotlin.collections.List

Functions

andNull

fun <A> Exhaustive<A>.andNull(): Exhaustive<A?>

concat

Returns an Exhaustive which is the concatentation of this exhaustive values plus the given exhaustive's values.

fun <A> Exhaustive<A>.concat(other: Exhaustive<A>): Exhaustive<A>

exhaustive

Returns an Exhaustive which provides the values from the given list.

fun <A> exhaustive(as: List<A>): Exhaustive<A>

merge

Returns a new Exhaustive which will merge the values from this Exhaustive and the values of the supplied Exhaustive together, taking one from each in turn.

fun <A, B : A> Exhaustive<A>.merge(other: Exhaustive<B>): Exhaustive<A>

plus

Returns an Exhaustive which is the concatentation of this exhaustive values plus the given exhaustive's values.

operator fun <A> Exhaustive<A>.plus(other: Exhaustive<A>): Exhaustive<A>

times

Returns the cross product of two Exhaustives.

operator fun <A, B : A> Exhaustive<A>.times(other: Exhaustive<B>): Exhaustive<Pair<A, B>>

Companion Object Functions

azstring

fun Exhaustive.Companion.azstring(range: IntRange): Exhaustive<String>

boolean

Returns a Exhaustive of the two possible boolean values - true and false.

fun Exhaustive.Companion.boolean(): Exhaustive<Boolean>

bytes

Returns a Exhaustive of bytes in the given range.

fun Exhaustive.Companion.bytes(from: Byte = Byte.MIN_VALUE, to: Byte = Byte.MAX_VALUE): Exhaustive<Byte>

collection

fun <A> Exhaustive.Companion.collection(collection: Collection<A>): Exhaustive<A>

constant

Returns a Exhaustive whose value is a single constant.

fun <A> Exhaustive.Companion.constant(a: A): Exhaustive<A>

enum

fun <T : Enum<T>> Exhaustive.Companion.enum(): Exhaustive<T>

ints

fun Exhaustive.Companion.ints(range: IntRange): Exhaustive<Int>

lines

fun Exhaustive.Companion.lines(file: File, charset: Charset = Charsets.UTF_8): Exhaustive<String>

longs

fun Exhaustive.Companion.longs(range: LongRange): Exhaustive<Long>

nullable

fun Exhaustive.Companion.nullable(): Exhaustive<Nothing?>