assertk / Assert / transform

transform

fun <R> transform(name: String? = this.name, transform: (T) -> R): Assert<R>

Platform and version requirements: Common

Transforms an assertion from one type to another. If the assertion is failing the resulting assertion will still be failing, otherwise the mapping function is called. An optional name can be provided, otherwise this assertion's name will be used.