decorator
var decorator: suspend DecoratorScope.(iteration: suspend DecoratorScope.() -> Unit) -> Unit(source)
Decorates the parameterize block, enabling additional shared logic to be inserted around each iteration.
The provided iteration
function must be invoked exactly once. It will return without throwing even if the iteration fails, guaranteeing that any post-iteration cleanup will always be executed.
Note: Failures from within the decorator will propagate out uncaught, terminating parameterize without onFailure or onComplete being executed.
Defaults to:
decorator = { iteration ->
iteration()
}
Content copied to clipboard
See also
Throws
Parameterize Exception
if the iteration
function is not invoked exactly once.