Skip to content

Commit

Permalink
Rename utils.dart to test_utils.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
veloce committed Feb 17, 2023
1 parent dd58f49 commit 2df46c0
Show file tree
Hide file tree
Showing 15 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion test/model/auth/auth_controller_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import 'package:lichess_mobile/src/model/auth/auth_repository.dart';
import 'package:lichess_mobile/src/model/auth/session_repository.dart';
import 'package:lichess_mobile/src/model/auth/user_session.dart';
import 'package:lichess_mobile/src/model/user/user.dart';
import '../../utils.dart';
import '../../test_utils.dart';

class MockClient extends Mock implements http.Client {}

Expand Down
2 changes: 1 addition & 1 deletion test/model/board/board_repository_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import 'package:lichess_mobile/src/common/api_client.dart';
import 'package:lichess_mobile/src/model/board/board_repository.dart';
import 'package:lichess_mobile/src/model/board/board_event.dart';
import 'package:lichess_mobile/src/model/board/api_event.dart';
import '../../utils.dart';
import '../../test_utils.dart';

class MockApiClient extends Mock implements ApiClient {}

Expand Down
2 changes: 1 addition & 1 deletion test/model/puzzle/puzzle_repository_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import 'package:lichess_mobile/src/common/api_client.dart';
import 'package:lichess_mobile/src/model/auth/auth_controller.dart';

import 'package:lichess_mobile/src/model/puzzle/puzzle_repository.dart';
import '../../utils.dart';
import '../../test_utils.dart';

class MockClient extends Mock implements http.Client {}

Expand Down
2 changes: 1 addition & 1 deletion test/model/puzzle/puzzle_service_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import 'package:lichess_mobile/src/model/puzzle/puzzle.dart';
import 'package:lichess_mobile/src/model/puzzle/puzzle_theme.dart';
import 'package:lichess_mobile/src/model/puzzle/puzzle_repository.dart';
import 'package:lichess_mobile/src/model/auth/auth_controller.dart';
import '../../utils.dart';
import '../../test_utils.dart';

class MockLogger extends Mock implements Logger {}

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion test/ui/account/profile_screen_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import 'package:lichess_mobile/src/common/models.dart';
import 'package:lichess_mobile/src/model/auth/session_repository.dart';
import 'package:lichess_mobile/src/ui/account/profile_screen.dart';
import 'package:lichess_mobile/src/widgets/platform.dart';
import '../../utils.dart';
import '../../test_utils.dart';
import '../../test_app.dart';
import '../../model/auth/fake_session_repository.dart';

Expand Down
2 changes: 1 addition & 1 deletion test/ui/auth/sign_in_widget_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import 'package:http/testing.dart';

import 'package:lichess_mobile/src/common/api_client.dart';
import 'package:lichess_mobile/src/ui/auth/sign_in_widget.dart';
import '../../utils.dart' hide buildTestApp;
import '../../test_utils.dart';
import '../../test_app.dart';

void main() {
Expand Down
2 changes: 1 addition & 1 deletion test/ui/game/archived_game_screen_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import 'package:lichess_mobile/src/common/api_client.dart';
import 'package:lichess_mobile/src/ui/game/archived_game_screen.dart';
import 'package:lichess_mobile/src/model/game/game.dart';
import 'package:lichess_mobile/src/model/game/player.dart';
import '../../utils.dart';
import '../../test_utils.dart';
import '../../test_app.dart';

void main() {
Expand Down
2 changes: 1 addition & 1 deletion test/ui/game/create_game_screen_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import 'package:lichess_mobile/src/model/board/computer_opponent.dart';
import 'package:lichess_mobile/src/model/auth/session_repository.dart';
import 'package:lichess_mobile/src/widgets/buttons.dart';
import 'package:lichess_mobile/src/widgets/settings.dart';
import '../../utils.dart';
import '../../test_utils.dart';
import '../../test_app.dart';
import '../../model/auth/fake_session_repository.dart';

Expand Down
2 changes: 1 addition & 1 deletion test/ui/game/playable_game_screen_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import 'package:lichess_mobile/src/ui/game/playable_game_screen.dart';
import 'package:lichess_mobile/src/model/game/game.dart';
import 'package:lichess_mobile/src/model/game/player.dart';
import '../../test_app.dart';
import '../../utils.dart';
import '../../test_utils.dart';

class MockSoundService extends Mock implements SoundService {}

Expand Down
2 changes: 1 addition & 1 deletion test/ui/settings/settings_screen_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import 'package:flutter_test/flutter_test.dart';
import 'package:lichess_mobile/src/model/auth/session_repository.dart';
import 'package:lichess_mobile/src/ui/settings/settings_screen.dart';
import 'package:lichess_mobile/src/widgets/platform.dart';
import '../../utils.dart';
import '../../test_utils.dart';
import '../../test_app.dart';
import '../../model/auth/fake_session_repository.dart';

Expand Down
2 changes: 1 addition & 1 deletion test/ui/user/leaderboard_screen_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import 'package:lichess_mobile/src/ui/user/leaderboard_screen.dart';

import 'package:lichess_mobile/src/common/models.dart';
import 'package:lichess_mobile/src/model/user/leaderboard.dart';
import '../../utils.dart';
import '../../test_utils.dart';
import '../../test_app.dart';

void main() {
Expand Down
2 changes: 1 addition & 1 deletion test/ui/user/leaderboard_widget_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import 'package:lichess_mobile/src/ui/user/leaderboard_widget.dart';
import 'package:http/testing.dart';

import 'package:lichess_mobile/src/common/api_client.dart';
import '../../utils.dart';
import '../../test_utils.dart';
import '../../test_app.dart';

void main() {
Expand Down
2 changes: 1 addition & 1 deletion test/ui/user/perf_stats_screen_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import 'package:lichess_mobile/src/common/api_client.dart';
import 'package:lichess_mobile/src/common/models.dart';
import 'package:lichess_mobile/src/ui/user/perf_stats_screen.dart';
import 'package:lichess_mobile/src/widgets/platform.dart';
import '../../utils.dart';
import '../../test_utils.dart';
import '../../test_app.dart';
import '../../model/auth/fake_auth_repository.dart';

Expand Down
2 changes: 1 addition & 1 deletion test/ui/user/user_screen_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import 'package:lichess_mobile/src/common/models.dart';
import 'package:lichess_mobile/src/ui/user/user_screen.dart';
import 'package:lichess_mobile/src/widgets/platform.dart';
import 'package:lichess_mobile/src/model/user/user.dart';
import '../../utils.dart';
import '../../test_utils.dart';
import '../../test_app.dart';

void main() {
Expand Down

0 comments on commit 2df46c0

Please sign in to comment.