leak_tracker_testing 2.0.3 copy "leak_tracker_testing: ^2.0.3" to clipboard
leak_tracker_testing: ^2.0.3 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.

0
likes
70
pub points
98%
popularity

Publisher

verified publishertools.dart.dev

Leak tracking code intended for usage in tests.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

leak_tracker, matcher, meta

More

Packages that depend on leak_tracker_testing