io.mockk.impl.stub.SpyKStub.kt Maven / Gradle / Ivy
package io.mockk.impl.stub
import io.mockk.Invocation
import kotlin.reflect.KClass
class SpyKStub(cls: KClass, name: String, gatewayAccess: StubGatewayAccess) :
MockKStub(cls, name, false, gatewayAccess) {
override fun defaultAnswer(invocation: Invocation): Any? {
return invocation.originalCall()
}
override fun toStr(): String = "spyk<" + type.simpleName + ">($name)#$hashCodeStr"
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy