strikt-core / strikt.assertions / withValue

withValue

fun <T : Map<K, V>, K, V> Builder<T>.withValue(key: K, block: Builder<V>.() -> Unit): Builder<T>

Runs a group of assertions on the first element in the subject iterable.

Parameters

block - a closure that can perform multiple assertions that will all be evaluated regardless of whether preceding ones pass or fail.

Return
this builder, to facilitate chaining.