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