TestEmbedderHost

open class TestEmbedderHost(var rootLogger: Logger = TestLogger(), var systemEnvProvider: SystemEnvProvider = SystemEnvProvider { emptyMap() }, var commandArgsProvider: CommandArgsProvider = CommandArgsProvider { emptyList() }, var fileSystem: FileSystem = TestFileSystem(), var monotonicClock: MonotonicClock = object : MonotonicClock { override fun getTimeMarkNanoseconds(): Long = Long.MAX_VALUE override fun getResolutionNanoseconds(): Long = 1.milliseconds.inWholeNanoseconds }, var clock: Clock = object : Clock { override fun getCurrentTimeEpochNanoseconds(): Long = Long.MAX_VALUE override fun getResolutionNanoseconds(): Long = 1.milliseconds.inWholeNanoseconds }, var cputimeSource: CputimeSource = TestCputimeSource(), var localTimeFormatter: LocalTimeFormatter = LocalTimeFormatter { StructTm(-1, -1, -1, -1, -1, -1, -1, -1, -1, -1) }, var timeZoneInfoProvider: TimeZoneInfo.Provider = TimeZoneInfo.Provider { TimeZoneInfo(-1, -1, "Dummy", "Dummy") }, var entropySource: EntropySource = EntropySource { size -> ByteArray(size) { 4 } }) : EmbedderHost(source)

Constructors

Link copied to clipboard
constructor(rootLogger: Logger = TestLogger(), systemEnvProvider: SystemEnvProvider = SystemEnvProvider { emptyMap() }, commandArgsProvider: CommandArgsProvider = CommandArgsProvider { emptyList() }, fileSystem: FileSystem = TestFileSystem(), monotonicClock: MonotonicClock = object : MonotonicClock { override fun getTimeMarkNanoseconds(): Long = Long.MAX_VALUE override fun getResolutionNanoseconds(): Long = 1.milliseconds.inWholeNanoseconds }, clock: Clock = object : Clock { override fun getCurrentTimeEpochNanoseconds(): Long = Long.MAX_VALUE override fun getResolutionNanoseconds(): Long = 1.milliseconds.inWholeNanoseconds }, cputimeSource: CputimeSource = TestCputimeSource(), localTimeFormatter: LocalTimeFormatter = LocalTimeFormatter { StructTm(-1, -1, -1, -1, -1, -1, -1, -1, -1, -1) }, timeZoneInfoProvider: TimeZoneInfo.Provider = TimeZoneInfo.Provider { TimeZoneInfo(-1, -1, "Dummy", "Dummy") }, entropySource: EntropySource = EntropySource { size -> ByteArray(size) { 4 } })

Properties

Link copied to clipboard
open override var clock: Clock
Link copied to clipboard
Link copied to clipboard
open override var cputimeSource: CputimeSource
Link copied to clipboard
open override var entropySource: EntropySource
Link copied to clipboard
open override var fileSystem: FileSystem
Link copied to clipboard
Link copied to clipboard
open override var monotonicClock: MonotonicClock
Link copied to clipboard
open override var rootLogger: Logger
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open fun close()