collectedLeaksReporter property

LeaksCallback collectedLeaksReporter
getter/setter pair

Handler for memory leaks found in tests.

Set it to analyze the leaks programmatically. The handler is invoked on tear down of the test run. The default reporter fails in case of found leaks.

Used to test leak tracking functionality.

Implementation

static LeaksCallback collectedLeaksReporter =
    (Leaks leaks) => expect(leaks, isLeakFree);