slot

inline fun <T> slot(): <Error class: unknown class>

Creates new capturing slot.

Slots allow you to capture what arguments a mocked method is called with. When mocking a method using every, pass the slot wrapped with the MockKMatcherScope.capture function in place of a method argument or MockKMatcherScope.any.

Samples