commonMain.io.mockk.impl.stub.Stub.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mockk-jvm Show documentation
Show all versions of mockk-jvm Show documentation
Mocking library for Kotlin
package io.mockk.impl.stub
import io.mockk.*
import io.mockk.MockKGateway.ExclusionParameters
import io.mockk.impl.platform.Disposable
import kotlin.reflect.KClass
interface Stub : Disposable {
val name: String
val type: KClass<*>
val threadId: Long
fun addAnswer(matcher: InvocationMatcher, answer: Answer<*>)
fun answer(invocation: Invocation): Any?
fun childMockK(matcher: InvocationMatcher, childType: KClass<*>): Any
fun recordCall(invocation: Invocation)
fun allRecordedCalls(): List
fun allRecordedCalls(method: MethodDescription): List
fun excludeRecordedCalls(params: ExclusionParameters, matcher: InvocationMatcher)
fun markCallVerified(invocation: Invocation)
fun verifiedCalls(): List
fun matcherUsages(): Map
fun clear(options: MockKGateway.ClearOptions)
fun handleInvocation(
self: Any,
method: MethodDescription,
originalCall: () -> Any?,
args: Array,
fieldValueProvider: BackingFieldValueProvider
): Any?
fun toStr(): String
fun stdObjectAnswer(invocation: Invocation): Any?
}