call To
inline fun <RECEIVER : Any> <Error class: unknown class>.callTo(callable: KCallable<*>, receiver: RECEIVER): Any?
Content copied to clipboard
Allows for reflection-based stubbing of methods.
Usage example (mock all member functions in one mock):
val mock = mockk
Note: receiver must be a mockk
fun <Error class: unknown class>.callTo( callable: KCallable<*>, receiver: Any, receiverType: KType): Any?
Content copied to clipboard
Allows for reflection-based stubbing of methods.
Usage example (mock all member functions in one mock):
val mock = mockk
Note: receiver must be a mockk