mirror of
https://github.com/wger-project/flutter.git
synced 2026-02-18 00:17:48 +01:00
165 lines
5.1 KiB
Dart
165 lines
5.1 KiB
Dart
// Mocks generated by Mockito 5.4.6 from annotations
|
|
// in wger/test/routine/routine_screen_test.dart.
|
|
// Do not manually edit this file.
|
|
|
|
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
|
import 'dart:async' as _i5;
|
|
|
|
import 'package:http/http.dart' as _i3;
|
|
import 'package:mockito/mockito.dart' as _i1;
|
|
import 'package:wger/providers/auth.dart' as _i2;
|
|
import 'package:wger/providers/base_provider.dart' as _i4;
|
|
|
|
// ignore_for_file: type=lint
|
|
// ignore_for_file: avoid_redundant_argument_values
|
|
// ignore_for_file: avoid_setters_without_getters
|
|
// ignore_for_file: comment_references
|
|
// ignore_for_file: deprecated_member_use
|
|
// ignore_for_file: deprecated_member_use_from_same_package
|
|
// ignore_for_file: implementation_imports
|
|
// ignore_for_file: invalid_use_of_visible_for_testing_member
|
|
// ignore_for_file: must_be_immutable
|
|
// ignore_for_file: prefer_const_constructors
|
|
// ignore_for_file: unnecessary_parenthesis
|
|
// ignore_for_file: camel_case_types
|
|
// 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);
|
|
}
|
|
|
|
class _FakeClient_1 extends _i1.SmartFake implements _i3.Client {
|
|
_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);
|
|
}
|
|
|
|
class _FakeResponse_3 extends _i1.SmartFake implements _i3.Response {
|
|
_FakeResponse_3(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
|
}
|
|
|
|
/// A class which mocks [WgerBaseProvider].
|
|
///
|
|
/// See the documentation for Mockito's code generation for more information.
|
|
class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider {
|
|
MockWgerBaseProvider() {
|
|
_i1.throwOnMissingStub(this);
|
|
}
|
|
|
|
@override
|
|
_i2.AuthProvider get auth =>
|
|
(super.noSuchMethod(
|
|
Invocation.getter(#auth),
|
|
returnValue: _FakeAuthProvider_0(this, Invocation.getter(#auth)),
|
|
)
|
|
as _i2.AuthProvider);
|
|
|
|
@override
|
|
_i3.Client get client =>
|
|
(super.noSuchMethod(
|
|
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),
|
|
returnValueForMissingStub: null,
|
|
);
|
|
|
|
@override
|
|
Map<String, String> getDefaultHeaders({bool? includeAuth = false}) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(#getDefaultHeaders, [], {
|
|
#includeAuth: includeAuth,
|
|
}),
|
|
returnValue: <String, String>{},
|
|
)
|
|
as Map<String, String>);
|
|
|
|
@override
|
|
Uri makeUrl(
|
|
String? path, {
|
|
int? id,
|
|
String? objectMethod,
|
|
Map<String, dynamic>? query,
|
|
}) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#makeUrl,
|
|
[path],
|
|
{#id: id, #objectMethod: objectMethod, #query: query},
|
|
),
|
|
returnValue: _FakeUri_2(
|
|
this,
|
|
Invocation.method(
|
|
#makeUrl,
|
|
[path],
|
|
{#id: id, #objectMethod: objectMethod, #query: query},
|
|
),
|
|
),
|
|
)
|
|
as Uri);
|
|
|
|
@override
|
|
_i5.Future<dynamic> fetch(Uri? uri) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(#fetch, [uri]),
|
|
returnValue: _i5.Future<dynamic>.value(),
|
|
)
|
|
as _i5.Future<dynamic>);
|
|
|
|
@override
|
|
_i5.Future<List<dynamic>> fetchPaginated(Uri? uri) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(#fetchPaginated, [uri]),
|
|
returnValue: _i5.Future<List<dynamic>>.value(<dynamic>[]),
|
|
)
|
|
as _i5.Future<List<dynamic>>);
|
|
|
|
@override
|
|
_i5.Future<Map<String, dynamic>> post(Map<String, dynamic>? data, Uri? uri) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(#post, [data, uri]),
|
|
returnValue: _i5.Future<Map<String, dynamic>>.value(
|
|
<String, dynamic>{},
|
|
),
|
|
)
|
|
as _i5.Future<Map<String, dynamic>>);
|
|
|
|
@override
|
|
_i5.Future<Map<String, dynamic>> patch(
|
|
Map<String, dynamic>? data,
|
|
Uri? uri,
|
|
) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(#patch, [data, uri]),
|
|
returnValue: _i5.Future<Map<String, dynamic>>.value(
|
|
<String, dynamic>{},
|
|
),
|
|
)
|
|
as _i5.Future<Map<String, dynamic>>);
|
|
|
|
@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]),
|
|
),
|
|
),
|
|
)
|
|
as _i5.Future<_i3.Response>);
|
|
}
|