resetForReplay method

void resetForReplay()

Drops every stated answer, for the next replay of a split.

A body runs once per path through its splits, and each path states its own answers from the top. The requests log is dropped with them, for the same reason: a branch asserting on what it asked for must not see what the branch before it asked for.

Implementation

void resetForReplay() {
  _stubs.clear();
  _fallback = null;
  requests.clear();
}