Skip to content

Commit

Permalink
Update leak_tracking_for_tests_test.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
polina-c committed Oct 13, 2023
1 parent 765d717 commit 159609a
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,19 @@ bool _areOnlySkipped(
LeakTrackingForTestsSettings? settings,
}) {
final theSettings = settings ?? LeakTrackingForTests.settings;
final classesAllowed = !classes
final classesSkipped = !classes
.map(
(theClass) =>
theSettings.leakSkipLists.isSkipped(theClass, leakType: leakType),
)
.any((allowed) => !allowed);
final othersDisallowed = _Classes.others(classes)
.any((skipped) => !skipped);
final othersTracked = _Classes.others(classes)
.map(
(theClass) =>
theSettings.leakSkipLists.isSkipped(theClass, leakType: leakType),
)
.any((allowed) => !allowed);
return classesAllowed && othersDisallowed;
.any((skipped) => !skipped);
return classesSkipped && othersTracked;
}

void main() {
Expand Down Expand Up @@ -144,7 +144,7 @@ void main() {
true,
);

// Allow more classes.
// Skip more classes.
LeakTrackingForTests.skip(
classes: [_Classes.anyLeak2],
notGCed: {_Classes.notGCed2: null},
Expand Down

0 comments on commit 159609a

Please sign in to comment.