kotest-extensions / io.kotest.extensions.time

Package io.kotest.extensions.time

Types

ConstantNowListener

abstract class ConstantNowListener<Time : Temporal>

ConstantNowProjectListener

Simulate the value of now() while executing the project

class ConstantNowProjectListener<Time : Temporal> : ConstantNowListener<Time>, ProjectListener

ConstantNowTestListener

Simulate the value of now() while executing a test

class ConstantNowTestListener<Time : Temporal> : ConstantNowListener<Time>, TestListener

Functions

withConstantNow

Simulate the value of now() while executing block

fun <T, Time : Temporal> withConstantNow(now: Time, block: () -> T): T