doc / ch.tutteli.atrium.domain.builders.utils / subAssertNullable

subAssertNullable

inline fun <T> subAssertNullable(noinline assertionCreator: AssertionPlantNullable<T>.() -> Unit): AssertionPlantNullable<T>.() -> Unit
Deprecated: Switch from Assert to Expect; will be removed with 1.0.0

Helper function to create an AssertionPlantNullable lambda with receiver; helps to circumvent Kotlin type inference bugs involving lambdas.

Following a few examples of bugs (you might want to vote if you encounter the same):

Parameters

assertionCreator - Your assertion creator lambda.

Return
your passed lambda.