strikt-core / strikt.assertions / count

count

fun Builder<out Iterable<*>>.count(): Builder<Int>

Maps this assertion to an assertion over the count of elements in the subject.

See Also

Iterable.count

fun <T : Iterable<E>, E> Builder<T>.count(description: String, predicate: (E) -> Boolean): Builder<Int>

Maps this assertion to an assertion over the count of elements matching predicate.

See Also

Iterable.count