testing library
Test doubles for os_intents, for a flutter test with no device.
Separate from the main library because it is only useful under
flutter_test: importing it into an app would compile, and ship a fake
platform nothing installs.
IntentHarness — exported from package:os_intents/os_intents.dart — runs
a handler directly, which is what most tests want. This is for the rest of
the surface: donations, static answers, launcher shortcuts, and the
dispatch path the OS itself takes.
Classes
- FakeOsIntentsPlatform
- The platform, replaced by something a test can look inside.
- RecordedDonation
- One call to OsIntents.donate, as the platform received it.