From 9703085d41b0eb562179ad1e2de2578ccafb2ac3 Mon Sep 17 00:00:00 2001 From: Lu Shueh Chou Date: Sat, 18 May 2024 19:08:50 +0800 Subject: [PATCH] fix: correct format --- test/mocks/mock_auth.mocks.dart | 9 +- test/mocks/mock_cache.mocks.dart | 3 +- test/mocks/mock_database.mocks.dart | 13 +-- test/mocks/mock_google_api.mocks.dart | 101 +++++++------------- test/mocks/mock_helpers.mocks.dart | 3 +- test/mocks/mock_storage.mocks.dart | 12 +-- test/services/auth_test.mocks.dart | 125 ++++++++----------------- test/services/cache_test.mocks.dart | 3 +- test/services/database_test.mocks.dart | 10 +- 9 files changed, 90 insertions(+), 189 deletions(-) diff --git a/test/mocks/mock_auth.mocks.dart b/test/mocks/mock_auth.mocks.dart index e2084c5d..73b483f3 100644 --- a/test/mocks/mock_auth.mocks.dart +++ b/test/mocks/mock_auth.mocks.dart @@ -37,8 +37,7 @@ class _FakeResponse_0 extends _i1.SmartFake implements _i2.Response { ); } -class _FakeStreamedResponse_1 extends _i1.SmartFake - implements _i2.StreamedResponse { +class _FakeStreamedResponse_1 extends _i1.SmartFake implements _i2.StreamedResponse { _FakeStreamedResponse_1( Object parent, Invocation parentInvocation, @@ -312,14 +311,12 @@ class MockClient extends _i1.Mock implements _i2.Client { ) as _i4.Future<_i9.Uint8List>); @override - _i4.Future<_i2.StreamedResponse> send(_i2.BaseRequest? request) => - (super.noSuchMethod( + _i4.Future<_i2.StreamedResponse> send(_i2.BaseRequest? request) => (super.noSuchMethod( Invocation.method( #send, [request], ), - returnValue: - _i4.Future<_i2.StreamedResponse>.value(_FakeStreamedResponse_1( + returnValue: _i4.Future<_i2.StreamedResponse>.value(_FakeStreamedResponse_1( this, Invocation.method( #send, diff --git a/test/mocks/mock_cache.mocks.dart b/test/mocks/mock_cache.mocks.dart index e2d747d6..6b56c0fe 100644 --- a/test/mocks/mock_cache.mocks.dart +++ b/test/mocks/mock_cache.mocks.dart @@ -22,8 +22,7 @@ import 'package:shared_preferences/shared_preferences.dart' as _i2; // ignore_for_file: camel_case_types // ignore_for_file: subtype_of_sealed_class -class _FakeSharedPreferences_0 extends _i1.SmartFake - implements _i2.SharedPreferences { +class _FakeSharedPreferences_0 extends _i1.SmartFake implements _i2.SharedPreferences { _FakeSharedPreferences_0( Object parent, Invocation parentInvocation, diff --git a/test/mocks/mock_database.mocks.dart b/test/mocks/mock_database.mocks.dart index d0a3eeed..86e85f46 100644 --- a/test/mocks/mock_database.mocks.dart +++ b/test/mocks/mock_database.mocks.dart @@ -202,9 +202,7 @@ class MockDatabase extends _i1.Mock implements _i4.Database { ) as _i3.Future); @override - _i3.Future transaction( - _i3.Future Function(_i2.DatabaseExecutor)? action) => - (super.noSuchMethod( + _i3.Future transaction(_i3.Future Function(_i2.DatabaseExecutor)? action) => (super.noSuchMethod( Invocation.method( #transaction, [action], @@ -257,8 +255,7 @@ class MockDatabase extends _i1.Mock implements _i4.Database { #escapeTable: escapeTable, }, ), - returnValue: _i3.Future>>.value( - >[]), + returnValue: _i3.Future>>.value(>[]), ) as _i3.Future>>); @override @@ -383,8 +380,7 @@ class MockDatabaseExecutor extends _i1.Mock implements _i2.DatabaseExecutor { #offset: offset, }, ), - returnValue: _i3.Future>>.value( - >[]), + returnValue: _i3.Future>>.value(>[]), ) as _i3.Future>>); @override @@ -400,8 +396,7 @@ class MockDatabaseExecutor extends _i1.Mock implements _i2.DatabaseExecutor { arguments, ], ), - returnValue: _i3.Future>>.value( - >[]), + returnValue: _i3.Future>>.value(>[]), ) as _i3.Future>>); @override diff --git a/test/mocks/mock_google_api.mocks.dart b/test/mocks/mock_google_api.mocks.dart index 43781a96..65274f4f 100644 --- a/test/mocks/mock_google_api.mocks.dart +++ b/test/mocks/mock_google_api.mocks.dart @@ -44,8 +44,7 @@ class _FakeAppsResource_1 extends _i1.SmartFake implements _i2.AppsResource { ); } -class _FakeChangesResource_2 extends _i1.SmartFake - implements _i2.ChangesResource { +class _FakeChangesResource_2 extends _i1.SmartFake implements _i2.ChangesResource { _FakeChangesResource_2( Object parent, Invocation parentInvocation, @@ -55,8 +54,7 @@ class _FakeChangesResource_2 extends _i1.SmartFake ); } -class _FakeChannelsResource_3 extends _i1.SmartFake - implements _i2.ChannelsResource { +class _FakeChannelsResource_3 extends _i1.SmartFake implements _i2.ChannelsResource { _FakeChannelsResource_3( Object parent, Invocation parentInvocation, @@ -66,8 +64,7 @@ class _FakeChannelsResource_3 extends _i1.SmartFake ); } -class _FakeCommentsResource_4 extends _i1.SmartFake - implements _i2.CommentsResource { +class _FakeCommentsResource_4 extends _i1.SmartFake implements _i2.CommentsResource { _FakeCommentsResource_4( Object parent, Invocation parentInvocation, @@ -77,8 +74,7 @@ class _FakeCommentsResource_4 extends _i1.SmartFake ); } -class _FakeDrivesResource_5 extends _i1.SmartFake - implements _i2.DrivesResource { +class _FakeDrivesResource_5 extends _i1.SmartFake implements _i2.DrivesResource { _FakeDrivesResource_5( Object parent, Invocation parentInvocation, @@ -98,8 +94,7 @@ class _FakeFilesResource_6 extends _i1.SmartFake implements _i2.FilesResource { ); } -class _FakePermissionsResource_7 extends _i1.SmartFake - implements _i2.PermissionsResource { +class _FakePermissionsResource_7 extends _i1.SmartFake implements _i2.PermissionsResource { _FakePermissionsResource_7( Object parent, Invocation parentInvocation, @@ -109,8 +104,7 @@ class _FakePermissionsResource_7 extends _i1.SmartFake ); } -class _FakeRepliesResource_8 extends _i1.SmartFake - implements _i2.RepliesResource { +class _FakeRepliesResource_8 extends _i1.SmartFake implements _i2.RepliesResource { _FakeRepliesResource_8( Object parent, Invocation parentInvocation, @@ -120,8 +114,7 @@ class _FakeRepliesResource_8 extends _i1.SmartFake ); } -class _FakeRevisionsResource_9 extends _i1.SmartFake - implements _i2.RevisionsResource { +class _FakeRevisionsResource_9 extends _i1.SmartFake implements _i2.RevisionsResource { _FakeRevisionsResource_9( Object parent, Invocation parentInvocation, @@ -131,8 +124,7 @@ class _FakeRevisionsResource_9 extends _i1.SmartFake ); } -class _FakeTeamdrivesResource_10 extends _i1.SmartFake - implements _i2.TeamdrivesResource { +class _FakeTeamdrivesResource_10 extends _i1.SmartFake implements _i2.TeamdrivesResource { _FakeTeamdrivesResource_10( Object parent, Invocation parentInvocation, @@ -192,8 +184,7 @@ class _FakeLabelList_15 extends _i1.SmartFake implements _i2.LabelList { ); } -class _FakeModifyLabelsResponse_16 extends _i1.SmartFake - implements _i2.ModifyLabelsResponse { +class _FakeModifyLabelsResponse_16 extends _i1.SmartFake implements _i2.ModifyLabelsResponse { _FakeModifyLabelsResponse_16( Object parent, Invocation parentInvocation, @@ -213,8 +204,7 @@ class _Fake$Channel01_17 extends _i1.SmartFake implements _i3.$Channel01 { ); } -class _FakeSpreadsheetsResource_18 extends _i1.SmartFake - implements _i4.SpreadsheetsResource { +class _FakeSpreadsheetsResource_18 extends _i1.SmartFake implements _i4.SpreadsheetsResource { _FakeSpreadsheetsResource_18( Object parent, Invocation parentInvocation, @@ -235,8 +225,7 @@ class _FakeSpreadsheetsDeveloperMetadataResource_19 extends _i1.SmartFake ); } -class _FakeSpreadsheetsSheetsResource_20 extends _i1.SmartFake - implements _i4.SpreadsheetsSheetsResource { +class _FakeSpreadsheetsSheetsResource_20 extends _i1.SmartFake implements _i4.SpreadsheetsSheetsResource { _FakeSpreadsheetsSheetsResource_20( Object parent, Invocation parentInvocation, @@ -246,8 +235,7 @@ class _FakeSpreadsheetsSheetsResource_20 extends _i1.SmartFake ); } -class _FakeSpreadsheetsValuesResource_21 extends _i1.SmartFake - implements _i4.SpreadsheetsValuesResource { +class _FakeSpreadsheetsValuesResource_21 extends _i1.SmartFake implements _i4.SpreadsheetsValuesResource { _FakeSpreadsheetsValuesResource_21( Object parent, Invocation parentInvocation, @@ -257,8 +245,7 @@ class _FakeSpreadsheetsValuesResource_21 extends _i1.SmartFake ); } -class _FakeBatchUpdateSpreadsheetResponse_22 extends _i1.SmartFake - implements _i4.BatchUpdateSpreadsheetResponse { +class _FakeBatchUpdateSpreadsheetResponse_22 extends _i1.SmartFake implements _i4.BatchUpdateSpreadsheetResponse { _FakeBatchUpdateSpreadsheetResponse_22( Object parent, Invocation parentInvocation, @@ -278,8 +265,7 @@ class _FakeSpreadsheet_23 extends _i1.SmartFake implements _i4.Spreadsheet { ); } -class _FakeAppendValuesResponse_24 extends _i1.SmartFake - implements _i4.AppendValuesResponse { +class _FakeAppendValuesResponse_24 extends _i1.SmartFake implements _i4.AppendValuesResponse { _FakeAppendValuesResponse_24( Object parent, Invocation parentInvocation, @@ -289,8 +275,7 @@ class _FakeAppendValuesResponse_24 extends _i1.SmartFake ); } -class _FakeBatchClearValuesResponse_25 extends _i1.SmartFake - implements _i4.BatchClearValuesResponse { +class _FakeBatchClearValuesResponse_25 extends _i1.SmartFake implements _i4.BatchClearValuesResponse { _FakeBatchClearValuesResponse_25( Object parent, Invocation parentInvocation, @@ -311,8 +296,7 @@ class _FakeBatchClearValuesByDataFilterResponse_26 extends _i1.SmartFake ); } -class _FakeBatchGetValuesResponse_27 extends _i1.SmartFake - implements _i4.BatchGetValuesResponse { +class _FakeBatchGetValuesResponse_27 extends _i1.SmartFake implements _i4.BatchGetValuesResponse { _FakeBatchGetValuesResponse_27( Object parent, Invocation parentInvocation, @@ -333,8 +317,7 @@ class _FakeBatchGetValuesByDataFilterResponse_28 extends _i1.SmartFake ); } -class _FakeBatchUpdateValuesResponse_29 extends _i1.SmartFake - implements _i4.BatchUpdateValuesResponse { +class _FakeBatchUpdateValuesResponse_29 extends _i1.SmartFake implements _i4.BatchUpdateValuesResponse { _FakeBatchUpdateValuesResponse_29( Object parent, Invocation parentInvocation, @@ -355,8 +338,7 @@ class _FakeBatchUpdateValuesByDataFilterResponse_30 extends _i1.SmartFake ); } -class _FakeClearValuesResponse_31 extends _i1.SmartFake - implements _i4.ClearValuesResponse { +class _FakeClearValuesResponse_31 extends _i1.SmartFake implements _i4.ClearValuesResponse { _FakeClearValuesResponse_31( Object parent, Invocation parentInvocation, @@ -376,8 +358,7 @@ class _FakeValueRange_32 extends _i1.SmartFake implements _i4.ValueRange { ); } -class _FakeUpdateValuesResponse_33 extends _i1.SmartFake - implements _i4.UpdateValuesResponse { +class _FakeUpdateValuesResponse_33 extends _i1.SmartFake implements _i4.UpdateValuesResponse { _FakeUpdateValuesResponse_33( Object parent, Invocation parentInvocation, @@ -873,8 +854,7 @@ class MockFilesResource extends _i1.Mock implements _i2.FilesResource { ], {#$fields: $fields}, ), - returnValue: _i5.Future<_i2.ModifyLabelsResponse>.value( - _FakeModifyLabelsResponse_16( + returnValue: _i5.Future<_i2.ModifyLabelsResponse>.value(_FakeModifyLabelsResponse_16( this, Invocation.method( #modifyLabels, @@ -1024,15 +1004,13 @@ class MockSheetsApi extends _i1.Mock implements _i4.SheetsApi { /// A class which mocks [SpreadsheetsResource]. /// /// See the documentation for Mockito's code generation for more information. -class MockSpreadsheetsResource extends _i1.Mock - implements _i4.SpreadsheetsResource { +class MockSpreadsheetsResource extends _i1.Mock implements _i4.SpreadsheetsResource { MockSpreadsheetsResource() { _i1.throwOnMissingStub(this); } @override - _i4.SpreadsheetsDeveloperMetadataResource get developerMetadata => - (super.noSuchMethod( + _i4.SpreadsheetsDeveloperMetadataResource get developerMetadata => (super.noSuchMethod( Invocation.getter(#developerMetadata), returnValue: _FakeSpreadsheetsDeveloperMetadataResource_19( this, @@ -1073,8 +1051,7 @@ class MockSpreadsheetsResource extends _i1.Mock ], {#$fields: $fields}, ), - returnValue: _i5.Future<_i4.BatchUpdateSpreadsheetResponse>.value( - _FakeBatchUpdateSpreadsheetResponse_22( + returnValue: _i5.Future<_i4.BatchUpdateSpreadsheetResponse>.value(_FakeBatchUpdateSpreadsheetResponse_22( this, Invocation.method( #batchUpdate, @@ -1171,8 +1148,7 @@ class MockSpreadsheetsResource extends _i1.Mock /// A class which mocks [SpreadsheetsValuesResource]. /// /// See the documentation for Mockito's code generation for more information. -class MockSpreadsheetsValuesResource extends _i1.Mock - implements _i4.SpreadsheetsValuesResource { +class MockSpreadsheetsValuesResource extends _i1.Mock implements _i4.SpreadsheetsValuesResource { MockSpreadsheetsValuesResource() { _i1.throwOnMissingStub(this); } @@ -1206,8 +1182,7 @@ class MockSpreadsheetsValuesResource extends _i1.Mock #$fields: $fields, }, ), - returnValue: _i5.Future<_i4.AppendValuesResponse>.value( - _FakeAppendValuesResponse_24( + returnValue: _i5.Future<_i4.AppendValuesResponse>.value(_FakeAppendValuesResponse_24( this, Invocation.method( #append, @@ -1243,8 +1218,7 @@ class MockSpreadsheetsValuesResource extends _i1.Mock ], {#$fields: $fields}, ), - returnValue: _i5.Future<_i4.BatchClearValuesResponse>.value( - _FakeBatchClearValuesResponse_25( + returnValue: _i5.Future<_i4.BatchClearValuesResponse>.value(_FakeBatchClearValuesResponse_25( this, Invocation.method( #batchClear, @@ -1272,8 +1246,8 @@ class MockSpreadsheetsValuesResource extends _i1.Mock ], {#$fields: $fields}, ), - returnValue: _i5.Future<_i4.BatchClearValuesByDataFilterResponse>.value( - _FakeBatchClearValuesByDataFilterResponse_26( + returnValue: + _i5.Future<_i4.BatchClearValuesByDataFilterResponse>.value(_FakeBatchClearValuesByDataFilterResponse_26( this, Invocation.method( #batchClearByDataFilter, @@ -1307,8 +1281,7 @@ class MockSpreadsheetsValuesResource extends _i1.Mock #$fields: $fields, }, ), - returnValue: _i5.Future<_i4.BatchGetValuesResponse>.value( - _FakeBatchGetValuesResponse_27( + returnValue: _i5.Future<_i4.BatchGetValuesResponse>.value(_FakeBatchGetValuesResponse_27( this, Invocation.method( #batchGet, @@ -1339,8 +1312,8 @@ class MockSpreadsheetsValuesResource extends _i1.Mock ], {#$fields: $fields}, ), - returnValue: _i5.Future<_i4.BatchGetValuesByDataFilterResponse>.value( - _FakeBatchGetValuesByDataFilterResponse_28( + returnValue: + _i5.Future<_i4.BatchGetValuesByDataFilterResponse>.value(_FakeBatchGetValuesByDataFilterResponse_28( this, Invocation.method( #batchGetByDataFilter, @@ -1368,8 +1341,7 @@ class MockSpreadsheetsValuesResource extends _i1.Mock ], {#$fields: $fields}, ), - returnValue: _i5.Future<_i4.BatchUpdateValuesResponse>.value( - _FakeBatchUpdateValuesResponse_29( + returnValue: _i5.Future<_i4.BatchUpdateValuesResponse>.value(_FakeBatchUpdateValuesResponse_29( this, Invocation.method( #batchUpdate, @@ -1398,8 +1370,7 @@ class MockSpreadsheetsValuesResource extends _i1.Mock {#$fields: $fields}, ), returnValue: - _i5.Future<_i4.BatchUpdateValuesByDataFilterResponse>.value( - _FakeBatchUpdateValuesByDataFilterResponse_30( + _i5.Future<_i4.BatchUpdateValuesByDataFilterResponse>.value(_FakeBatchUpdateValuesByDataFilterResponse_30( this, Invocation.method( #batchUpdateByDataFilter, @@ -1429,8 +1400,7 @@ class MockSpreadsheetsValuesResource extends _i1.Mock ], {#$fields: $fields}, ), - returnValue: _i5.Future<_i4.ClearValuesResponse>.value( - _FakeClearValuesResponse_31( + returnValue: _i5.Future<_i4.ClearValuesResponse>.value(_FakeClearValuesResponse_31( this, Invocation.method( #clear, @@ -1512,8 +1482,7 @@ class MockSpreadsheetsValuesResource extends _i1.Mock #$fields: $fields, }, ), - returnValue: _i5.Future<_i4.UpdateValuesResponse>.value( - _FakeUpdateValuesResponse_33( + returnValue: _i5.Future<_i4.UpdateValuesResponse>.value(_FakeUpdateValuesResponse_33( this, Invocation.method( #update, diff --git a/test/mocks/mock_helpers.mocks.dart b/test/mocks/mock_helpers.mocks.dart index fb2f5c37..ee132159 100644 --- a/test/mocks/mock_helpers.mocks.dart +++ b/test/mocks/mock_helpers.mocks.dart @@ -6,8 +6,7 @@ import 'dart:async' as _i3; import 'package:image_cropper/src/cropper.dart' as _i2; -import 'package:image_cropper_platform_interface/image_cropper_platform_interface.dart' - as _i4; +import 'package:image_cropper_platform_interface/image_cropper_platform_interface.dart' as _i4; import 'package:mockito/mockito.dart' as _i1; // ignore_for_file: type=lint diff --git a/test/mocks/mock_storage.mocks.dart b/test/mocks/mock_storage.mocks.dart index 4eb7a3f4..0bb508c8 100644 --- a/test/mocks/mock_storage.mocks.dart +++ b/test/mocks/mock_storage.mocks.dart @@ -32,8 +32,7 @@ class _FakeDatabase_0 extends _i1.SmartFake implements _i2.Database { ); } -class _FakeStorageSanitizedData_1 extends _i1.SmartFake - implements _i3.StorageSanitizedData { +class _FakeStorageSanitizedData_1 extends _i1.SmartFake implements _i3.StorageSanitizedData { _FakeStorageSanitizedData_1( Object parent, Invocation parentInvocation, @@ -101,13 +100,11 @@ class MockStorage extends _i1.Mock implements _i3.Storage { record, ], ), - returnValue: - _i4.Future>.value({}), + returnValue: _i4.Future>.value({}), ) as _i4.Future>); @override - _i4.Future initialize({_i3.StorageOpener? opener}) => - (super.noSuchMethod( + _i4.Future initialize({_i3.StorageOpener? opener}) => (super.noSuchMethod( Invocation.method( #initialize, [], @@ -135,8 +132,7 @@ class MockStorage extends _i1.Mock implements _i3.Storage { ) as _i4.Future); @override - _i3.StorageSanitizedData sanitize(Map? data) => - (super.noSuchMethod( + _i3.StorageSanitizedData sanitize(Map? data) => (super.noSuchMethod( Invocation.method( #sanitize, [data], diff --git a/test/services/auth_test.mocks.dart b/test/services/auth_test.mocks.dart index dd1463f8..113a9b97 100644 --- a/test/services/auth_test.mocks.dart +++ b/test/services/auth_test.mocks.dart @@ -6,12 +6,10 @@ import 'dart:async' as _i7; import 'package:firebase_auth/firebase_auth.dart' as _i4; -import 'package:firebase_auth_platform_interface/firebase_auth_platform_interface.dart' - as _i3; +import 'package:firebase_auth_platform_interface/firebase_auth_platform_interface.dart' as _i3; import 'package:firebase_core/firebase_core.dart' as _i2; import 'package:google_sign_in/google_sign_in.dart' as _i5; -import 'package:google_sign_in_platform_interface/google_sign_in_platform_interface.dart' - as _i6; +import 'package:google_sign_in_platform_interface/google_sign_in_platform_interface.dart' as _i6; import 'package:mockito/mockito.dart' as _i1; import 'package:mockito/src/dummies.dart' as _i8; @@ -38,8 +36,7 @@ class _FakeFirebaseApp_0 extends _i1.SmartFake implements _i2.FirebaseApp { ); } -class _FakeActionCodeInfo_1 extends _i1.SmartFake - implements _i3.ActionCodeInfo { +class _FakeActionCodeInfo_1 extends _i1.SmartFake implements _i3.ActionCodeInfo { _FakeActionCodeInfo_1( Object parent, Invocation parentInvocation, @@ -49,8 +46,7 @@ class _FakeActionCodeInfo_1 extends _i1.SmartFake ); } -class _FakeUserCredential_2 extends _i1.SmartFake - implements _i4.UserCredential { +class _FakeUserCredential_2 extends _i1.SmartFake implements _i4.UserCredential { _FakeUserCredential_2( Object parent, Invocation parentInvocation, @@ -60,8 +56,7 @@ class _FakeUserCredential_2 extends _i1.SmartFake ); } -class _FakeConfirmationResult_3 extends _i1.SmartFake - implements _i4.ConfirmationResult { +class _FakeConfirmationResult_3 extends _i1.SmartFake implements _i4.ConfirmationResult { _FakeConfirmationResult_3( Object parent, Invocation parentInvocation, @@ -71,8 +66,7 @@ class _FakeConfirmationResult_3 extends _i1.SmartFake ); } -class _FakeGoogleSignInAuthentication_4 extends _i1.SmartFake - implements _i5.GoogleSignInAuthentication { +class _FakeGoogleSignInAuthentication_4 extends _i1.SmartFake implements _i5.GoogleSignInAuthentication { _FakeGoogleSignInAuthentication_4( Object parent, Invocation parentInvocation, @@ -149,8 +143,7 @@ class MockGoogleSignIn extends _i1.Mock implements _i5.GoogleSignIn { ) as bool); @override - _i7.Stream<_i5.GoogleSignInAccount?> get onCurrentUserChanged => - (super.noSuchMethod( + _i7.Stream<_i5.GoogleSignInAccount?> get onCurrentUserChanged => (super.noSuchMethod( Invocation.getter(#onCurrentUserChanged), returnValue: _i7.Stream<_i5.GoogleSignInAccount?>.empty(), ) as _i7.Stream<_i5.GoogleSignInAccount?>); @@ -322,8 +315,7 @@ class MockFirebaseAuth extends _i1.Mock implements _i4.FirebaseAuth { ) as _i7.Future); @override - _i7.Future<_i3.ActionCodeInfo> checkActionCode(String? code) => - (super.noSuchMethod( + _i7.Future<_i3.ActionCodeInfo> checkActionCode(String? code) => (super.noSuchMethod( Invocation.method( #checkActionCode, [code], @@ -383,8 +375,7 @@ class MockFirebaseAuth extends _i1.Mock implements _i4.FirebaseAuth { ) as _i7.Future<_i4.UserCredential>); @override - _i7.Future> fetchSignInMethodsForEmail(String? email) => - (super.noSuchMethod( + _i7.Future> fetchSignInMethodsForEmail(String? email) => (super.noSuchMethod( Invocation.method( #fetchSignInMethodsForEmail, [email], @@ -502,8 +493,7 @@ class MockFirebaseAuth extends _i1.Mock implements _i4.FirebaseAuth { #setSettings, [], { - #appVerificationDisabledForTesting: - appVerificationDisabledForTesting, + #appVerificationDisabledForTesting: appVerificationDisabledForTesting, #userAccessGroup: userAccessGroup, #phoneNumber: phoneNumber, #smsCode: smsCode, @@ -515,8 +505,7 @@ class MockFirebaseAuth extends _i1.Mock implements _i4.FirebaseAuth { ) as _i7.Future); @override - _i7.Future setPersistence(_i3.Persistence? persistence) => - (super.noSuchMethod( + _i7.Future setPersistence(_i3.Persistence? persistence) => (super.noSuchMethod( Invocation.method( #setPersistence, [persistence], @@ -541,9 +530,7 @@ class MockFirebaseAuth extends _i1.Mock implements _i4.FirebaseAuth { ) as _i7.Future<_i4.UserCredential>); @override - _i7.Future<_i4.UserCredential> signInWithCredential( - _i3.AuthCredential? credential) => - (super.noSuchMethod( + _i7.Future<_i4.UserCredential> signInWithCredential(_i3.AuthCredential? credential) => (super.noSuchMethod( Invocation.method( #signInWithCredential, [credential], @@ -558,8 +545,7 @@ class MockFirebaseAuth extends _i1.Mock implements _i4.FirebaseAuth { ) as _i7.Future<_i4.UserCredential>); @override - _i7.Future<_i4.UserCredential> signInWithCustomToken(String? token) => - (super.noSuchMethod( + _i7.Future<_i4.UserCredential> signInWithCustomToken(String? token) => (super.noSuchMethod( Invocation.method( #signInWithCustomToken, [token], @@ -628,9 +614,7 @@ class MockFirebaseAuth extends _i1.Mock implements _i4.FirebaseAuth { ) as _i7.Future<_i4.UserCredential>); @override - _i7.Future<_i4.UserCredential> signInWithAuthProvider( - _i3.AuthProvider? provider) => - (super.noSuchMethod( + _i7.Future<_i4.UserCredential> signInWithAuthProvider(_i3.AuthProvider? provider) => (super.noSuchMethod( Invocation.method( #signInWithAuthProvider, [provider], @@ -645,9 +629,7 @@ class MockFirebaseAuth extends _i1.Mock implements _i4.FirebaseAuth { ) as _i7.Future<_i4.UserCredential>); @override - _i7.Future<_i4.UserCredential> signInWithProvider( - _i3.AuthProvider? provider) => - (super.noSuchMethod( + _i7.Future<_i4.UserCredential> signInWithProvider(_i3.AuthProvider? provider) => (super.noSuchMethod( Invocation.method( #signInWithProvider, [provider], @@ -674,8 +656,7 @@ class MockFirebaseAuth extends _i1.Mock implements _i4.FirebaseAuth { verifier, ], ), - returnValue: - _i7.Future<_i4.ConfirmationResult>.value(_FakeConfirmationResult_3( + returnValue: _i7.Future<_i4.ConfirmationResult>.value(_FakeConfirmationResult_3( this, Invocation.method( #signInWithPhoneNumber, @@ -688,8 +669,7 @@ class MockFirebaseAuth extends _i1.Mock implements _i4.FirebaseAuth { ) as _i7.Future<_i4.ConfirmationResult>); @override - _i7.Future<_i4.UserCredential> signInWithPopup(_i3.AuthProvider? provider) => - (super.noSuchMethod( + _i7.Future<_i4.UserCredential> signInWithPopup(_i3.AuthProvider? provider) => (super.noSuchMethod( Invocation.method( #signInWithPopup, [provider], @@ -704,8 +684,7 @@ class MockFirebaseAuth extends _i1.Mock implements _i4.FirebaseAuth { ) as _i7.Future<_i4.UserCredential>); @override - _i7.Future signInWithRedirect(_i3.AuthProvider? provider) => - (super.noSuchMethod( + _i7.Future signInWithRedirect(_i3.AuthProvider? provider) => (super.noSuchMethod( Invocation.method( #signInWithRedirect, [provider], @@ -725,8 +704,7 @@ class MockFirebaseAuth extends _i1.Mock implements _i4.FirebaseAuth { ) as _i7.Future); @override - _i7.Future verifyPasswordResetCode(String? code) => - (super.noSuchMethod( + _i7.Future verifyPasswordResetCode(String? code) => (super.noSuchMethod( Invocation.method( #verifyPasswordResetCode, [code], @@ -775,9 +753,7 @@ class MockFirebaseAuth extends _i1.Mock implements _i4.FirebaseAuth { ) as _i7.Future); @override - _i7.Future revokeTokenWithAuthorizationCode( - String? authorizationCode) => - (super.noSuchMethod( + _i7.Future revokeTokenWithAuthorizationCode(String? authorizationCode) => (super.noSuchMethod( Invocation.method( #revokeTokenWithAuthorizationCode, [authorizationCode], @@ -791,8 +767,7 @@ class MockFirebaseAuth extends _i1.Mock implements _i4.FirebaseAuth { /// /// See the documentation for Mockito's code generation for more information. // ignore: must_be_immutable -class MockGoogleSignInAccount extends _i1.Mock - implements _i5.GoogleSignInAccount { +class MockGoogleSignInAccount extends _i1.Mock implements _i5.GoogleSignInAccount { MockGoogleSignInAccount() { _i1.throwOnMissingStub(this); } @@ -816,11 +791,9 @@ class MockGoogleSignInAccount extends _i1.Mock ) as String); @override - _i7.Future<_i5.GoogleSignInAuthentication> get authentication => - (super.noSuchMethod( + _i7.Future<_i5.GoogleSignInAuthentication> get authentication => (super.noSuchMethod( Invocation.getter(#authentication), - returnValue: _i7.Future<_i5.GoogleSignInAuthentication>.value( - _FakeGoogleSignInAuthentication_4( + returnValue: _i7.Future<_i5.GoogleSignInAuthentication>.value(_FakeGoogleSignInAuthentication_4( this, Invocation.getter(#authentication), )), @@ -846,8 +819,7 @@ class MockGoogleSignInAccount extends _i1.Mock /// A class which mocks [GoogleSignInAuthentication]. /// /// See the documentation for Mockito's code generation for more information. -class MockGoogleSignInAuthentication extends _i1.Mock - implements _i5.GoogleSignInAuthentication { +class MockGoogleSignInAuthentication extends _i1.Mock implements _i5.GoogleSignInAuthentication { MockGoogleSignInAuthentication() { _i1.throwOnMissingStub(this); } @@ -917,8 +889,7 @@ class MockUser extends _i1.Mock implements _i4.User { ) as _i7.Future); @override - _i7.Future getIdToken([bool? forceRefresh = false]) => - (super.noSuchMethod( + _i7.Future getIdToken([bool? forceRefresh = false]) => (super.noSuchMethod( Invocation.method( #getIdToken, [forceRefresh], @@ -927,9 +898,7 @@ class MockUser extends _i1.Mock implements _i4.User { ) as _i7.Future); @override - _i7.Future<_i3.IdTokenResult> getIdTokenResult( - [bool? forceRefresh = false]) => - (super.noSuchMethod( + _i7.Future<_i3.IdTokenResult> getIdTokenResult([bool? forceRefresh = false]) => (super.noSuchMethod( Invocation.method( #getIdTokenResult, [forceRefresh], @@ -944,9 +913,7 @@ class MockUser extends _i1.Mock implements _i4.User { ) as _i7.Future<_i3.IdTokenResult>); @override - _i7.Future<_i4.UserCredential> linkWithCredential( - _i3.AuthCredential? credential) => - (super.noSuchMethod( + _i7.Future<_i4.UserCredential> linkWithCredential(_i3.AuthCredential? credential) => (super.noSuchMethod( Invocation.method( #linkWithCredential, [credential], @@ -961,8 +928,7 @@ class MockUser extends _i1.Mock implements _i4.User { ) as _i7.Future<_i4.UserCredential>); @override - _i7.Future<_i4.UserCredential> linkWithProvider(_i3.AuthProvider? provider) => - (super.noSuchMethod( + _i7.Future<_i4.UserCredential> linkWithProvider(_i3.AuthProvider? provider) => (super.noSuchMethod( Invocation.method( #linkWithProvider, [provider], @@ -977,9 +943,7 @@ class MockUser extends _i1.Mock implements _i4.User { ) as _i7.Future<_i4.UserCredential>); @override - _i7.Future<_i4.UserCredential> reauthenticateWithProvider( - _i3.AuthProvider? provider) => - (super.noSuchMethod( + _i7.Future<_i4.UserCredential> reauthenticateWithProvider(_i3.AuthProvider? provider) => (super.noSuchMethod( Invocation.method( #reauthenticateWithProvider, [provider], @@ -994,9 +958,7 @@ class MockUser extends _i1.Mock implements _i4.User { ) as _i7.Future<_i4.UserCredential>); @override - _i7.Future<_i4.UserCredential> reauthenticateWithPopup( - _i3.AuthProvider? provider) => - (super.noSuchMethod( + _i7.Future<_i4.UserCredential> reauthenticateWithPopup(_i3.AuthProvider? provider) => (super.noSuchMethod( Invocation.method( #reauthenticateWithPopup, [provider], @@ -1011,8 +973,7 @@ class MockUser extends _i1.Mock implements _i4.User { ) as _i7.Future<_i4.UserCredential>); @override - _i7.Future reauthenticateWithRedirect(_i3.AuthProvider? provider) => - (super.noSuchMethod( + _i7.Future reauthenticateWithRedirect(_i3.AuthProvider? provider) => (super.noSuchMethod( Invocation.method( #reauthenticateWithRedirect, [provider], @@ -1022,8 +983,7 @@ class MockUser extends _i1.Mock implements _i4.User { ) as _i7.Future); @override - _i7.Future<_i4.UserCredential> linkWithPopup(_i3.AuthProvider? provider) => - (super.noSuchMethod( + _i7.Future<_i4.UserCredential> linkWithPopup(_i3.AuthProvider? provider) => (super.noSuchMethod( Invocation.method( #linkWithPopup, [provider], @@ -1038,8 +998,7 @@ class MockUser extends _i1.Mock implements _i4.User { ) as _i7.Future<_i4.UserCredential>); @override - _i7.Future linkWithRedirect(_i3.AuthProvider? provider) => - (super.noSuchMethod( + _i7.Future linkWithRedirect(_i3.AuthProvider? provider) => (super.noSuchMethod( Invocation.method( #linkWithRedirect, [provider], @@ -1061,8 +1020,7 @@ class MockUser extends _i1.Mock implements _i4.User { verifier, ], ), - returnValue: - _i7.Future<_i4.ConfirmationResult>.value(_FakeConfirmationResult_3( + returnValue: _i7.Future<_i4.ConfirmationResult>.value(_FakeConfirmationResult_3( this, Invocation.method( #linkWithPhoneNumber, @@ -1075,9 +1033,7 @@ class MockUser extends _i1.Mock implements _i4.User { ) as _i7.Future<_i4.ConfirmationResult>); @override - _i7.Future<_i4.UserCredential> reauthenticateWithCredential( - _i3.AuthCredential? credential) => - (super.noSuchMethod( + _i7.Future<_i4.UserCredential> reauthenticateWithCredential(_i3.AuthCredential? credential) => (super.noSuchMethod( Invocation.method( #reauthenticateWithCredential, [credential], @@ -1102,9 +1058,7 @@ class MockUser extends _i1.Mock implements _i4.User { ) as _i7.Future); @override - _i7.Future sendEmailVerification( - [_i3.ActionCodeSettings? actionCodeSettings]) => - (super.noSuchMethod( + _i7.Future sendEmailVerification([_i3.ActionCodeSettings? actionCodeSettings]) => (super.noSuchMethod( Invocation.method( #sendEmailVerification, [actionCodeSettings], @@ -1149,9 +1103,7 @@ class MockUser extends _i1.Mock implements _i4.User { ) as _i7.Future); @override - _i7.Future updatePhoneNumber( - _i3.PhoneAuthCredential? phoneCredential) => - (super.noSuchMethod( + _i7.Future updatePhoneNumber(_i3.PhoneAuthCredential? phoneCredential) => (super.noSuchMethod( Invocation.method( #updatePhoneNumber, [phoneCredential], @@ -1161,8 +1113,7 @@ class MockUser extends _i1.Mock implements _i4.User { ) as _i7.Future); @override - _i7.Future updateDisplayName(String? displayName) => - (super.noSuchMethod( + _i7.Future updateDisplayName(String? displayName) => (super.noSuchMethod( Invocation.method( #updateDisplayName, [displayName], diff --git a/test/services/cache_test.mocks.dart b/test/services/cache_test.mocks.dart index 0602eac0..10f4c984 100644 --- a/test/services/cache_test.mocks.dart +++ b/test/services/cache_test.mocks.dart @@ -78,8 +78,7 @@ class MockSharedPreferences extends _i1.Mock implements _i2.SharedPreferences { ) as bool); @override - List? getStringList(String? key) => - (super.noSuchMethod(Invocation.method( + List? getStringList(String? key) => (super.noSuchMethod(Invocation.method( #getStringList, [key], )) as List?); diff --git a/test/services/database_test.mocks.dart b/test/services/database_test.mocks.dart index 58c3f56f..1771caf6 100644 --- a/test/services/database_test.mocks.dart +++ b/test/services/database_test.mocks.dart @@ -138,9 +138,7 @@ class MockDatabase extends _i1.Mock implements _i2.Database { ) as _i3.Future); @override - _i3.Future readTransaction( - _i3.Future Function(_i2.Transaction)? action) => - (super.noSuchMethod( + _i3.Future readTransaction(_i3.Future Function(_i2.Transaction)? action) => (super.noSuchMethod( Invocation.method( #readTransaction, [action], @@ -328,8 +326,7 @@ class MockDatabase extends _i1.Mock implements _i2.Database { #offset: offset, }, ), - returnValue: _i3.Future>>.value( - >[]), + returnValue: _i3.Future>>.value(>[]), ) as _i3.Future>>); @override @@ -345,8 +342,7 @@ class MockDatabase extends _i1.Mock implements _i2.Database { arguments, ], ), - returnValue: _i3.Future>>.value( - >[]), + returnValue: _i3.Future>>.value(>[]), ) as _i3.Future>>); @override