ClockFactory

@Factory
class ClockFactory

Injects the system clock in production and a fake clock in tests.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
@Singleton
@Requires(env = ["test"])
@Requires(notEnv = ["offset-clock"])
fun fixed(): Clock
Link copied to clipboard
@Singleton
@Requires(env = ["test"])
@Requires(env = ["offset-clock"])
fun offset(): Clock
Link copied to clipboard
@Singleton
@Requires(notEnv = ["test"])
fun system(): Clock