Line data Source code
1 : // Mocks generated by Mockito 5.0.16 from annotations
2 : // in redfire_test/src/test-doubles/http/mocks/http_test_doubles.dart.
3 : // Do not manually edit this file.
4 :
5 : import 'dart:async' as _i5;
6 : import 'dart:convert' as _i6;
7 : import 'dart:typed_data' as _i7;
8 :
9 : import 'package:http/src/base_request.dart' as _i8;
10 : import 'package:http/src/client.dart' as _i4;
11 : import 'package:http/src/response.dart' as _i2;
12 : import 'package:http/src/streamed_response.dart' as _i3;
13 : import 'package:mockito/mockito.dart' as _i1;
14 :
15 : // ignore_for_file: avoid_redundant_argument_values
16 : // ignore_for_file: avoid_setters_without_getters
17 : // ignore_for_file: comment_references
18 : // ignore_for_file: implementation_imports
19 : // ignore_for_file: invalid_use_of_visible_for_testing_member
20 : // ignore_for_file: prefer_const_constructors
21 : // ignore_for_file: unnecessary_parenthesis
22 : // ignore_for_file: camel_case_types
23 :
24 : class _FakeResponse_0 extends _i1.Fake implements _i2.Response {}
25 :
26 : class _FakeStreamedResponse_1 extends _i1.Fake implements _i3.StreamedResponse {
27 : }
28 :
29 : /// A class which mocks [Client].
30 : ///
31 : /// See the documentation for Mockito's code generation for more information.
32 : class MockClient extends _i1.Mock implements _i4.Client {
33 0 : MockClient() {
34 0 : _i1.throwOnMissingStub(this);
35 : }
36 :
37 0 : @override
38 : _i5.Future<_i2.Response> head(Uri? url, {Map<String, String>? headers}) =>
39 0 : (super.noSuchMethod(Invocation.method(#head, [url], {#headers: headers}),
40 0 : returnValue: Future<_i2.Response>.value(_FakeResponse_0()))
41 : as _i5.Future<_i2.Response>);
42 0 : @override
43 : _i5.Future<_i2.Response> get(Uri? url, {Map<String, String>? headers}) =>
44 0 : (super.noSuchMethod(Invocation.method(#get, [url], {#headers: headers}),
45 0 : returnValue: Future<_i2.Response>.value(_FakeResponse_0()))
46 : as _i5.Future<_i2.Response>);
47 0 : @override
48 : _i5.Future<_i2.Response> post(Uri? url,
49 : {Map<String, String>? headers,
50 : Object? body,
51 : _i6.Encoding? encoding}) =>
52 0 : (super.noSuchMethod(
53 0 : Invocation.method(#post, [url],
54 0 : {#headers: headers, #body: body, #encoding: encoding}),
55 0 : returnValue: Future<_i2.Response>.value(_FakeResponse_0()))
56 : as _i5.Future<_i2.Response>);
57 0 : @override
58 : _i5.Future<_i2.Response> put(Uri? url,
59 : {Map<String, String>? headers,
60 : Object? body,
61 : _i6.Encoding? encoding}) =>
62 0 : (super.noSuchMethod(
63 0 : Invocation.method(#put, [url],
64 0 : {#headers: headers, #body: body, #encoding: encoding}),
65 0 : returnValue: Future<_i2.Response>.value(_FakeResponse_0()))
66 : as _i5.Future<_i2.Response>);
67 0 : @override
68 : _i5.Future<_i2.Response> patch(Uri? url,
69 : {Map<String, String>? headers,
70 : Object? body,
71 : _i6.Encoding? encoding}) =>
72 0 : (super.noSuchMethod(
73 0 : Invocation.method(#patch, [url],
74 0 : {#headers: headers, #body: body, #encoding: encoding}),
75 0 : returnValue: Future<_i2.Response>.value(_FakeResponse_0()))
76 : as _i5.Future<_i2.Response>);
77 0 : @override
78 : _i5.Future<_i2.Response> delete(Uri? url,
79 : {Map<String, String>? headers,
80 : Object? body,
81 : _i6.Encoding? encoding}) =>
82 0 : (super.noSuchMethod(
83 0 : Invocation.method(#delete, [url],
84 0 : {#headers: headers, #body: body, #encoding: encoding}),
85 0 : returnValue: Future<_i2.Response>.value(_FakeResponse_0()))
86 : as _i5.Future<_i2.Response>);
87 0 : @override
88 : _i5.Future<String> read(Uri? url, {Map<String, String>? headers}) =>
89 0 : (super.noSuchMethod(Invocation.method(#read, [url], {#headers: headers}),
90 0 : returnValue: Future<String>.value('')) as _i5.Future<String>);
91 0 : @override
92 : _i5.Future<_i7.Uint8List> readBytes(Uri? url,
93 : {Map<String, String>? headers}) =>
94 0 : (super.noSuchMethod(
95 0 : Invocation.method(#readBytes, [url], {#headers: headers}),
96 0 : returnValue: Future<_i7.Uint8List>.value(_i7.Uint8List(0)))
97 : as _i5.Future<_i7.Uint8List>);
98 0 : @override
99 : _i5.Future<_i3.StreamedResponse> send(_i8.BaseRequest? request) =>
100 0 : (super.noSuchMethod(Invocation.method(#send, [request]),
101 : returnValue:
102 0 : Future<_i3.StreamedResponse>.value(_FakeStreamedResponse_1()))
103 : as _i5.Future<_i3.StreamedResponse>);
104 0 : @override
105 0 : void close() => super.noSuchMethod(Invocation.method(#close, []),
106 : returnValueForMissingStub: null);
107 0 : @override
108 0 : String toString() => super.toString();
109 : }
|