mirror of
https://github.com/wger-project/flutter.git
synced 2026-02-18 23:42:00 +01:00
103 lines
4.1 KiB
Dart
103 lines
4.1 KiB
Dart
// Mocks generated by Mockito 5.0.5 from annotations
|
|
// in wger/test/base_provider_test.dart.
|
|
// Do not manually edit this file.
|
|
|
|
import 'dart:async' as _i6;
|
|
import 'dart:convert' as _i7;
|
|
import 'dart:typed_data' as _i3;
|
|
|
|
import 'package:http/src/base_request.dart' as _i8;
|
|
import 'package:http/src/client.dart' as _i5;
|
|
import 'package:http/src/response.dart' as _i2;
|
|
import 'package:http/src/streamed_response.dart' as _i4;
|
|
import 'package:mockito/mockito.dart' as _i1;
|
|
|
|
// ignore_for_file: comment_references
|
|
// ignore_for_file: unnecessary_parenthesis
|
|
|
|
class _FakeResponse extends _i1.Fake implements _i2.Response {}
|
|
|
|
class _FakeUint8List extends _i1.Fake implements _i3.Uint8List {}
|
|
|
|
class _FakeStreamedResponse extends _i1.Fake implements _i4.StreamedResponse {}
|
|
|
|
/// A class which mocks [Client].
|
|
///
|
|
/// See the documentation for Mockito's code generation for more information.
|
|
class MockClient extends _i1.Mock implements _i5.Client {
|
|
MockClient() {
|
|
_i1.throwOnMissingStub(this);
|
|
}
|
|
|
|
@override
|
|
_i6.Future<_i2.Response> head(Uri? url, {Map<String, String>? headers}) =>
|
|
(super.noSuchMethod(Invocation.method(#head, [url], {#headers: headers}),
|
|
returnValue: Future<_i2.Response>.value(_FakeResponse()))
|
|
as _i6.Future<_i2.Response>);
|
|
@override
|
|
_i6.Future<_i2.Response> get(Uri? url, {Map<String, String>? headers}) =>
|
|
(super.noSuchMethod(Invocation.method(#get, [url], {#headers: headers}),
|
|
returnValue: Future<_i2.Response>.value(_FakeResponse()))
|
|
as _i6.Future<_i2.Response>);
|
|
@override
|
|
_i6.Future<_i2.Response> post(Uri? url,
|
|
{Map<String, String>? headers,
|
|
Object? body,
|
|
_i7.Encoding? encoding}) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(#post, [url],
|
|
{#headers: headers, #body: body, #encoding: encoding}),
|
|
returnValue: Future<_i2.Response>.value(_FakeResponse()))
|
|
as _i6.Future<_i2.Response>);
|
|
@override
|
|
_i6.Future<_i2.Response> put(Uri? url,
|
|
{Map<String, String>? headers,
|
|
Object? body,
|
|
_i7.Encoding? encoding}) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(#put, [url],
|
|
{#headers: headers, #body: body, #encoding: encoding}),
|
|
returnValue: Future<_i2.Response>.value(_FakeResponse()))
|
|
as _i6.Future<_i2.Response>);
|
|
@override
|
|
_i6.Future<_i2.Response> patch(Uri? url,
|
|
{Map<String, String>? headers,
|
|
Object? body,
|
|
_i7.Encoding? encoding}) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(#patch, [url],
|
|
{#headers: headers, #body: body, #encoding: encoding}),
|
|
returnValue: Future<_i2.Response>.value(_FakeResponse()))
|
|
as _i6.Future<_i2.Response>);
|
|
@override
|
|
_i6.Future<_i2.Response> delete(Uri? url,
|
|
{Map<String, String>? headers,
|
|
Object? body,
|
|
_i7.Encoding? encoding}) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(#delete, [url],
|
|
{#headers: headers, #body: body, #encoding: encoding}),
|
|
returnValue: Future<_i2.Response>.value(_FakeResponse()))
|
|
as _i6.Future<_i2.Response>);
|
|
@override
|
|
_i6.Future<String> read(Uri? url, {Map<String, String>? headers}) =>
|
|
(super.noSuchMethod(Invocation.method(#read, [url], {#headers: headers}),
|
|
returnValue: Future<String>.value('')) as _i6.Future<String>);
|
|
@override
|
|
_i6.Future<_i3.Uint8List> readBytes(Uri? url,
|
|
{Map<String, String>? headers}) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(#readBytes, [url], {#headers: headers}),
|
|
returnValue: Future<_i3.Uint8List>.value(_FakeUint8List()))
|
|
as _i6.Future<_i3.Uint8List>);
|
|
@override
|
|
_i6.Future<_i4.StreamedResponse> send(_i8.BaseRequest? request) =>
|
|
(super.noSuchMethod(Invocation.method(#send, [request]),
|
|
returnValue:
|
|
Future<_i4.StreamedResponse>.value(_FakeStreamedResponse()))
|
|
as _i6.Future<_i4.StreamedResponse>);
|
|
@override
|
|
void close() => super.noSuchMethod(Invocation.method(#close, []),
|
|
returnValueForMissingStub: null);
|
|
}
|