mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-18 16:44:32 +00:00
update mocks and a couple tests
This commit is contained in:
parent
b30f1db45b
commit
855767ba54
7 changed files with 80 additions and 0 deletions
|
@ -652,6 +652,19 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
bool get enableCoinControl => (super.noSuchMethod(
|
||||
Invocation.getter(#enableCoinControl),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
@override
|
||||
set enableCoinControl(bool? enableCoinControl) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
#enableCoinControl,
|
||||
enableCoinControl,
|
||||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
bool get hasListeners => (super.noSuchMethod(
|
||||
Invocation.getter(#hasListeners),
|
||||
returnValue: false,
|
||||
|
|
|
@ -373,6 +373,19 @@ class MockPrefs extends _i1.Mock implements _i4.Prefs {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
bool get enableCoinControl => (super.noSuchMethod(
|
||||
Invocation.getter(#enableCoinControl),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
@override
|
||||
set enableCoinControl(bool? enableCoinControl) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
#enableCoinControl,
|
||||
enableCoinControl,
|
||||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
bool get hasListeners => (super.noSuchMethod(
|
||||
Invocation.getter(#hasListeners),
|
||||
returnValue: false,
|
||||
|
|
|
@ -52,6 +52,7 @@ void main() {
|
|||
|
||||
when(mockLocaleService.locale).thenAnswer((_) => "en_US");
|
||||
when(mockPrefs.currency).thenAnswer((_) => "USD");
|
||||
when(mockPrefs.enableCoinControl).thenAnswer((_) => false);
|
||||
when(wallet.validateAddress("send to address"))
|
||||
.thenAnswer((realInvocation) => true);
|
||||
|
||||
|
@ -114,6 +115,7 @@ void main() {
|
|||
|
||||
when(mockLocaleService.locale).thenAnswer((_) => "en_US");
|
||||
when(mockPrefs.currency).thenAnswer((_) => "USD");
|
||||
when(mockPrefs.enableCoinControl).thenAnswer((_) => false);
|
||||
when(wallet.validateAddress("send to address"))
|
||||
.thenAnswer((realInvocation) => false);
|
||||
|
||||
|
|
|
@ -2535,6 +2535,19 @@ class MockPrefs extends _i1.Mock implements _i23.Prefs {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
bool get enableCoinControl => (super.noSuchMethod(
|
||||
Invocation.getter(#enableCoinControl),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
@override
|
||||
set enableCoinControl(bool? enableCoinControl) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
#enableCoinControl,
|
||||
enableCoinControl,
|
||||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
bool get hasListeners => (super.noSuchMethod(
|
||||
Invocation.getter(#hasListeners),
|
||||
returnValue: false,
|
||||
|
|
|
@ -322,6 +322,19 @@ class MockPrefs extends _i1.Mock implements _i3.Prefs {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
bool get enableCoinControl => (super.noSuchMethod(
|
||||
Invocation.getter(#enableCoinControl),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
@override
|
||||
set enableCoinControl(bool? enableCoinControl) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
#enableCoinControl,
|
||||
enableCoinControl,
|
||||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
bool get hasListeners => (super.noSuchMethod(
|
||||
Invocation.getter(#hasListeners),
|
||||
returnValue: false,
|
||||
|
|
|
@ -561,6 +561,19 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
bool get enableCoinControl => (super.noSuchMethod(
|
||||
Invocation.getter(#enableCoinControl),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
@override
|
||||
set enableCoinControl(bool? enableCoinControl) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
#enableCoinControl,
|
||||
enableCoinControl,
|
||||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
bool get hasListeners => (super.noSuchMethod(
|
||||
Invocation.getter(#hasListeners),
|
||||
returnValue: false,
|
||||
|
|
|
@ -2327,6 +2327,19 @@ class MockPrefs extends _i1.Mock implements _i19.Prefs {
|
|||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
bool get enableCoinControl => (super.noSuchMethod(
|
||||
Invocation.getter(#enableCoinControl),
|
||||
returnValue: false,
|
||||
) as bool);
|
||||
@override
|
||||
set enableCoinControl(bool? enableCoinControl) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
#enableCoinControl,
|
||||
enableCoinControl,
|
||||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
@override
|
||||
bool get hasListeners => (super.noSuchMethod(
|
||||
Invocation.getter(#hasListeners),
|
||||
returnValue: false,
|
||||
|
|
Loading…
Reference in a new issue