kotest-assertions / io.kotest.assertions / AssertionCounter

AssertionCounter

object AssertionCounter

Functions

get

Returns the number of assertions executed in the current context.

fun get(): Int

inc

Increments the counter for the current context.

fun inc(): Unit

reset

Resets the count for the current context

fun reset(): Unit

Extension Functions

getAndReset

fun AssertionCounter.getAndReset(): Int