Skip to content

Commit 4ce4a21

Browse files
[go_router_builder] Activate leak testing (#8059)
1 parent 5e141f0 commit 4ce4a21

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

packages/go_router_builder/pubspec.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ dev_dependencies:
2727
flutter:
2828
sdk: flutter
2929
go_router: ^14.0.0
30+
leak_tracker_flutter_testing: ">=3.0.0"
3031
test: ^1.20.0
3132

3233
topics:
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// Copyright 2013 The Flutter Authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style license that can be
3+
// found in the LICENSE file.
4+
5+
import 'dart:async';
6+
7+
import 'package:leak_tracker_flutter_testing/leak_tracker_flutter_testing.dart';
8+
9+
Future<void> testExecutable(FutureOr<void> Function() testMain) async {
10+
LeakTesting.enable();
11+
LeakTracking.warnForUnsupportedPlatforms = false;
12+
await testMain();
13+
}

0 commit comments

Comments
 (0)