All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.mockk.impl.InternalPlatform.kt Maven / Gradle / Ivy

package io.mockk.impl

import io.mockk.Ref
import io.mockk.impl.stub.StubRepository
import kotlin.reflect.KClass

expect object InternalPlatform {
    fun time(): Long

    fun ref(obj: Any): Ref

    fun hkd(obj: Any): String

    fun isPassedByValue(cls: KClass<*>): Boolean

    fun  MutableMap.customComputeIfAbsent(key: K, valueFunc: (K) -> V): V

    fun  weakMap(): MutableMap

    fun  identityMap(): MutableMap

    fun  synchronizedMutableList(): MutableList

    fun  synchronizedMutableMap(): MutableMap

    fun counter(): () -> Long

    fun packRef(arg: Any?): Any?

    fun isSuspend(paramTypes: List>): Boolean

    fun prettifyRecordingException(ex: Throwable): Throwable

    fun  copyFields(to: T, from: T)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy