| Index: pkg/typed_mock/lib/typed_mock.dart
|
| diff --git a/pkg/typed_mock/lib/typed_mock.dart b/pkg/typed_mock/lib/typed_mock.dart
|
| index ab962d45cd22bc3c6a3e9c2cf858c462f11e7c17..180ff2773ed823dbe41c93d3848f4eef2177aca5 100644
|
| --- a/pkg/typed_mock/lib/typed_mock.dart
|
| +++ b/pkg/typed_mock/lib/typed_mock.dart
|
| @@ -39,6 +39,14 @@ Behavior when(_ignored) {
|
| }
|
| }
|
|
|
| +
|
| +/// Clears all interactions remembered so far.
|
| +resetInteractions(TypedMock mock) {
|
| + mock._invocations.clear();
|
| + mock._verifiedInvocations.clear();
|
| +}
|
| +
|
| +
|
| /// Verifies certain behavior happened a specified number of times.
|
| Verifier verify(_ignored) {
|
| try {
|
|
|