strikt-core / strikt.assertions / getValue

getValue

infix fun <T : Map<K, V>, K, V> Builder<T>.getValue(key: K): Builder<V>

Asserts that key exists in the subject map and then maps this assertion to an assertion on the associated value.

Return
An assertion on the value indexed by key.