What changed, and why it matters
This commit only updates automatically generated test mock files to match recent changes in the real code interfaces. It does not change any production code, user-facing behavior, or security-sensitive logic. The modifications adjust mock return types for a notification-index helper and add a mock for a new HTTP post-bytes method used in tests.
No security action required. Treat as routine test-maintenance noise. If reviewing the broader change set, verify the corresponding non-generated `Prefs` and `HTTP` source changes separately.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff is limited to *.mocks.dart files under test/, which are generated by Mockito’s build_runner. Two categories of regeneration are visible: (1) MockPrefs.incrementCurrentNotificationIndex() return type changed from Future<void> to Future<int> with a stub return value of 0, reflecting an interface signature change in the real Prefs class; (2) MockHTTP gained a postBytes override returning a fake Response, reflecting a new HTTP helper method. No runtime code, build scripts, dependencies, or configuration were altered.
Changed components
test/cached_electrumx_test.mocks.darttest/pages/send_view/send_view_test.mocks.darttest/price_test.mocks.darttest/screen_tests/exchange/exchange_view_test.mocks.darttest/services/change_now/change_now_test.mocks.darttest/services/paynym/paynym_is_api_test.mocks.darttest/widget_tests/managed_favorite_test.mocks.darttest/widget_tests/node_options_sheet_test.mocks.darttest/widget_tests/transaction_card_test.mocks.dartInspect captured patch +102 / −24
diff --git a/test/cached_electrumx_test.mocks.dart b/test/cached_electrumx_test.mocks.dart
index a622b2f..41d6b02 100644
--- a/test/cached_electrumx_test.mocks.dart
+++ b/test/cached_electrumx_test.mocks.dart
@@ -1149,13 +1149,12 @@ class MockPrefs extends _i1.Mock implements _i10.Prefs {
as _i9.Future<void>);
@override
- _i9.Future<void> incrementCurrentNotificationIndex() =>
+ _i9.Future<int> incrementCurrentNotificationIndex() =>
(super.noSuchMethod(
Invocation.method(#incrementCurrentNotificationIndex, []),
- returnValue: _i9.Future<void>.value(),
- returnValueForMissingStub: _i9.Future<void>.value(),
+ returnValue: _i9.Future<int>.value(0),
)
- as _i9.Future<void>);
+ as _i9.Future<int>);
@override
_i9.Future<bool> isExternalCallsSet() =>
diff --git a/test/pages/send_view/send_view_test.mocks.dart b/test/pages/send_view/send_view_test.mocks.dart
index 531bdde..8df8673 100644
--- a/test/pages/send_view/send_view_test.mocks.dart
+++ b/test/pages/send_view/send_view_test.mocks.dart
@@ -1106,13 +1106,12 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
as _i10.Future<void>);
@override
- _i10.Future<void> incrementCurrentNotificationIndex() =>
+ _i10.Future<int> incrementCurrentNotificationIndex() =>
(super.noSuchMethod(
Invocation.method(#incrementCurrentNotificationIndex, []),
- returnValue: _i10.Future<void>.value(),
- returnValueForMissingStub: _i10.Future<void>.value(),
+ returnValue: _i10.Future<int>.value(0),
)
- as _i10.Future<void>);
+ as _i10.Future<int>);
@override
_i10.Future<bool> isExternalCallsSet() =>
diff --git a/test/price_test.mocks.dart b/test/price_test.mocks.dart
index 5a76362..5deee0b 100644
--- a/test/price_test.mocks.dart
+++ b/test/price_test.mocks.dart
@@ -97,6 +97,34 @@ class MockHTTP extends _i1.Mock implements _i2.HTTP {
)
as _i3.Future<_i2.Response>);
+ @override
+ _i3.Future<_i2.Response> postBytes({
+ required Uri? url,
+ Map<String, String>? headers,
+ required List<int>? bodyBytes,
+ required ({_i4.InternetAddress host, int port})? proxyInfo,
+ }) =>
+ (super.noSuchMethod(
+ Invocation.method(#postBytes, [], {
+ #url: url,
+ #headers: headers,
+ #bodyBytes: bodyBytes,
+ #proxyInfo: proxyInfo,
+ }),
+ returnValue: _i3.Future<_i2.Response>.value(
+ _FakeResponse_0(
+ this,
+ Invocation.method(#postBytes, [], {
+ #url: url,
+ #headers: headers,
+ #bodyBytes: bodyBytes,
+ #proxyInfo: proxyInfo,
+ }),
+ ),
+ ),
+ )
+ as _i3.Future<_i2.Response>);
+
@override
_i3.Future<_i2.Response> put({
required Uri? url,
diff --git a/test/screen_tests/exchange/exchange_view_test.mocks.dart b/test/screen_tests/exchange/exchange_view_test.mocks.dart
index 56bee69..95337f8 100644
--- a/test/screen_tests/exchange/exchange_view_test.mocks.dart
+++ b/test/screen_tests/exchange/exchange_view_test.mocks.dart
@@ -595,13 +595,12 @@ class MockPrefs extends _i1.Mock implements _i5.Prefs {
as _i10.Future<void>);
@override
- _i10.Future<void> incrementCurrentNotificationIndex() =>
+ _i10.Future<int> incrementCurrentNotificationIndex() =>
(super.noSuchMethod(
Invocation.method(#incrementCurrentNotificationIndex, []),
- returnValue: _i10.Future<void>.value(),
- returnValueForMissingStub: _i10.Future<void>.value(),
+ returnValue: _i10.Future<int>.value(0),
)
- as _i10.Future<void>);
+ as _i10.Future<int>);
@override
_i10.Future<bool> isExternalCallsSet() =>
diff --git a/test/services/change_now/change_now_test.mocks.dart b/test/services/change_now/change_now_test.mocks.dart
index 2636a70..018cc35 100644
--- a/test/services/change_now/change_now_test.mocks.dart
+++ b/test/services/change_now/change_now_test.mocks.dart
@@ -97,6 +97,34 @@ class MockHTTP extends _i1.Mock implements _i2.HTTP {
)
as _i3.Future<_i2.Response>);
+ @override
+ _i3.Future<_i2.Response> postBytes({
+ required Uri? url,
+ Map<String, String>? headers,
+ required List<int>? bodyBytes,
+ required ({_i4.InternetAddress host, int port})? proxyInfo,
+ }) =>
+ (super.noSuchMethod(
+ Invocation.method(#postBytes, [], {
+ #url: url,
+ #headers: headers,
+ #bodyBytes: bodyBytes,
+ #proxyInfo: proxyInfo,
+ }),
+ returnValue: _i3.Future<_i2.Response>.value(
+ _FakeResponse_0(
+ this,
+ Invocation.method(#postBytes, [], {
+ #url: url,
+ #headers: headers,
+ #bodyBytes: bodyBytes,
+ #proxyInfo: proxyInfo,
+ }),
+ ),
+ ),
+ )
+ as _i3.Future<_i2.Response>);
+
@override
_i3.Future<_i2.Response> put({
required Uri? url,
diff --git a/test/services/paynym/paynym_is_api_test.mocks.dart b/test/services/paynym/paynym_is_api_test.mocks.dart
index 2d46a6c..80e427f 100644
--- a/test/services/paynym/paynym_is_api_test.mocks.dart
+++ b/test/services/paynym/paynym_is_api_test.mocks.dart
@@ -97,6 +97,34 @@ class MockHTTP extends _i1.Mock implements _i2.HTTP {
)
as _i3.Future<_i2.Response>);
+ @override
+ _i3.Future<_i2.Response> postBytes({
+ required Uri? url,
+ Map<String, String>? headers,
+ required List<int>? bodyBytes,
+ required ({_i4.InternetAddress host, int port})? proxyInfo,
+ }) =>
+ (super.noSuchMethod(
+ Invocation.method(#postBytes, [], {
+ #url: url,
+ #headers: headers,
+ #bodyBytes: bodyBytes,
+ #proxyInfo: proxyInfo,
+ }),
+ returnValue: _i3.Future<_i2.Response>.value(
+ _FakeResponse_0(
+ this,
+ Invocation.method(#postBytes, [], {
+ #url: url,
+ #headers: headers,
+ #bodyBytes: bodyBytes,
+ #proxyInfo: proxyInfo,
+ }),
+ ),
+ ),
+ )
+ as _i3.Future<_i2.Response>);
+
@override
_i3.Future<_i2.Response> put({
required Uri? url,
diff --git a/test/widget_tests/managed_favorite_test.mocks.dart b/test/widget_tests/managed_favorite_test.mocks.dart
index 517d7e9..f354ad9 100644
--- a/test/widget_tests/managed_favorite_test.mocks.dart
+++ b/test/widget_tests/managed_favorite_test.mocks.dart
@@ -821,13 +821,12 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
as _i10.Future<void>);
@override
- _i10.Future<void> incrementCurrentNotificationIndex() =>
+ _i10.Future<int> incrementCurrentNotificationIndex() =>
(super.noSuchMethod(
Invocation.method(#incrementCurrentNotificationIndex, []),
- returnValue: _i10.Future<void>.value(),
- returnValueForMissingStub: _i10.Future<void>.value(),
+ returnValue: _i10.Future<int>.value(0),
)
- as _i10.Future<void>);
+ as _i10.Future<int>);
@override
_i10.Future<bool> isExternalCallsSet() =>
diff --git a/test/widget_tests/node_options_sheet_test.mocks.dart b/test/widget_tests/node_options_sheet_test.mocks.dart
index 277a6b8..3b2ce90 100644
--- a/test/widget_tests/node_options_sheet_test.mocks.dart
+++ b/test/widget_tests/node_options_sheet_test.mocks.dart
@@ -714,13 +714,12 @@ class MockPrefs extends _i1.Mock implements _i12.Prefs {
as _i10.Future<void>);
@override
- _i10.Future<void> incrementCurrentNotificationIndex() =>
+ _i10.Future<int> incrementCurrentNotificationIndex() =>
(super.noSuchMethod(
Invocation.method(#incrementCurrentNotificationIndex, []),
- returnValue: _i10.Future<void>.value(),
- returnValueForMissingStub: _i10.Future<void>.value(),
+ returnValue: _i10.Future<int>.value(0),
)
- as _i10.Future<void>);
+ as _i10.Future<int>);
@override
_i10.Future<bool> isExternalCallsSet() =>
diff --git a/test/widget_tests/transaction_card_test.mocks.dart b/test/widget_tests/transaction_card_test.mocks.dart
index 3db3e70..a0a6dd3 100644
--- a/test/widget_tests/transaction_card_test.mocks.dart
+++ b/test/widget_tests/transaction_card_test.mocks.dart
@@ -789,13 +789,12 @@ class MockPrefs extends _i1.Mock implements _i13.Prefs {
as _i10.Future<void>);
@override
- _i10.Future<void> incrementCurrentNotificationIndex() =>
+ _i10.Future<int> incrementCurrentNotificationIndex() =>
(super.noSuchMethod(
Invocation.method(#incrementCurrentNotificationIndex, []),
- returnValue: _i10.Future<void>.value(),
- returnValueForMissingStub: _i10.Future<void>.value(),
+ returnValue: _i10.Future<int>.value(0),
)
- as _i10.Future<void>);
+ as _i10.Future<int>);
@override
_i10.Future<bool> isExternalCallsSet() =>
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.