kotest-assertions / io.kotest.inspectors

Package io.kotest.inspectors

Types

ElementFail

class ElementFail<out T> : ElementResult<T>

ElementPass

class ElementPass<out T> : ElementResult<T>

ElementResult

sealed class ElementResult<out T>

Extensions for External Classes

kotlin.Array

kotlin.collections.Collection

kotlin.sequences.Sequence

Functions

buildAssertionError

Build assertion error message.

fun <T> buildAssertionError(msg: String, results: List<ElementResult<T>>): Nothing

forAtLeast

fun <T> forAtLeast(k: Int, array: Array<T>, f: (T) -> Unit): Unit
fun <T> forAtLeast(k: Int, col: Collection<T>, f: (T) -> Unit): Unit

forAtMost

fun <T> forAtMost(k: Int, col: Collection<T>, f: (T) -> Unit): Unit

forExactly

fun <T> forExactly(k: Int, array: Array<T>, f: (T) -> Unit): Unit
fun <T> forExactly(k: Int, col: Collection<T>, fn: (T) -> Unit): Unit

runTests

fun <T> runTests(col: Collection<T>, f: (T) -> Unit): List<ElementResult<T>>