|
|
|
@ -1,4 +1,4 @@
|
|
|
|
|
// Mocks generated by Mockito 5.0.13 from annotations
|
|
|
|
|
// Mocks generated by Mockito 5.2.0 from annotations
|
|
|
|
|
// in linting_tool/test/widget_test.dart.
|
|
|
|
|
// Do not manually edit this file.
|
|
|
|
|
|
|
|
|
@ -12,6 +12,7 @@ import 'package:http/src/response.dart' as _i2;
|
|
|
|
|
import 'package:http/src/streamed_response.dart' as _i3;
|
|
|
|
|
import 'package:mockito/mockito.dart' as _i1;
|
|
|
|
|
|
|
|
|
|
// ignore_for_file: type=lint
|
|
|
|
|
// ignore_for_file: avoid_redundant_argument_values
|
|
|
|
|
// ignore_for_file: avoid_setters_without_getters
|
|
|
|
|
// ignore_for_file: comment_references
|
|
|
|
@ -19,10 +20,12 @@ import 'package:mockito/mockito.dart' as _i1;
|
|
|
|
|
// ignore_for_file: invalid_use_of_visible_for_testing_member
|
|
|
|
|
// ignore_for_file: prefer_const_constructors
|
|
|
|
|
// ignore_for_file: unnecessary_parenthesis
|
|
|
|
|
// ignore_for_file: camel_case_types
|
|
|
|
|
|
|
|
|
|
class _FakeResponse extends _i1.Fake implements _i2.Response {}
|
|
|
|
|
class _FakeResponse_0 extends _i1.Fake implements _i2.Response {}
|
|
|
|
|
|
|
|
|
|
class _FakeStreamedResponse extends _i1.Fake implements _i3.StreamedResponse {}
|
|
|
|
|
class _FakeStreamedResponse_1 extends _i1.Fake implements _i3.StreamedResponse {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// A class which mocks [Client].
|
|
|
|
|
///
|
|
|
|
@ -35,12 +38,12 @@ class MockClient extends _i1.Mock implements _i4.Client {
|
|
|
|
|
@override
|
|
|
|
|
_i5.Future<_i2.Response> head(Uri? url, {Map<String, String>? headers}) =>
|
|
|
|
|
(super.noSuchMethod(Invocation.method(#head, [url], {#headers: headers}),
|
|
|
|
|
returnValue: Future<_i2.Response>.value(_FakeResponse()))
|
|
|
|
|
returnValue: Future<_i2.Response>.value(_FakeResponse_0()))
|
|
|
|
|
as _i5.Future<_i2.Response>);
|
|
|
|
|
@override
|
|
|
|
|
_i5.Future<_i2.Response> get(Uri? url, {Map<String, String>? headers}) =>
|
|
|
|
|
(super.noSuchMethod(Invocation.method(#get, [url], {#headers: headers}),
|
|
|
|
|
returnValue: Future<_i2.Response>.value(_FakeResponse()))
|
|
|
|
|
returnValue: Future<_i2.Response>.value(_FakeResponse_0()))
|
|
|
|
|
as _i5.Future<_i2.Response>);
|
|
|
|
|
@override
|
|
|
|
|
_i5.Future<_i2.Response> post(Uri? url,
|
|
|
|
@ -50,7 +53,7 @@ class MockClient extends _i1.Mock implements _i4.Client {
|
|
|
|
|
(super.noSuchMethod(
|
|
|
|
|
Invocation.method(#post, [url],
|
|
|
|
|
{#headers: headers, #body: body, #encoding: encoding}),
|
|
|
|
|
returnValue: Future<_i2.Response>.value(_FakeResponse()))
|
|
|
|
|
returnValue: Future<_i2.Response>.value(_FakeResponse_0()))
|
|
|
|
|
as _i5.Future<_i2.Response>);
|
|
|
|
|
@override
|
|
|
|
|
_i5.Future<_i2.Response> put(Uri? url,
|
|
|
|
@ -60,7 +63,7 @@ class MockClient extends _i1.Mock implements _i4.Client {
|
|
|
|
|
(super.noSuchMethod(
|
|
|
|
|
Invocation.method(#put, [url],
|
|
|
|
|
{#headers: headers, #body: body, #encoding: encoding}),
|
|
|
|
|
returnValue: Future<_i2.Response>.value(_FakeResponse()))
|
|
|
|
|
returnValue: Future<_i2.Response>.value(_FakeResponse_0()))
|
|
|
|
|
as _i5.Future<_i2.Response>);
|
|
|
|
|
@override
|
|
|
|
|
_i5.Future<_i2.Response> patch(Uri? url,
|
|
|
|
@ -70,7 +73,7 @@ class MockClient extends _i1.Mock implements _i4.Client {
|
|
|
|
|
(super.noSuchMethod(
|
|
|
|
|
Invocation.method(#patch, [url],
|
|
|
|
|
{#headers: headers, #body: body, #encoding: encoding}),
|
|
|
|
|
returnValue: Future<_i2.Response>.value(_FakeResponse()))
|
|
|
|
|
returnValue: Future<_i2.Response>.value(_FakeResponse_0()))
|
|
|
|
|
as _i5.Future<_i2.Response>);
|
|
|
|
|
@override
|
|
|
|
|
_i5.Future<_i2.Response> delete(Uri? url,
|
|
|
|
@ -80,7 +83,7 @@ class MockClient extends _i1.Mock implements _i4.Client {
|
|
|
|
|
(super.noSuchMethod(
|
|
|
|
|
Invocation.method(#delete, [url],
|
|
|
|
|
{#headers: headers, #body: body, #encoding: encoding}),
|
|
|
|
|
returnValue: Future<_i2.Response>.value(_FakeResponse()))
|
|
|
|
|
returnValue: Future<_i2.Response>.value(_FakeResponse_0()))
|
|
|
|
|
as _i5.Future<_i2.Response>);
|
|
|
|
|
@override
|
|
|
|
|
_i5.Future<String> read(Uri? url, {Map<String, String>? headers}) =>
|
|
|
|
@ -97,11 +100,9 @@ class MockClient extends _i1.Mock implements _i4.Client {
|
|
|
|
|
_i5.Future<_i3.StreamedResponse> send(_i8.BaseRequest? request) =>
|
|
|
|
|
(super.noSuchMethod(Invocation.method(#send, [request]),
|
|
|
|
|
returnValue:
|
|
|
|
|
Future<_i3.StreamedResponse>.value(_FakeStreamedResponse()))
|
|
|
|
|
Future<_i3.StreamedResponse>.value(_FakeStreamedResponse_1()))
|
|
|
|
|
as _i5.Future<_i3.StreamedResponse>);
|
|
|
|
|
@override
|
|
|
|
|
void close() => super.noSuchMethod(Invocation.method(#close, []),
|
|
|
|
|
returnValueForMissingStub: null);
|
|
|
|
|
@override
|
|
|
|
|
String toString() => super.toString();
|
|
|
|
|
}
|
|
|
|
|