leakTestingSettingsCases top-level property

Map<String, LeakTesting Function(LeakTesting settings)> leakTestingSettingsCases
final

Test cases for leak detection settings.

Implementation

final Map<String, LeakTesting Function(LeakTesting settings)>
    leakTestingSettingsCases = {
  'tracking on': _trackingOn,
  'tracking off': (s) => _trackingOn(s).withIgnoredAll(),
  'notGCed off': (s) => _trackingOn(s).withIgnored(allNotGCed: true),
  'notDisposed off': (s) => _trackingOn(s).withIgnored(allNotDisposed: true),
  'testHelpers off': (s) =>
      _trackingOn(s).withIgnored(createdByTestHelpers: true),
  'testHelpers on': (s) =>
      _trackingOn(s).withTracked(createdByTestHelpers: true),
  'creation trace': (s) => _trackingOn(s).withCreationStackTrace(),
  'disposal trace': (s) => _trackingOn(s).withDisposalStackTrace(),
  'retaining path': (s) => _trackingOn(s).withRetainingPath(),
  'all diagnostics': (s) => _trackingOn(s)
      .withCreationStackTrace()
      .withDisposalStackTrace()
      .withRetainingPath(),
};