From d856c79ac316cc42d822d868274c738b39363e5c Mon Sep 17 00:00:00 2001 From: Andrew Brampton Date: Mon, 2 Oct 2023 10:10:26 -0700 Subject: [PATCH 1/2] Moved two tests into their appropriate directories. These seemed to have been missed with previous refactors. --- .../camera/camera_constraint_test.test} | 0 .../map_controller_test.dart} | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename test/{misc/frame_constraint_test.dart => map/camera/camera_constraint_test.test} (100%) rename test/{flutter_map_controller_test.dart => map/map_controller_test.dart} (99%) diff --git a/test/misc/frame_constraint_test.dart b/test/map/camera/camera_constraint_test.test similarity index 100% rename from test/misc/frame_constraint_test.dart rename to test/map/camera/camera_constraint_test.test diff --git a/test/flutter_map_controller_test.dart b/test/map/map_controller_test.dart similarity index 99% rename from test/flutter_map_controller_test.dart rename to test/map/map_controller_test.dart index 3d7c5783b..6e75c7aa2 100644 --- a/test/flutter_map_controller_test.dart +++ b/test/map/map_controller_test.dart @@ -5,7 +5,7 @@ import 'package:flutter_map/src/map/map_controller.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:latlong2/latlong.dart'; -import 'test_utils/test_app.dart'; +import '../test_utils/test_app.dart'; void main() { testWidgets('test fit bounds methods', (tester) async { From 6c25cf4b915364f85641855bb23443247b0be225 Mon Sep 17 00:00:00 2001 From: Andrew Brampton Date: Mon, 2 Oct 2023 10:12:02 -0700 Subject: [PATCH 2/2] Remove debug print statements from previous test. --- .../tile_provider/network_image_provider_test.dart | 6 ------ 1 file changed, 6 deletions(-) diff --git a/test/layer/tile_layer/tile_provider/network_image_provider_test.dart b/test/layer/tile_layer/tile_provider/network_image_provider_test.dart index 5852866e2..53b22a30a 100644 --- a/test/layer/tile_layer/tile_provider/network_image_provider_test.dart +++ b/test/layer/tile_layer/tile_provider/network_image_provider_test.dart @@ -1,5 +1,3 @@ -// ignore_for_file: avoid_print - import 'dart:async'; import 'dart:convert'; import 'dart:typed_data'; @@ -23,11 +21,9 @@ Future getImageInfo(ImageProvider provider) { stream.addListener( ImageStreamListener( (imageInfo, _) { - print('completer.complete($imageInfo)'); return completer.complete(imageInfo); }, onError: (exception, stackTrace) { - print('completer.completeError($exception)'); return completer.completeError(exception, stackTrace); }, ), @@ -67,7 +63,6 @@ void main() { final url = randomUrl(); when(() => mockClient.readBytes(any(), headers: any(named: 'headers'))) .thenAnswer((_) async { - print('1'); return testWhiteTileBytes; }); @@ -93,7 +88,6 @@ void main() { final url = randomUrl(); when(() => mockClient.readBytes(any(), headers: any(named: 'headers'))) .thenAnswer((_) async { - print('2'); throw ClientException( 'Server error', );