main.kotlin.ch.tutteli.atrium.logic.utils.lambdaHelpers.kt Maven / Gradle / Ivy
package ch.tutteli.atrium.logic.utils
import ch.tutteli.atrium.creating.Expect
/**
* Can be used in places where a
* [lambda with receiver](https://kotlinlang.org/docs/reference/lambdas.html#function-literals-with-receiver)
* is required where the receiver is of type [Expect]``.
*/
@Suppress("NOTHING_TO_INLINE")
inline fun expectLambda(noinline assertionCreator: Expect.() -> Unit) = assertionCreator