From ba0e3e1fbd9000976e4f31458e837437c95cc00e Mon Sep 17 00:00:00 2001 From: julian Date: Fri, 10 May 2024 15:59:23 -0600 Subject: [PATCH] update mocks --- test/cached_electrumx_test.mocks.dart | 26 ------------------- .../pages/send_view/send_view_test.mocks.dart | 26 ------------------- .../exchange/exchange_view_test.mocks.dart | 26 ------------------- ...allet_settings_view_screen_test.mocks.dart | 2 ++ .../bitcoin/bitcoin_wallet_test.mocks.dart | 2 ++ .../bitcoincash_wallet_test.mocks.dart | 2 ++ .../dogecoin/dogecoin_wallet_test.mocks.dart | 2 ++ .../namecoin/namecoin_wallet_test.mocks.dart | 2 ++ .../particl/particl_wallet_test.mocks.dart | 2 ++ .../managed_favorite_test.mocks.dart | 26 ------------------- .../node_options_sheet_test.mocks.dart | 26 ------------------- .../transaction_card_test.mocks.dart | 26 ------------------- 12 files changed, 12 insertions(+), 156 deletions(-) diff --git a/test/cached_electrumx_test.mocks.dart b/test/cached_electrumx_test.mocks.dart index 1b032ceff..cb1317096 100644 --- a/test/cached_electrumx_test.mocks.dart +++ b/test/cached_electrumx_test.mocks.dart @@ -884,32 +884,6 @@ class MockPrefs extends _i1.Mock implements _i7.Prefs { returnValueForMissingStub: null, ); @override - bool get solanaEnabled => (super.noSuchMethod( - Invocation.getter(#solanaEnabled), - returnValue: false, - ) as bool); - @override - set solanaEnabled(bool? solanaEnabled) => super.noSuchMethod( - Invocation.setter( - #solanaEnabled, - solanaEnabled, - ), - returnValueForMissingStub: null, - ); - @override - bool get frostEnabled => (super.noSuchMethod( - Invocation.getter(#frostEnabled), - returnValue: false, - ) as bool); - @override - set frostEnabled(bool? frostEnabled) => super.noSuchMethod( - Invocation.setter( - #frostEnabled, - frostEnabled, - ), - returnValueForMissingStub: null, - ); - @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, diff --git a/test/pages/send_view/send_view_test.mocks.dart b/test/pages/send_view/send_view_test.mocks.dart index 710bc087e..fba574b15 100644 --- a/test/pages/send_view/send_view_test.mocks.dart +++ b/test/pages/send_view/send_view_test.mocks.dart @@ -978,32 +978,6 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { returnValueForMissingStub: null, ); @override - bool get solanaEnabled => (super.noSuchMethod( - Invocation.getter(#solanaEnabled), - returnValue: false, - ) as bool); - @override - set solanaEnabled(bool? solanaEnabled) => super.noSuchMethod( - Invocation.setter( - #solanaEnabled, - solanaEnabled, - ), - returnValueForMissingStub: null, - ); - @override - bool get frostEnabled => (super.noSuchMethod( - Invocation.getter(#frostEnabled), - returnValue: false, - ) as bool); - @override - set frostEnabled(bool? frostEnabled) => super.noSuchMethod( - Invocation.setter( - #frostEnabled, - frostEnabled, - ), - returnValueForMissingStub: null, - ); - @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, diff --git a/test/screen_tests/exchange/exchange_view_test.mocks.dart b/test/screen_tests/exchange/exchange_view_test.mocks.dart index 63ddafc1b..1d97e1d48 100644 --- a/test/screen_tests/exchange/exchange_view_test.mocks.dart +++ b/test/screen_tests/exchange/exchange_view_test.mocks.dart @@ -454,32 +454,6 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs { returnValueForMissingStub: null, ); @override - bool get solanaEnabled => (super.noSuchMethod( - Invocation.getter(#solanaEnabled), - returnValue: false, - ) as bool); - @override - set solanaEnabled(bool? solanaEnabled) => super.noSuchMethod( - Invocation.setter( - #solanaEnabled, - solanaEnabled, - ), - returnValueForMissingStub: null, - ); - @override - bool get frostEnabled => (super.noSuchMethod( - Invocation.getter(#frostEnabled), - returnValue: false, - ) as bool); - @override - set frostEnabled(bool? frostEnabled) => super.noSuchMethod( - Invocation.setter( - #frostEnabled, - frostEnabled, - ), - returnValueForMissingStub: null, - ); - @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, diff --git a/test/screen_tests/settings_view/settings_subviews/wallet_settings_view_screen_test.mocks.dart b/test/screen_tests/settings_view/settings_subviews/wallet_settings_view_screen_test.mocks.dart index bb7ed9b5b..5bc43e816 100644 --- a/test/screen_tests/settings_view/settings_subviews/wallet_settings_view_screen_test.mocks.dart +++ b/test/screen_tests/settings_view/settings_subviews/wallet_settings_view_screen_test.mocks.dart @@ -78,6 +78,7 @@ class MockCachedElectrumXClient extends _i1.Mock required String? groupId, String? blockhash = r'', required _i5.Coin? coin, + required bool? useOnlyCacheIfNotEmpty, }) => (super.noSuchMethod( Invocation.method( @@ -87,6 +88,7 @@ class MockCachedElectrumXClient extends _i1.Mock #groupId: groupId, #blockhash: blockhash, #coin: coin, + #useOnlyCacheIfNotEmpty: useOnlyCacheIfNotEmpty, }, ), returnValue: diff --git a/test/services/coins/bitcoin/bitcoin_wallet_test.mocks.dart b/test/services/coins/bitcoin/bitcoin_wallet_test.mocks.dart index 85e32012e..999e3f135 100644 --- a/test/services/coins/bitcoin/bitcoin_wallet_test.mocks.dart +++ b/test/services/coins/bitcoin/bitcoin_wallet_test.mocks.dart @@ -548,6 +548,7 @@ class MockCachedElectrumXClient extends _i1.Mock required String? groupId, String? blockhash = r'', required _i7.Coin? coin, + required bool? useOnlyCacheIfNotEmpty, }) => (super.noSuchMethod( Invocation.method( @@ -557,6 +558,7 @@ class MockCachedElectrumXClient extends _i1.Mock #groupId: groupId, #blockhash: blockhash, #coin: coin, + #useOnlyCacheIfNotEmpty: useOnlyCacheIfNotEmpty, }, ), returnValue: diff --git a/test/services/coins/bitcoincash/bitcoincash_wallet_test.mocks.dart b/test/services/coins/bitcoincash/bitcoincash_wallet_test.mocks.dart index 0c2ab7d27..9886b150a 100644 --- a/test/services/coins/bitcoincash/bitcoincash_wallet_test.mocks.dart +++ b/test/services/coins/bitcoincash/bitcoincash_wallet_test.mocks.dart @@ -548,6 +548,7 @@ class MockCachedElectrumXClient extends _i1.Mock required String? groupId, String? blockhash = r'', required _i7.Coin? coin, + required bool? useOnlyCacheIfNotEmpty, }) => (super.noSuchMethod( Invocation.method( @@ -557,6 +558,7 @@ class MockCachedElectrumXClient extends _i1.Mock #groupId: groupId, #blockhash: blockhash, #coin: coin, + #useOnlyCacheIfNotEmpty: useOnlyCacheIfNotEmpty, }, ), returnValue: diff --git a/test/services/coins/dogecoin/dogecoin_wallet_test.mocks.dart b/test/services/coins/dogecoin/dogecoin_wallet_test.mocks.dart index 20a3938e6..f9cc4af74 100644 --- a/test/services/coins/dogecoin/dogecoin_wallet_test.mocks.dart +++ b/test/services/coins/dogecoin/dogecoin_wallet_test.mocks.dart @@ -548,6 +548,7 @@ class MockCachedElectrumXClient extends _i1.Mock required String? groupId, String? blockhash = r'', required _i7.Coin? coin, + required bool? useOnlyCacheIfNotEmpty, }) => (super.noSuchMethod( Invocation.method( @@ -557,6 +558,7 @@ class MockCachedElectrumXClient extends _i1.Mock #groupId: groupId, #blockhash: blockhash, #coin: coin, + #useOnlyCacheIfNotEmpty: useOnlyCacheIfNotEmpty, }, ), returnValue: diff --git a/test/services/coins/namecoin/namecoin_wallet_test.mocks.dart b/test/services/coins/namecoin/namecoin_wallet_test.mocks.dart index 34a2b7c9e..c5ed61ed5 100644 --- a/test/services/coins/namecoin/namecoin_wallet_test.mocks.dart +++ b/test/services/coins/namecoin/namecoin_wallet_test.mocks.dart @@ -548,6 +548,7 @@ class MockCachedElectrumXClient extends _i1.Mock required String? groupId, String? blockhash = r'', required _i7.Coin? coin, + required bool? useOnlyCacheIfNotEmpty, }) => (super.noSuchMethod( Invocation.method( @@ -557,6 +558,7 @@ class MockCachedElectrumXClient extends _i1.Mock #groupId: groupId, #blockhash: blockhash, #coin: coin, + #useOnlyCacheIfNotEmpty: useOnlyCacheIfNotEmpty, }, ), returnValue: diff --git a/test/services/coins/particl/particl_wallet_test.mocks.dart b/test/services/coins/particl/particl_wallet_test.mocks.dart index 447d01329..587dbe42e 100644 --- a/test/services/coins/particl/particl_wallet_test.mocks.dart +++ b/test/services/coins/particl/particl_wallet_test.mocks.dart @@ -548,6 +548,7 @@ class MockCachedElectrumXClient extends _i1.Mock required String? groupId, String? blockhash = r'', required _i7.Coin? coin, + required bool? useOnlyCacheIfNotEmpty, }) => (super.noSuchMethod( Invocation.method( @@ -557,6 +558,7 @@ class MockCachedElectrumXClient extends _i1.Mock #groupId: groupId, #blockhash: blockhash, #coin: coin, + #useOnlyCacheIfNotEmpty: useOnlyCacheIfNotEmpty, }, ), returnValue: diff --git a/test/widget_tests/managed_favorite_test.mocks.dart b/test/widget_tests/managed_favorite_test.mocks.dart index ebb7ca994..e78909a96 100644 --- a/test/widget_tests/managed_favorite_test.mocks.dart +++ b/test/widget_tests/managed_favorite_test.mocks.dart @@ -712,32 +712,6 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { returnValueForMissingStub: null, ); @override - bool get solanaEnabled => (super.noSuchMethod( - Invocation.getter(#solanaEnabled), - returnValue: false, - ) as bool); - @override - set solanaEnabled(bool? solanaEnabled) => super.noSuchMethod( - Invocation.setter( - #solanaEnabled, - solanaEnabled, - ), - returnValueForMissingStub: null, - ); - @override - bool get frostEnabled => (super.noSuchMethod( - Invocation.getter(#frostEnabled), - returnValue: false, - ) as bool); - @override - set frostEnabled(bool? frostEnabled) => super.noSuchMethod( - Invocation.setter( - #frostEnabled, - frostEnabled, - ), - returnValueForMissingStub: null, - ); - @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, diff --git a/test/widget_tests/node_options_sheet_test.mocks.dart b/test/widget_tests/node_options_sheet_test.mocks.dart index ad81db4cd..3d0a10b68 100644 --- a/test/widget_tests/node_options_sheet_test.mocks.dart +++ b/test/widget_tests/node_options_sheet_test.mocks.dart @@ -598,32 +598,6 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs { returnValueForMissingStub: null, ); @override - bool get solanaEnabled => (super.noSuchMethod( - Invocation.getter(#solanaEnabled), - returnValue: false, - ) as bool); - @override - set solanaEnabled(bool? solanaEnabled) => super.noSuchMethod( - Invocation.setter( - #solanaEnabled, - solanaEnabled, - ), - returnValueForMissingStub: null, - ); - @override - bool get frostEnabled => (super.noSuchMethod( - Invocation.getter(#frostEnabled), - returnValue: false, - ) as bool); - @override - set frostEnabled(bool? frostEnabled) => super.noSuchMethod( - Invocation.setter( - #frostEnabled, - frostEnabled, - ), - returnValueForMissingStub: null, - ); - @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, diff --git a/test/widget_tests/transaction_card_test.mocks.dart b/test/widget_tests/transaction_card_test.mocks.dart index fc08360ac..e3880f1b6 100644 --- a/test/widget_tests/transaction_card_test.mocks.dart +++ b/test/widget_tests/transaction_card_test.mocks.dart @@ -698,32 +698,6 @@ class MockPrefs extends _i1.Mock implements _i14.Prefs { returnValueForMissingStub: null, ); @override - bool get solanaEnabled => (super.noSuchMethod( - Invocation.getter(#solanaEnabled), - returnValue: false, - ) as bool); - @override - set solanaEnabled(bool? solanaEnabled) => super.noSuchMethod( - Invocation.setter( - #solanaEnabled, - solanaEnabled, - ), - returnValueForMissingStub: null, - ); - @override - bool get frostEnabled => (super.noSuchMethod( - Invocation.getter(#frostEnabled), - returnValue: false, - ) as bool); - @override - set frostEnabled(bool? frostEnabled) => super.noSuchMethod( - Invocation.setter( - #frostEnabled, - frostEnabled, - ), - returnValueForMissingStub: null, - ); - @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false,