skip

fun skip(skip: Int): EventIterator

Skips a specified number of events in the iterator.

This method advances the iterator by the given number of events, allowing tests to focus on events after a certain point.

Return

this EventIterator for method chaining

Parameters

skip

the number of events to skip (must be non-negative)

Throws

if skip is negative

if there are not enough events to skip