nativeMain.dev.mokkery.internal.answering.autofill.AnyValueProvider.native.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mokkery-runtime Show documentation
Show all versions of mokkery-runtime Show documentation
Mokkery is a mocking library for Kotlin Multiplatform, easy to use, boilerplate-free and compiler plugin driven.
The newest version!
package dev.mokkery.internal.answering.autofill
import dev.mokkery.answering.autofill.AutofillProvider
import dev.mokkery.answering.autofill.AutofillProvider.Value
import kotlin.reflect.KClass
internal actual object AnyValueProvider : AutofillProvider {
actual override fun provide(type: KClass<*>): Value = UnsafeValue.asAutofillProvided()
actual fun notNullIfSupported(): AutofillProvider? = null
}
private object UnsafeValue