leak_tracker_testing 1.0.5 copy "leak_tracker_testing: ^1.0.5" to clipboard
leak_tracker_testing: ^1.0.5 copied to clipboard

unlisted

Leak tracking code intended for usage in tests.

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.