captureNullable

inline fun <T : Any> captureNullable(lst: CapturingSlot<T?>): T?

Captures a nullable value to a CapturingSlot.

See also

io.mockk.slot

to create capturing slot.

Samples


inline fun <T : Any> captureNullable(lst: MutableList<T?>): T?

Captures a nullable value to a MutableList.

See also

io.mockk.slot

to create capturing slot.

for non-nullable arguments.