From

class From<out Res>(name: String, checkType: CheckBuilder.CheckType)

Helps the Res type from the action builder flow into the extraction function f. Allows writing .check({ extract { it.field }.shouldBe("stuff") }), Kotlin only.

Constructors

Link copied to clipboard
fun From(name: String, checkType: CheckBuilder.CheckType)

Functions

Link copied to clipboard
inline fun <X> extract(crossinline f: (Res) -> X?): CheckBuilder.Find<X>
Link copied to clipboard
inline fun <X> extractMultiple(crossinline f: (Res) -> List<X>?): CheckBuilder.MultipleFind<X>