everySuspend

Starts defining an answer for a single suspend function call specified by block. Returned scope allows defining answer.

Provided block must be a lambda and single mock call must occur directly inside it. Extracting block content to functions is prohibited.


Starts defining an answer for a suspend function call with any arguments. Returned scope allows defining answer.

Given function must be a suspend function reference bound to a mock object.