update mocks and a couple tests

This commit is contained in:
julian 2023-03-08 16:17:32 -06:00
parent b30f1db45b
commit 855767ba54
7 changed files with 80 additions and 0 deletions

View file

@ -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,

View file

@ -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,

View file

@ -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);

View file

@ -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,

View file

@ -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,

View file

@ -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,

View file

@ -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,