From c4bc6bef0ede03ab9387787d9d53df62dd93d55c Mon Sep 17 00:00:00 2001 From: Roland Geider Date: Thu, 1 May 2025 13:35:01 +0200 Subject: [PATCH] Commit generated files --- .../measurement_provider_test.mocks.dart | 147 +++++++++++++----- test/user/provider_test.mocks.dart | 147 +++++++++++++----- test/weight/weight_provider_test.mocks.dart | 147 +++++++++++++----- 3 files changed, 336 insertions(+), 105 deletions(-) diff --git a/test/measurements/measurement_provider_test.mocks.dart b/test/measurements/measurement_provider_test.mocks.dart index 830a4440..8ab034fb 100644 --- a/test/measurements/measurement_provider_test.mocks.dart +++ b/test/measurements/measurement_provider_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.4.5 from annotations +// Mocks generated by Mockito 5.4.6 from annotations // in wger/test/measurements/measurement_provider_test.dart. // Do not manually edit this file. @@ -25,19 +25,43 @@ import 'package:wger/providers/base_provider.dart' as _i4; // ignore_for_file: subtype_of_sealed_class class _FakeAuthProvider_0 extends _i1.SmartFake implements _i2.AuthProvider { - _FakeAuthProvider_0(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); + _FakeAuthProvider_0( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); } class _FakeClient_1 extends _i1.SmartFake implements _i3.Client { - _FakeClient_1(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); + _FakeClient_1( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); } class _FakeUri_2 extends _i1.SmartFake implements Uri { - _FakeUri_2(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); + _FakeUri_2( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); } class _FakeResponse_3 extends _i1.SmartFake implements _i3.Response { - _FakeResponse_3(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); + _FakeResponse_3( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); } /// A class which mocks [WgerBaseProvider]. @@ -51,32 +75,46 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { @override _i2.AuthProvider get auth => (super.noSuchMethod( Invocation.getter(#auth), - returnValue: _FakeAuthProvider_0(this, Invocation.getter(#auth)), + returnValue: _FakeAuthProvider_0( + this, + Invocation.getter(#auth), + ), ) as _i2.AuthProvider); - @override - set auth(_i2.AuthProvider? _auth) => super.noSuchMethod( - Invocation.setter(#auth, _auth), - returnValueForMissingStub: null, - ); - @override _i3.Client get client => (super.noSuchMethod( Invocation.getter(#client), - returnValue: _FakeClient_1(this, Invocation.getter(#client)), + returnValue: _FakeClient_1( + this, + Invocation.getter(#client), + ), ) as _i3.Client); + @override + set auth(_i2.AuthProvider? _auth) => super.noSuchMethod( + Invocation.setter( + #auth, + _auth, + ), + returnValueForMissingStub: null, + ); + @override set client(_i3.Client? _client) => super.noSuchMethod( - Invocation.setter(#client, _client), + Invocation.setter( + #client, + _client, + ), returnValueForMissingStub: null, ); @override Map getDefaultHeaders({bool? includeAuth = false}) => (super.noSuchMethod( - Invocation.method(#getDefaultHeaders, [], { - #includeAuth: includeAuth, - }), + Invocation.method( + #getDefaultHeaders, + [], + {#includeAuth: includeAuth}, + ), returnValue: {}, ) as Map); @@ -91,37 +129,58 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { Invocation.method( #makeUrl, [path], - {#id: id, #objectMethod: objectMethod, #query: query}, + { + #id: id, + #objectMethod: objectMethod, + #query: query, + }, ), returnValue: _FakeUri_2( this, Invocation.method( #makeUrl, [path], - {#id: id, #objectMethod: objectMethod, #query: query}, + { + #id: id, + #objectMethod: objectMethod, + #query: query, + }, ), ), ) as Uri); @override _i5.Future fetch(Uri? uri) => (super.noSuchMethod( - Invocation.method(#fetch, [uri]), + Invocation.method( + #fetch, + [uri], + ), returnValue: _i5.Future.value(), ) as _i5.Future); @override _i5.Future> fetchPaginated(Uri? uri) => (super.noSuchMethod( - Invocation.method(#fetchPaginated, [uri]), + Invocation.method( + #fetchPaginated, + [uri], + ), returnValue: _i5.Future>.value([]), ) as _i5.Future>); @override - _i5.Future> post(Map? data, Uri? uri) => + _i5.Future> post( + Map? data, + Uri? uri, + ) => (super.noSuchMethod( - Invocation.method(#post, [data, uri]), - returnValue: _i5.Future>.value( - {}, + Invocation.method( + #post, + [ + data, + uri, + ], ), + returnValue: _i5.Future>.value({}), ) as _i5.Future>); @override @@ -130,20 +189,38 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { Uri? uri, ) => (super.noSuchMethod( - Invocation.method(#patch, [data, uri]), - returnValue: _i5.Future>.value( - {}, + Invocation.method( + #patch, + [ + data, + uri, + ], ), + returnValue: _i5.Future>.value({}), ) as _i5.Future>); @override - _i5.Future<_i3.Response> deleteRequest(String? url, int? id) => (super.noSuchMethod( - Invocation.method(#deleteRequest, [url, id]), - returnValue: _i5.Future<_i3.Response>.value( - _FakeResponse_3( - this, - Invocation.method(#deleteRequest, [url, id]), - ), + _i5.Future<_i3.Response> deleteRequest( + String? url, + int? id, + ) => + (super.noSuchMethod( + Invocation.method( + #deleteRequest, + [ + url, + id, + ], ), + returnValue: _i5.Future<_i3.Response>.value(_FakeResponse_3( + this, + Invocation.method( + #deleteRequest, + [ + url, + id, + ], + ), + )), ) as _i5.Future<_i3.Response>); } diff --git a/test/user/provider_test.mocks.dart b/test/user/provider_test.mocks.dart index aa49e069..ae6a8560 100644 --- a/test/user/provider_test.mocks.dart +++ b/test/user/provider_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.4.5 from annotations +// Mocks generated by Mockito 5.4.6 from annotations // in wger/test/user/provider_test.dart. // Do not manually edit this file. @@ -25,19 +25,43 @@ import 'package:wger/providers/base_provider.dart' as _i4; // ignore_for_file: subtype_of_sealed_class class _FakeAuthProvider_0 extends _i1.SmartFake implements _i2.AuthProvider { - _FakeAuthProvider_0(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); + _FakeAuthProvider_0( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); } class _FakeClient_1 extends _i1.SmartFake implements _i3.Client { - _FakeClient_1(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); + _FakeClient_1( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); } class _FakeUri_2 extends _i1.SmartFake implements Uri { - _FakeUri_2(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); + _FakeUri_2( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); } class _FakeResponse_3 extends _i1.SmartFake implements _i3.Response { - _FakeResponse_3(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); + _FakeResponse_3( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); } /// A class which mocks [WgerBaseProvider]. @@ -51,32 +75,46 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { @override _i2.AuthProvider get auth => (super.noSuchMethod( Invocation.getter(#auth), - returnValue: _FakeAuthProvider_0(this, Invocation.getter(#auth)), + returnValue: _FakeAuthProvider_0( + this, + Invocation.getter(#auth), + ), ) as _i2.AuthProvider); - @override - set auth(_i2.AuthProvider? _auth) => super.noSuchMethod( - Invocation.setter(#auth, _auth), - returnValueForMissingStub: null, - ); - @override _i3.Client get client => (super.noSuchMethod( Invocation.getter(#client), - returnValue: _FakeClient_1(this, Invocation.getter(#client)), + returnValue: _FakeClient_1( + this, + Invocation.getter(#client), + ), ) as _i3.Client); + @override + set auth(_i2.AuthProvider? _auth) => super.noSuchMethod( + Invocation.setter( + #auth, + _auth, + ), + returnValueForMissingStub: null, + ); + @override set client(_i3.Client? _client) => super.noSuchMethod( - Invocation.setter(#client, _client), + Invocation.setter( + #client, + _client, + ), returnValueForMissingStub: null, ); @override Map getDefaultHeaders({bool? includeAuth = false}) => (super.noSuchMethod( - Invocation.method(#getDefaultHeaders, [], { - #includeAuth: includeAuth, - }), + Invocation.method( + #getDefaultHeaders, + [], + {#includeAuth: includeAuth}, + ), returnValue: {}, ) as Map); @@ -91,37 +129,58 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { Invocation.method( #makeUrl, [path], - {#id: id, #objectMethod: objectMethod, #query: query}, + { + #id: id, + #objectMethod: objectMethod, + #query: query, + }, ), returnValue: _FakeUri_2( this, Invocation.method( #makeUrl, [path], - {#id: id, #objectMethod: objectMethod, #query: query}, + { + #id: id, + #objectMethod: objectMethod, + #query: query, + }, ), ), ) as Uri); @override _i5.Future fetch(Uri? uri) => (super.noSuchMethod( - Invocation.method(#fetch, [uri]), + Invocation.method( + #fetch, + [uri], + ), returnValue: _i5.Future.value(), ) as _i5.Future); @override _i5.Future> fetchPaginated(Uri? uri) => (super.noSuchMethod( - Invocation.method(#fetchPaginated, [uri]), + Invocation.method( + #fetchPaginated, + [uri], + ), returnValue: _i5.Future>.value([]), ) as _i5.Future>); @override - _i5.Future> post(Map? data, Uri? uri) => + _i5.Future> post( + Map? data, + Uri? uri, + ) => (super.noSuchMethod( - Invocation.method(#post, [data, uri]), - returnValue: _i5.Future>.value( - {}, + Invocation.method( + #post, + [ + data, + uri, + ], ), + returnValue: _i5.Future>.value({}), ) as _i5.Future>); @override @@ -130,20 +189,38 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { Uri? uri, ) => (super.noSuchMethod( - Invocation.method(#patch, [data, uri]), - returnValue: _i5.Future>.value( - {}, + Invocation.method( + #patch, + [ + data, + uri, + ], ), + returnValue: _i5.Future>.value({}), ) as _i5.Future>); @override - _i5.Future<_i3.Response> deleteRequest(String? url, int? id) => (super.noSuchMethod( - Invocation.method(#deleteRequest, [url, id]), - returnValue: _i5.Future<_i3.Response>.value( - _FakeResponse_3( - this, - Invocation.method(#deleteRequest, [url, id]), - ), + _i5.Future<_i3.Response> deleteRequest( + String? url, + int? id, + ) => + (super.noSuchMethod( + Invocation.method( + #deleteRequest, + [ + url, + id, + ], ), + returnValue: _i5.Future<_i3.Response>.value(_FakeResponse_3( + this, + Invocation.method( + #deleteRequest, + [ + url, + id, + ], + ), + )), ) as _i5.Future<_i3.Response>); } diff --git a/test/weight/weight_provider_test.mocks.dart b/test/weight/weight_provider_test.mocks.dart index 7b1bd564..0e636f43 100644 --- a/test/weight/weight_provider_test.mocks.dart +++ b/test/weight/weight_provider_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.4.5 from annotations +// Mocks generated by Mockito 5.4.6 from annotations // in wger/test/weight/weight_provider_test.dart. // Do not manually edit this file. @@ -25,19 +25,43 @@ import 'package:wger/providers/base_provider.dart' as _i4; // ignore_for_file: subtype_of_sealed_class class _FakeAuthProvider_0 extends _i1.SmartFake implements _i2.AuthProvider { - _FakeAuthProvider_0(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); + _FakeAuthProvider_0( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); } class _FakeClient_1 extends _i1.SmartFake implements _i3.Client { - _FakeClient_1(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); + _FakeClient_1( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); } class _FakeUri_2 extends _i1.SmartFake implements Uri { - _FakeUri_2(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); + _FakeUri_2( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); } class _FakeResponse_3 extends _i1.SmartFake implements _i3.Response { - _FakeResponse_3(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); + _FakeResponse_3( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); } /// A class which mocks [WgerBaseProvider]. @@ -51,32 +75,46 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { @override _i2.AuthProvider get auth => (super.noSuchMethod( Invocation.getter(#auth), - returnValue: _FakeAuthProvider_0(this, Invocation.getter(#auth)), + returnValue: _FakeAuthProvider_0( + this, + Invocation.getter(#auth), + ), ) as _i2.AuthProvider); - @override - set auth(_i2.AuthProvider? _auth) => super.noSuchMethod( - Invocation.setter(#auth, _auth), - returnValueForMissingStub: null, - ); - @override _i3.Client get client => (super.noSuchMethod( Invocation.getter(#client), - returnValue: _FakeClient_1(this, Invocation.getter(#client)), + returnValue: _FakeClient_1( + this, + Invocation.getter(#client), + ), ) as _i3.Client); + @override + set auth(_i2.AuthProvider? _auth) => super.noSuchMethod( + Invocation.setter( + #auth, + _auth, + ), + returnValueForMissingStub: null, + ); + @override set client(_i3.Client? _client) => super.noSuchMethod( - Invocation.setter(#client, _client), + Invocation.setter( + #client, + _client, + ), returnValueForMissingStub: null, ); @override Map getDefaultHeaders({bool? includeAuth = false}) => (super.noSuchMethod( - Invocation.method(#getDefaultHeaders, [], { - #includeAuth: includeAuth, - }), + Invocation.method( + #getDefaultHeaders, + [], + {#includeAuth: includeAuth}, + ), returnValue: {}, ) as Map); @@ -91,37 +129,58 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { Invocation.method( #makeUrl, [path], - {#id: id, #objectMethod: objectMethod, #query: query}, + { + #id: id, + #objectMethod: objectMethod, + #query: query, + }, ), returnValue: _FakeUri_2( this, Invocation.method( #makeUrl, [path], - {#id: id, #objectMethod: objectMethod, #query: query}, + { + #id: id, + #objectMethod: objectMethod, + #query: query, + }, ), ), ) as Uri); @override _i5.Future fetch(Uri? uri) => (super.noSuchMethod( - Invocation.method(#fetch, [uri]), + Invocation.method( + #fetch, + [uri], + ), returnValue: _i5.Future.value(), ) as _i5.Future); @override _i5.Future> fetchPaginated(Uri? uri) => (super.noSuchMethod( - Invocation.method(#fetchPaginated, [uri]), + Invocation.method( + #fetchPaginated, + [uri], + ), returnValue: _i5.Future>.value([]), ) as _i5.Future>); @override - _i5.Future> post(Map? data, Uri? uri) => + _i5.Future> post( + Map? data, + Uri? uri, + ) => (super.noSuchMethod( - Invocation.method(#post, [data, uri]), - returnValue: _i5.Future>.value( - {}, + Invocation.method( + #post, + [ + data, + uri, + ], ), + returnValue: _i5.Future>.value({}), ) as _i5.Future>); @override @@ -130,20 +189,38 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { Uri? uri, ) => (super.noSuchMethod( - Invocation.method(#patch, [data, uri]), - returnValue: _i5.Future>.value( - {}, + Invocation.method( + #patch, + [ + data, + uri, + ], ), + returnValue: _i5.Future>.value({}), ) as _i5.Future>); @override - _i5.Future<_i3.Response> deleteRequest(String? url, int? id) => (super.noSuchMethod( - Invocation.method(#deleteRequest, [url, id]), - returnValue: _i5.Future<_i3.Response>.value( - _FakeResponse_3( - this, - Invocation.method(#deleteRequest, [url, id]), - ), + _i5.Future<_i3.Response> deleteRequest( + String? url, + int? id, + ) => + (super.noSuchMethod( + Invocation.method( + #deleteRequest, + [ + url, + id, + ], ), + returnValue: _i5.Future<_i3.Response>.value(_FakeResponse_3( + this, + Invocation.method( + #deleteRequest, + [ + url, + id, + ], + ), + )), ) as _i5.Future<_i3.Response>); }