atrium-domain-builders-jvm / ch.tutteli.atrium.domain.builders.utils / ArgumentMapperBuilder / toExpect

toExpect

inline fun <reified R> toExpect(crossinline assertionCreator: <ERROR CLASS><R>.(T) -> Unit): Pair<<ERROR CLASS><R>.() -> Unit, Array<<ERROR CLASS><R>.() -> Unit>> (source)

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

Returns
The mapped first and others.