tree: de53f0a4a90797204a5b355b81707caf6321efcc [path history] [tgz]
  1. lib/
  2. test/
  3. analysis_options.yaml
  4. CHANGELOG.md
  5. LICENSE
  6. pubspec.yaml
  7. pubspec_overrides.yaml
  8. README.md
pkgs/leak_tracker_testing/README.md

pub package package publisher

Coming soon! See https://github.com/flutter/devtools/issues/3951.

What is this?

This is helper for testing leak_tracker.

They are separated from leak_tracker to make sure testing code is not used in production.

How to use the helpers?

To test for leaks with descriptive messages, use isLeakFree against a Leaks instance:

final leaks = await LeakTracking.collectLeaks();
expect(leaks, isLeakFree);

See more examples in end_to_end_test.dart.