respond

suspend fun respond(request: Request): Response(source)

Records request and answers it with the next scripted outcome.

Return

The scripted response.

Parameters

request

The request made to the faked dependency.

Throws

when no outcome or fallback remains; otherwise the scripted failure.