LeakTestCase class

A test case to verify leak detection.

Constructors

LeakTestCase({required String name, required TestCallback body, int notDisposedTotal = 0, int notGCedTotal = 0, int notDisposedInHelpers = 0, int notGCedInHelpers = 0})

Properties

body → TestCallback
Test body.
final
hashCode → int
The hash code for this object.
no setterinherited
name → String
Name of the test.
final
notDisposedInHelpers → int
Expected number of not disposed objects created by test helpers.
final
notDisposedTotal → int
Expected number of not disposed objects.
final
notGCedInHelpers → int
Expected number of not GCed objects created by test helpers.
final
notGCedTotal → int
Expected number of not GCed objects.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
verifyLeaks(Leaks leaks, LeakTesting settings, {required String testDescription}) → void
Verifies leaks contain expected leaks for the test.

Operators

operator ==(Object other) → bool
The equality operator.
inherited