KeyValue

data class KeyValue<out K, V : Any>(val key: K, val valueAssertionCreatorOrNull: Expect<V>.() -> Unit?)(source)

Parameter object to express a key/value Pair whose value type is a nullable lambda with an Expect receiver, which means one can either pass a lambda or null.

Constructors

Link copied to clipboard
constructor(key: K, valueAssertionCreatorOrNull: Expect<V>.() -> Unit?)

Properties

Link copied to clipboard
val key: K
Link copied to clipboard

Functions

Link copied to clipboard
fun toPair(): Pair<K, Expect<V>.() -> Unit?>
Link copied to clipboard
open override fun toString(): String