update mocks

This commit is contained in:
julian 2023-11-15 09:09:54 -06:00
parent cd50b64683
commit 943819cf99
8 changed files with 210 additions and 148 deletions

View file

@ -9,13 +9,12 @@ import 'dart:ui' as _i11;
import 'package:decimal/decimal.dart' as _i2;
import 'package:mockito/mockito.dart' as _i1;
import 'package:stackwallet/electrumx_rpc/electrumx_client.dart' as _i4;
import 'package:stackwallet/services/mixins/fusion_wallet_interface.dart'
as _i3;
import 'package:stackwallet/utilities/amount/amount_unit.dart' as _i9;
import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i8;
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i10;
import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i7;
import 'package:stackwallet/utilities/prefs.dart' as _i6;
import 'package:stackwallet/wallets/wallet/mixins/cash_fusion.dart' as _i3;
// ignore_for_file: type=lint
// ignore_for_file: avoid_redundant_argument_values
@ -792,22 +791,6 @@ class MockPrefs extends _i1.Mock implements _i6.Prefs {
returnValueForMissingStub: null,
);
@override
_i3.FusionInfo get fusionServerInfo => (super.noSuchMethod(
Invocation.getter(#fusionServerInfo),
returnValue: _FakeFusionInfo_2(
this,
Invocation.getter(#fusionServerInfo),
),
) as _i3.FusionInfo);
@override
set fusionServerInfo(_i3.FusionInfo? fusionServerInfo) => super.noSuchMethod(
Invocation.setter(
#fusionServerInfo,
fusionServerInfo,
),
returnValueForMissingStub: null,
);
@override
bool get hasListeners => (super.noSuchMethod(
Invocation.getter(#hasListeners),
returnValue: false,
@ -905,6 +888,35 @@ class MockPrefs extends _i1.Mock implements _i6.Prefs {
returnValueForMissingStub: null,
);
@override
_i3.FusionInfo getFusionServerInfo(_i10.Coin? coin) => (super.noSuchMethod(
Invocation.method(
#getFusionServerInfo,
[coin],
),
returnValue: _FakeFusionInfo_2(
this,
Invocation.method(
#getFusionServerInfo,
[coin],
),
),
) as _i3.FusionInfo);
@override
void setFusionServerInfo(
_i10.Coin? coin,
_i3.FusionInfo? fusionServerInfo,
) =>
super.noSuchMethod(
Invocation.method(
#setFusionServerInfo,
[
coin,
fusionServerInfo,
],
),
returnValueForMissingStub: null,
);
@override
void addListener(_i11.VoidCallback? listener) => super.noSuchMethod(
Invocation.method(
#addListener,

View file

@ -11,14 +11,13 @@ import 'package:mockito/mockito.dart' as _i1;
import 'package:stackwallet/electrumx_rpc/rpc.dart' as _i2;
import 'package:stackwallet/services/event_bus/events/global/tor_connection_status_changed_event.dart'
as _i13;
import 'package:stackwallet/services/mixins/fusion_wallet_interface.dart'
as _i3;
import 'package:stackwallet/services/tor_service.dart' as _i12;
import 'package:stackwallet/utilities/amount/amount_unit.dart' as _i9;
import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i8;
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i10;
import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i7;
import 'package:stackwallet/utilities/prefs.dart' as _i6;
import 'package:stackwallet/wallets/wallet/mixins/cash_fusion.dart' as _i3;
import 'package:tor_ffi_plugin/tor_ffi_plugin.dart' as _i14;
// ignore_for_file: type=lint
@ -534,22 +533,6 @@ class MockPrefs extends _i1.Mock implements _i6.Prefs {
returnValueForMissingStub: null,
);
@override
_i3.FusionInfo get fusionServerInfo => (super.noSuchMethod(
Invocation.getter(#fusionServerInfo),
returnValue: _FakeFusionInfo_2(
this,
Invocation.getter(#fusionServerInfo),
),
) as _i3.FusionInfo);
@override
set fusionServerInfo(_i3.FusionInfo? fusionServerInfo) => super.noSuchMethod(
Invocation.setter(
#fusionServerInfo,
fusionServerInfo,
),
returnValueForMissingStub: null,
);
@override
bool get hasListeners => (super.noSuchMethod(
Invocation.getter(#hasListeners),
returnValue: false,
@ -647,6 +630,35 @@ class MockPrefs extends _i1.Mock implements _i6.Prefs {
returnValueForMissingStub: null,
);
@override
_i3.FusionInfo getFusionServerInfo(_i10.Coin? coin) => (super.noSuchMethod(
Invocation.method(
#getFusionServerInfo,
[coin],
),
returnValue: _FakeFusionInfo_2(
this,
Invocation.method(
#getFusionServerInfo,
[coin],
),
),
) as _i3.FusionInfo);
@override
void setFusionServerInfo(
_i10.Coin? coin,
_i3.FusionInfo? fusionServerInfo,
) =>
super.noSuchMethod(
Invocation.method(
#setFusionServerInfo,
[
coin,
fusionServerInfo,
],
),
returnValueForMissingStub: null,
);
@override
void addListener(_i11.VoidCallback? listener) => super.noSuchMethod(
Invocation.method(
#addListener,

View file

@ -17,8 +17,6 @@ import 'package:stackwallet/models/paymint/fee_object_model.dart' as _i9;
import 'package:stackwallet/networking/http.dart' as _i7;
import 'package:stackwallet/services/coins/coin_service.dart' as _i26;
import 'package:stackwallet/services/locale_service.dart' as _i19;
import 'package:stackwallet/services/mixins/fusion_wallet_interface.dart'
as _i8;
import 'package:stackwallet/services/node_service.dart' as _i2;
import 'package:stackwallet/services/wallets.dart' as _i12;
import 'package:stackwallet/services/wallets_service.dart' as _i16;
@ -33,6 +31,7 @@ import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart'
import 'package:stackwallet/utilities/prefs.dart' as _i15;
import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart'
as _i4;
import 'package:stackwallet/wallets/wallet/mixins/cash_fusion.dart' as _i8;
import 'package:stackwallet/wallets/wallet/wallet.dart' as _i5;
// ignore_for_file: type=lint
@ -1263,22 +1262,6 @@ class MockPrefs extends _i1.Mock implements _i15.Prefs {
returnValueForMissingStub: null,
);
@override
_i8.FusionInfo get fusionServerInfo => (super.noSuchMethod(
Invocation.getter(#fusionServerInfo),
returnValue: _FakeFusionInfo_5(
this,
Invocation.getter(#fusionServerInfo),
),
) as _i8.FusionInfo);
@override
set fusionServerInfo(_i8.FusionInfo? fusionServerInfo) => super.noSuchMethod(
Invocation.setter(
#fusionServerInfo,
fusionServerInfo,
),
returnValueForMissingStub: null,
);
@override
bool get hasListeners => (super.noSuchMethod(
Invocation.getter(#hasListeners),
returnValue: false,
@ -1376,6 +1359,35 @@ class MockPrefs extends _i1.Mock implements _i15.Prefs {
returnValueForMissingStub: null,
);
@override
_i8.FusionInfo getFusionServerInfo(_i13.Coin? coin) => (super.noSuchMethod(
Invocation.method(
#getFusionServerInfo,
[coin],
),
returnValue: _FakeFusionInfo_5(
this,
Invocation.method(
#getFusionServerInfo,
[coin],
),
),
) as _i8.FusionInfo);
@override
void setFusionServerInfo(
_i13.Coin? coin,
_i8.FusionInfo? fusionServerInfo,
) =>
super.noSuchMethod(
Invocation.method(
#setFusionServerInfo,
[
coin,
fusionServerInfo,
],
),
returnValueForMissingStub: null,
);
@override
void addListener(_i17.VoidCallback? listener) => super.noSuchMethod(
Invocation.method(
#addListener,

View file

@ -28,8 +28,6 @@ import 'package:stackwallet/networking/http.dart' as _i3;
import 'package:stackwallet/services/exchange/change_now/change_now_api.dart'
as _i15;
import 'package:stackwallet/services/exchange/exchange_response.dart' as _i4;
import 'package:stackwallet/services/mixins/fusion_wallet_interface.dart'
as _i2;
import 'package:stackwallet/services/trade_notes_service.dart' as _i14;
import 'package:stackwallet/services/trade_service.dart' as _i12;
import 'package:stackwallet/utilities/amount/amount_unit.dart' as _i9;
@ -37,6 +35,7 @@ import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i7;
import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i10;
import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i6;
import 'package:stackwallet/utilities/prefs.dart' as _i5;
import 'package:stackwallet/wallets/wallet/mixins/cash_fusion.dart' as _i2;
// ignore_for_file: type=lint
// ignore_for_file: avoid_redundant_argument_values
@ -454,22 +453,6 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
returnValueForMissingStub: null,
);
@override
_i2.FusionInfo get fusionServerInfo => (super.noSuchMethod(
Invocation.getter(#fusionServerInfo),
returnValue: _FakeFusionInfo_0(
this,
Invocation.getter(#fusionServerInfo),
),
) as _i2.FusionInfo);
@override
set fusionServerInfo(_i2.FusionInfo? fusionServerInfo) => super.noSuchMethod(
Invocation.setter(
#fusionServerInfo,
fusionServerInfo,
),
returnValueForMissingStub: null,
);
@override
bool get hasListeners => (super.noSuchMethod(
Invocation.getter(#hasListeners),
returnValue: false,
@ -567,6 +550,35 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
returnValueForMissingStub: null,
);
@override
_i2.FusionInfo getFusionServerInfo(_i10.Coin? coin) => (super.noSuchMethod(
Invocation.method(
#getFusionServerInfo,
[coin],
),
returnValue: _FakeFusionInfo_0(
this,
Invocation.method(
#getFusionServerInfo,
[coin],
),
),
) as _i2.FusionInfo);
@override
void setFusionServerInfo(
_i10.Coin? coin,
_i2.FusionInfo? fusionServerInfo,
) =>
super.noSuchMethod(
Invocation.method(
#setFusionServerInfo,
[
coin,
fusionServerInfo,
],
),
returnValueForMissingStub: null,
);
@override
void addListener(_i11.VoidCallback? listener) => super.noSuchMethod(
Invocation.method(
#addListener,

View file

@ -660,17 +660,6 @@ class MockMainDB extends _i1.Mock implements _i9.MainDB {
returnValueForMissingStub: _i5.Future<void>.value(),
) as _i5.Future<void>);
@override
_i5.Future<void> deleteWallet({required String? walletId}) =>
(super.noSuchMethod(
Invocation.method(
#deleteWallet,
[],
{#walletId: walletId},
),
returnValue: _i5.Future<void>.value(),
returnValueForMissingStub: _i5.Future<void>.value(),
) as _i5.Future<void>);
@override
List<_i11.ContactEntry> getContactEntries() => (super.noSuchMethod(
Invocation.method(
#getContactEntries,

View file

@ -17,8 +17,6 @@ import 'package:stackwallet/models/paymint/fee_object_model.dart' as _i9;
import 'package:stackwallet/networking/http.dart' as _i6;
import 'package:stackwallet/services/coins/coin_service.dart' as _i26;
import 'package:stackwallet/services/locale_service.dart' as _i24;
import 'package:stackwallet/services/mixins/fusion_wallet_interface.dart'
as _i7;
import 'package:stackwallet/services/node_service.dart' as _i2;
import 'package:stackwallet/services/wallets.dart' as _i12;
import 'package:stackwallet/services/wallets_service.dart' as _i16;
@ -33,6 +31,7 @@ import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart'
import 'package:stackwallet/utilities/prefs.dart' as _i15;
import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart'
as _i4;
import 'package:stackwallet/wallets/wallet/mixins/cash_fusion.dart' as _i7;
import 'package:stackwallet/wallets/wallet/wallet.dart' as _i5;
// ignore_for_file: type=lint
@ -997,22 +996,6 @@ class MockPrefs extends _i1.Mock implements _i15.Prefs {
returnValueForMissingStub: null,
);
@override
_i7.FusionInfo get fusionServerInfo => (super.noSuchMethod(
Invocation.getter(#fusionServerInfo),
returnValue: _FakeFusionInfo_4(
this,
Invocation.getter(#fusionServerInfo),
),
) as _i7.FusionInfo);
@override
set fusionServerInfo(_i7.FusionInfo? fusionServerInfo) => super.noSuchMethod(
Invocation.setter(
#fusionServerInfo,
fusionServerInfo,
),
returnValueForMissingStub: null,
);
@override
bool get hasListeners => (super.noSuchMethod(
Invocation.getter(#hasListeners),
returnValue: false,
@ -1110,6 +1093,35 @@ class MockPrefs extends _i1.Mock implements _i15.Prefs {
returnValueForMissingStub: null,
);
@override
_i7.FusionInfo getFusionServerInfo(_i13.Coin? coin) => (super.noSuchMethod(
Invocation.method(
#getFusionServerInfo,
[coin],
),
returnValue: _FakeFusionInfo_4(
this,
Invocation.method(
#getFusionServerInfo,
[coin],
),
),
) as _i7.FusionInfo);
@override
void setFusionServerInfo(
_i13.Coin? coin,
_i7.FusionInfo? fusionServerInfo,
) =>
super.noSuchMethod(
Invocation.method(
#setFusionServerInfo,
[
coin,
fusionServerInfo,
],
),
returnValueForMissingStub: null,
);
@override
void addListener(_i17.VoidCallback? listener) => super.noSuchMethod(
Invocation.method(
#addListener,

View file

@ -12,8 +12,6 @@ import 'package:stackwallet/db/isar/main_db.dart' as _i3;
import 'package:stackwallet/models/node_model.dart' as _i17;
import 'package:stackwallet/services/event_bus/events/global/tor_connection_status_changed_event.dart'
as _i19;
import 'package:stackwallet/services/mixins/fusion_wallet_interface.dart'
as _i6;
import 'package:stackwallet/services/node_service.dart' as _i2;
import 'package:stackwallet/services/tor_service.dart' as _i18;
import 'package:stackwallet/services/wallets.dart' as _i9;
@ -26,6 +24,7 @@ import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart'
import 'package:stackwallet/utilities/prefs.dart' as _i12;
import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart'
as _i4;
import 'package:stackwallet/wallets/wallet/mixins/cash_fusion.dart' as _i6;
import 'package:stackwallet/wallets/wallet/wallet.dart' as _i5;
import 'package:tor_ffi_plugin/tor_ffi_plugin.dart' as _i20;
@ -613,22 +612,6 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
returnValueForMissingStub: null,
);
@override
_i6.FusionInfo get fusionServerInfo => (super.noSuchMethod(
Invocation.getter(#fusionServerInfo),
returnValue: _FakeFusionInfo_3(
this,
Invocation.getter(#fusionServerInfo),
),
) as _i6.FusionInfo);
@override
set fusionServerInfo(_i6.FusionInfo? fusionServerInfo) => super.noSuchMethod(
Invocation.setter(
#fusionServerInfo,
fusionServerInfo,
),
returnValueForMissingStub: null,
);
@override
bool get hasListeners => (super.noSuchMethod(
Invocation.getter(#hasListeners),
returnValue: false,
@ -726,6 +709,35 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
returnValueForMissingStub: null,
);
@override
_i6.FusionInfo getFusionServerInfo(_i10.Coin? coin) => (super.noSuchMethod(
Invocation.method(
#getFusionServerInfo,
[coin],
),
returnValue: _FakeFusionInfo_3(
this,
Invocation.method(
#getFusionServerInfo,
[coin],
),
),
) as _i6.FusionInfo);
@override
void setFusionServerInfo(
_i10.Coin? coin,
_i6.FusionInfo? fusionServerInfo,
) =>
super.noSuchMethod(
Invocation.method(
#setFusionServerInfo,
[
coin,
fusionServerInfo,
],
),
returnValueForMissingStub: null,
);
@override
void addListener(_i16.VoidCallback? listener) => super.noSuchMethod(
Invocation.method(
#addListener,

View file

@ -26,8 +26,6 @@ import 'package:stackwallet/networking/http.dart' as _i14;
import 'package:stackwallet/services/coins/coin_service.dart' as _i21;
import 'package:stackwallet/services/coins/firo/firo_wallet.dart' as _i23;
import 'package:stackwallet/services/locale_service.dart' as _i25;
import 'package:stackwallet/services/mixins/fusion_wallet_interface.dart'
as _i12;
import 'package:stackwallet/services/node_service.dart' as _i2;
import 'package:stackwallet/services/price_service.dart' as _i30;
import 'package:stackwallet/services/transaction_notification_tracker.dart'
@ -45,6 +43,7 @@ import 'package:stackwallet/utilities/prefs.dart' as _i20;
import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart'
as _i4;
import 'package:stackwallet/wallets/isar/models/wallet_info.dart' as _i35;
import 'package:stackwallet/wallets/wallet/mixins/cash_fusion.dart' as _i12;
import 'package:stackwallet/wallets/wallet/wallet.dart' as _i5;
import 'package:tuple/tuple.dart' as _i13;
@ -2054,22 +2053,6 @@ class MockPrefs extends _i1.Mock implements _i20.Prefs {
returnValueForMissingStub: null,
);
@override
_i12.FusionInfo get fusionServerInfo => (super.noSuchMethod(
Invocation.getter(#fusionServerInfo),
returnValue: _FakeFusionInfo_9(
this,
Invocation.getter(#fusionServerInfo),
),
) as _i12.FusionInfo);
@override
set fusionServerInfo(_i12.FusionInfo? fusionServerInfo) => super.noSuchMethod(
Invocation.setter(
#fusionServerInfo,
fusionServerInfo,
),
returnValueForMissingStub: null,
);
@override
bool get hasListeners => (super.noSuchMethod(
Invocation.getter(#hasListeners),
returnValue: false,
@ -2167,6 +2150,35 @@ class MockPrefs extends _i1.Mock implements _i20.Prefs {
returnValueForMissingStub: null,
);
@override
_i12.FusionInfo getFusionServerInfo(_i17.Coin? coin) => (super.noSuchMethod(
Invocation.method(
#getFusionServerInfo,
[coin],
),
returnValue: _FakeFusionInfo_9(
this,
Invocation.method(
#getFusionServerInfo,
[coin],
),
),
) as _i12.FusionInfo);
@override
void setFusionServerInfo(
_i17.Coin? coin,
_i12.FusionInfo? fusionServerInfo,
) =>
super.noSuchMethod(
Invocation.method(
#setFusionServerInfo,
[
coin,
fusionServerInfo,
],
),
returnValueForMissingStub: null,
);
@override
void addListener(_i26.VoidCallback? listener) => super.noSuchMethod(
Invocation.method(
#addListener,
@ -2489,17 +2501,6 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB {
returnValueForMissingStub: _i18.Future<void>.value(),
) as _i18.Future<void>);
@override
_i18.Future<void> deleteWallet({required String? walletId}) =>
(super.noSuchMethod(
Invocation.method(
#deleteWallet,
[],
{#walletId: walletId},
),
returnValue: _i18.Future<void>.value(),
returnValueForMissingStub: _i18.Future<void>.value(),
) as _i18.Future<void>);
@override
List<_i36.ContactEntry> getContactEntries() => (super.noSuchMethod(
Invocation.method(
#getContactEntries,