testing library

Test doubles for inlay.

Import in widget/unit tests only:

import 'package:inlay/testing.dart';

setUp(() {
  KeyValueStorage.instance = FakeKeyValueStorage();
  InlayNavigator.instance = FakeInlayNavigator();
});

The fakes involve no platform channels, so screens that navigate or read/write stores can be tested with plain testWidgets.

Classes

FakeInlayNavigator
Recording InlayNavigator double for widget and unit tests.
FakeKeyValueStorage
In-memory KeyValueStorage double for widget and unit tests.