ScriptedRequest<TId, TValue, TKey> constructor

ScriptedRequest<TId, TValue, TKey>(
  1. List<FutureOr<BatchOutcome<TId, TValue>> Function(List<TId> ids, TKey key)> steps
)

Creates a request that returns steps in order.

Once the script runs out the last step repeats, so a test only scripts the calls it cares about.

Implementation

ScriptedRequest(this.steps)
    : assert(steps.isNotEmpty, 'a script needs at least one step');