kotest-core / io.kotest.core

Package io.kotest.core

Types

SourceRef

data class SourceRef

StringTag

class StringTag : Tag

Tag

Base class for all tags. The simple name (without packages) of the singleton derived from this class will be used as name. Two tag object with the same simple name (same object names in different packages) are treated as a single tag.

abstract class Tag

Tags

data class Tags

Exceptions

ZeroAssertionsError

class ZeroAssertionsError : AssertionError

Functions

executeWithAssertionsCheck

Executes the given run function checking for the absense of assertions according to the receiver AssertionMode.

suspend fun AssertionMode.executeWithAssertionsCheck(run: suspend () -> Unit, name: String): Unit

executeWithGlobalAssertSoftlyCheck

suspend fun executeWithGlobalAssertSoftlyCheck(run: suspend () -> Unit): Unit

sourceRef

Returns a SourceRef for the current execution point.

fun sourceRef(): SourceRef