ArgumentMapperBuilder

Builder to map variable length arguments formulated as (first: T, vararg others : T) to something else.

Functions

Link copied to clipboard
inline fun <R> to(mapper: (T) -> R): Pair<R, Array<out R>>

Maps each argument to the given type R by using the given mapper

Link copied to clipboard
inline fun <R> toExpect(crossinline assertionCreator: Expect<R>.(T) -> Unit): Pair<Expect<R>.() -> Unit, Array<out Expect<R>.() -> Unit>>

Maps each argument to an Expect<R> lambda with receiver using the given assertionCreator (passing in the argument).

Link copied to clipboard

Maps each argument to null if it is already null and if not, then ...

Properties

Link copied to clipboard
val first: T
Link copied to clipboard
val others: Array<out T>