Mock KStub Scope
class MockKStubScope<T, B>(answerOpportunity: MockKGateway.AnswerOpportunity<T>, callRecorder: MockKGateway.CallRecorder, lambda: CapturingSlot<Function<*>>)
Stub scope. Part of DSL
Allows to specify function result
Constructors
Link copied to clipboard
constructor(answerOpportunity: MockKGateway.AnswerOpportunity<T>, callRecorder: MockKGateway.CallRecorder, lambda: CapturingSlot<Function<*>>)
Functions
Link copied to clipboard
infix fun coAnswers(answer: suspend MockKAnswerScope<T, B>.(Call) -> T): MockKAdditionalAnswerScope<T, B>
Link copied to clipboard
Part of DSL. Answer placeholder for never returning suspend functions.
Part of DSL. Answer placeholder for Unit returning functions.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Returns the nth argument of what has been called.
Link copied to clipboard
Link copied to clipboard