forked from eatvio/eatvio_app
added dev tools
This commit is contained in:
@@ -3,18 +3,20 @@
|
||||
// Do not manually edit this file.
|
||||
|
||||
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
||||
import 'dart:async' as _i5;
|
||||
import 'dart:io' as _i9;
|
||||
import 'dart:async' as _i6;
|
||||
import 'dart:io' as _i10;
|
||||
|
||||
import 'package:eatvio_app/features/feed/models/feed_blog_post_model.dart'
|
||||
as _i6;
|
||||
as _i7;
|
||||
import 'package:eatvio_app/features/profile/models/chosen_diets_pagination_model.dart'
|
||||
as _i4;
|
||||
import 'package:eatvio_app/features/profile/models/circumference_model.dart'
|
||||
as _i8;
|
||||
as _i9;
|
||||
import 'package:eatvio_app/features/profile/models/profile_model.dart' as _i2;
|
||||
import 'package:eatvio_app/features/profile/models/sub_model.dart' as _i3;
|
||||
import 'package:eatvio_app/features/profile/models/weight_model.dart' as _i7;
|
||||
import 'package:eatvio_app/features/profile/models/weight_model.dart' as _i8;
|
||||
import 'package:eatvio_app/features/profile/services/profile_service.dart'
|
||||
as _i4;
|
||||
as _i5;
|
||||
import 'package:mockito/mockito.dart' as _i1;
|
||||
|
||||
// ignore_for_file: type=lint
|
||||
@@ -62,19 +64,30 @@ class _FakeSubPaginationModel_2 extends _i1.SmartFake
|
||||
);
|
||||
}
|
||||
|
||||
class _FakeChosenDietsPaginationModel_3 extends _i1.SmartFake
|
||||
implements _i4.ChosenDietsPaginationModel {
|
||||
_FakeChosenDietsPaginationModel_3(
|
||||
Object parent,
|
||||
Invocation parentInvocation,
|
||||
) : super(
|
||||
parent,
|
||||
parentInvocation,
|
||||
);
|
||||
}
|
||||
|
||||
/// A class which mocks [ProfileService].
|
||||
///
|
||||
/// See the documentation for Mockito's code generation for more information.
|
||||
class MockProfileService extends _i1.Mock implements _i4.ProfileService {
|
||||
class MockProfileService extends _i1.Mock implements _i5.ProfileService {
|
||||
@override
|
||||
_i5.Future<_i2.ProfileModel> getProfileBySlug({required String? slug}) =>
|
||||
_i6.Future<_i2.ProfileModel> getProfileBySlug({required String? slug}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#getProfileBySlug,
|
||||
[],
|
||||
{#slug: slug},
|
||||
),
|
||||
returnValue: _i5.Future<_i2.ProfileModel>.value(_FakeProfileModel_0(
|
||||
returnValue: _i6.Future<_i2.ProfileModel>.value(_FakeProfileModel_0(
|
||||
this,
|
||||
Invocation.method(
|
||||
#getProfileBySlug,
|
||||
@@ -83,7 +96,7 @@ class MockProfileService extends _i1.Mock implements _i4.ProfileService {
|
||||
),
|
||||
)),
|
||||
returnValueForMissingStub:
|
||||
_i5.Future<_i2.ProfileModel>.value(_FakeProfileModel_0(
|
||||
_i6.Future<_i2.ProfileModel>.value(_FakeProfileModel_0(
|
||||
this,
|
||||
Invocation.method(
|
||||
#getProfileBySlug,
|
||||
@@ -91,15 +104,15 @@ class MockProfileService extends _i1.Mock implements _i4.ProfileService {
|
||||
{#slug: slug},
|
||||
),
|
||||
)),
|
||||
) as _i5.Future<_i2.ProfileModel>);
|
||||
) as _i6.Future<_i2.ProfileModel>);
|
||||
|
||||
@override
|
||||
_i5.Future<_i2.ProfileModel> getMyProfile() => (super.noSuchMethod(
|
||||
_i6.Future<_i2.ProfileModel> getMyProfile() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#getMyProfile,
|
||||
[],
|
||||
),
|
||||
returnValue: _i5.Future<_i2.ProfileModel>.value(_FakeProfileModel_0(
|
||||
returnValue: _i6.Future<_i2.ProfileModel>.value(_FakeProfileModel_0(
|
||||
this,
|
||||
Invocation.method(
|
||||
#getMyProfile,
|
||||
@@ -107,23 +120,23 @@ class MockProfileService extends _i1.Mock implements _i4.ProfileService {
|
||||
),
|
||||
)),
|
||||
returnValueForMissingStub:
|
||||
_i5.Future<_i2.ProfileModel>.value(_FakeProfileModel_0(
|
||||
_i6.Future<_i2.ProfileModel>.value(_FakeProfileModel_0(
|
||||
this,
|
||||
Invocation.method(
|
||||
#getMyProfile,
|
||||
[],
|
||||
),
|
||||
)),
|
||||
) as _i5.Future<_i2.ProfileModel>);
|
||||
) as _i6.Future<_i2.ProfileModel>);
|
||||
|
||||
@override
|
||||
_i5.Future<_i2.ProfileDetailsModel> getMyProfileDetails() =>
|
||||
_i6.Future<_i2.ProfileDetailsModel> getMyProfileDetails() =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#getMyProfileDetails,
|
||||
[],
|
||||
),
|
||||
returnValue: _i5.Future<_i2.ProfileDetailsModel>.value(
|
||||
returnValue: _i6.Future<_i2.ProfileDetailsModel>.value(
|
||||
_FakeProfileDetailsModel_1(
|
||||
this,
|
||||
Invocation.method(
|
||||
@@ -131,7 +144,7 @@ class MockProfileService extends _i1.Mock implements _i4.ProfileService {
|
||||
[],
|
||||
),
|
||||
)),
|
||||
returnValueForMissingStub: _i5.Future<_i2.ProfileDetailsModel>.value(
|
||||
returnValueForMissingStub: _i6.Future<_i2.ProfileDetailsModel>.value(
|
||||
_FakeProfileDetailsModel_1(
|
||||
this,
|
||||
Invocation.method(
|
||||
@@ -139,10 +152,10 @@ class MockProfileService extends _i1.Mock implements _i4.ProfileService {
|
||||
[],
|
||||
),
|
||||
)),
|
||||
) as _i5.Future<_i2.ProfileDetailsModel>);
|
||||
) as _i6.Future<_i2.ProfileDetailsModel>);
|
||||
|
||||
@override
|
||||
_i5.Future<_i2.ProfileDetailsModel> getProfileDetailsBySlug(
|
||||
_i6.Future<_i2.ProfileDetailsModel> getProfileDetailsBySlug(
|
||||
{required String? slug}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
@@ -150,7 +163,7 @@ class MockProfileService extends _i1.Mock implements _i4.ProfileService {
|
||||
[],
|
||||
{#slug: slug},
|
||||
),
|
||||
returnValue: _i5.Future<_i2.ProfileDetailsModel>.value(
|
||||
returnValue: _i6.Future<_i2.ProfileDetailsModel>.value(
|
||||
_FakeProfileDetailsModel_1(
|
||||
this,
|
||||
Invocation.method(
|
||||
@@ -159,7 +172,7 @@ class MockProfileService extends _i1.Mock implements _i4.ProfileService {
|
||||
{#slug: slug},
|
||||
),
|
||||
)),
|
||||
returnValueForMissingStub: _i5.Future<_i2.ProfileDetailsModel>.value(
|
||||
returnValueForMissingStub: _i6.Future<_i2.ProfileDetailsModel>.value(
|
||||
_FakeProfileDetailsModel_1(
|
||||
this,
|
||||
Invocation.method(
|
||||
@@ -168,10 +181,10 @@ class MockProfileService extends _i1.Mock implements _i4.ProfileService {
|
||||
{#slug: slug},
|
||||
),
|
||||
)),
|
||||
) as _i5.Future<_i2.ProfileDetailsModel>);
|
||||
) as _i6.Future<_i2.ProfileDetailsModel>);
|
||||
|
||||
@override
|
||||
_i5.Future<void> addCircumference({
|
||||
_i6.Future<void> addCircumference({
|
||||
required int? chestCircumference,
|
||||
required int? waistCircumference,
|
||||
required int? hipCircumference,
|
||||
@@ -186,23 +199,23 @@ class MockProfileService extends _i1.Mock implements _i4.ProfileService {
|
||||
#hipCircumference: hipCircumference,
|
||||
},
|
||||
),
|
||||
returnValue: _i5.Future<void>.value(),
|
||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
||||
) as _i5.Future<void>);
|
||||
returnValue: _i6.Future<void>.value(),
|
||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
||||
) as _i6.Future<void>);
|
||||
|
||||
@override
|
||||
_i5.Future<void> addWeight({required double? weight}) => (super.noSuchMethod(
|
||||
_i6.Future<void> addWeight({required double? weight}) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#addWeight,
|
||||
[],
|
||||
{#weight: weight},
|
||||
),
|
||||
returnValue: _i5.Future<void>.value(),
|
||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
||||
) as _i5.Future<void>);
|
||||
returnValue: _i6.Future<void>.value(),
|
||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
||||
) as _i6.Future<void>);
|
||||
|
||||
@override
|
||||
_i5.Future<List<_i6.FeedBlogPostModel>> getBlogPostByAuthorSlug(
|
||||
_i6.Future<List<_i7.FeedBlogPostModel>> getBlogPostByAuthorSlug(
|
||||
{required String? slug}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
@@ -210,15 +223,15 @@ class MockProfileService extends _i1.Mock implements _i4.ProfileService {
|
||||
[],
|
||||
{#slug: slug},
|
||||
),
|
||||
returnValue: _i5.Future<List<_i6.FeedBlogPostModel>>.value(
|
||||
<_i6.FeedBlogPostModel>[]),
|
||||
returnValue: _i6.Future<List<_i7.FeedBlogPostModel>>.value(
|
||||
<_i7.FeedBlogPostModel>[]),
|
||||
returnValueForMissingStub:
|
||||
_i5.Future<List<_i6.FeedBlogPostModel>>.value(
|
||||
<_i6.FeedBlogPostModel>[]),
|
||||
) as _i5.Future<List<_i6.FeedBlogPostModel>>);
|
||||
_i6.Future<List<_i7.FeedBlogPostModel>>.value(
|
||||
<_i7.FeedBlogPostModel>[]),
|
||||
) as _i6.Future<List<_i7.FeedBlogPostModel>>);
|
||||
|
||||
@override
|
||||
_i5.Future<List<_i7.WeightModel>> getWeight({required String? period}) =>
|
||||
_i6.Future<List<_i8.WeightModel>> getWeight({required String? period}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#getWeight,
|
||||
@@ -226,13 +239,13 @@ class MockProfileService extends _i1.Mock implements _i4.ProfileService {
|
||||
{#period: period},
|
||||
),
|
||||
returnValue:
|
||||
_i5.Future<List<_i7.WeightModel>>.value(<_i7.WeightModel>[]),
|
||||
_i6.Future<List<_i8.WeightModel>>.value(<_i8.WeightModel>[]),
|
||||
returnValueForMissingStub:
|
||||
_i5.Future<List<_i7.WeightModel>>.value(<_i7.WeightModel>[]),
|
||||
) as _i5.Future<List<_i7.WeightModel>>);
|
||||
_i6.Future<List<_i8.WeightModel>>.value(<_i8.WeightModel>[]),
|
||||
) as _i6.Future<List<_i8.WeightModel>>);
|
||||
|
||||
@override
|
||||
_i5.Future<List<_i7.WeightModel>> getWeightBySlug({
|
||||
_i6.Future<List<_i8.WeightModel>> getWeightBySlug({
|
||||
required String? period,
|
||||
required String? slug,
|
||||
}) =>
|
||||
@@ -246,13 +259,13 @@ class MockProfileService extends _i1.Mock implements _i4.ProfileService {
|
||||
},
|
||||
),
|
||||
returnValue:
|
||||
_i5.Future<List<_i7.WeightModel>>.value(<_i7.WeightModel>[]),
|
||||
_i6.Future<List<_i8.WeightModel>>.value(<_i8.WeightModel>[]),
|
||||
returnValueForMissingStub:
|
||||
_i5.Future<List<_i7.WeightModel>>.value(<_i7.WeightModel>[]),
|
||||
) as _i5.Future<List<_i7.WeightModel>>);
|
||||
_i6.Future<List<_i8.WeightModel>>.value(<_i8.WeightModel>[]),
|
||||
) as _i6.Future<List<_i8.WeightModel>>);
|
||||
|
||||
@override
|
||||
_i5.Future<List<_i8.CircumferenceModel>> getCircumferences(
|
||||
_i6.Future<List<_i9.CircumferenceModel>> getCircumferences(
|
||||
{required String? period}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
@@ -260,15 +273,15 @@ class MockProfileService extends _i1.Mock implements _i4.ProfileService {
|
||||
[],
|
||||
{#period: period},
|
||||
),
|
||||
returnValue: _i5.Future<List<_i8.CircumferenceModel>>.value(
|
||||
<_i8.CircumferenceModel>[]),
|
||||
returnValue: _i6.Future<List<_i9.CircumferenceModel>>.value(
|
||||
<_i9.CircumferenceModel>[]),
|
||||
returnValueForMissingStub:
|
||||
_i5.Future<List<_i8.CircumferenceModel>>.value(
|
||||
<_i8.CircumferenceModel>[]),
|
||||
) as _i5.Future<List<_i8.CircumferenceModel>>);
|
||||
_i6.Future<List<_i9.CircumferenceModel>>.value(
|
||||
<_i9.CircumferenceModel>[]),
|
||||
) as _i6.Future<List<_i9.CircumferenceModel>>);
|
||||
|
||||
@override
|
||||
_i5.Future<List<_i8.CircumferenceModel>> getCircumferencesBySlug({
|
||||
_i6.Future<List<_i9.CircumferenceModel>> getCircumferencesBySlug({
|
||||
required String? period,
|
||||
required String? slug,
|
||||
}) =>
|
||||
@@ -281,15 +294,15 @@ class MockProfileService extends _i1.Mock implements _i4.ProfileService {
|
||||
#slug: slug,
|
||||
},
|
||||
),
|
||||
returnValue: _i5.Future<List<_i8.CircumferenceModel>>.value(
|
||||
<_i8.CircumferenceModel>[]),
|
||||
returnValue: _i6.Future<List<_i9.CircumferenceModel>>.value(
|
||||
<_i9.CircumferenceModel>[]),
|
||||
returnValueForMissingStub:
|
||||
_i5.Future<List<_i8.CircumferenceModel>>.value(
|
||||
<_i8.CircumferenceModel>[]),
|
||||
) as _i5.Future<List<_i8.CircumferenceModel>>);
|
||||
_i6.Future<List<_i9.CircumferenceModel>>.value(
|
||||
<_i9.CircumferenceModel>[]),
|
||||
) as _i6.Future<List<_i9.CircumferenceModel>>);
|
||||
|
||||
@override
|
||||
_i5.Future<_i3.SubPaginationModel> getSubscribers({
|
||||
_i6.Future<_i3.SubPaginationModel> getSubscribers({
|
||||
required String? slug,
|
||||
String? query,
|
||||
}) =>
|
||||
@@ -303,7 +316,7 @@ class MockProfileService extends _i1.Mock implements _i4.ProfileService {
|
||||
},
|
||||
),
|
||||
returnValue:
|
||||
_i5.Future<_i3.SubPaginationModel>.value(_FakeSubPaginationModel_2(
|
||||
_i6.Future<_i3.SubPaginationModel>.value(_FakeSubPaginationModel_2(
|
||||
this,
|
||||
Invocation.method(
|
||||
#getSubscribers,
|
||||
@@ -315,7 +328,7 @@ class MockProfileService extends _i1.Mock implements _i4.ProfileService {
|
||||
),
|
||||
)),
|
||||
returnValueForMissingStub:
|
||||
_i5.Future<_i3.SubPaginationModel>.value(_FakeSubPaginationModel_2(
|
||||
_i6.Future<_i3.SubPaginationModel>.value(_FakeSubPaginationModel_2(
|
||||
this,
|
||||
Invocation.method(
|
||||
#getSubscribers,
|
||||
@@ -326,10 +339,10 @@ class MockProfileService extends _i1.Mock implements _i4.ProfileService {
|
||||
},
|
||||
),
|
||||
)),
|
||||
) as _i5.Future<_i3.SubPaginationModel>);
|
||||
) as _i6.Future<_i3.SubPaginationModel>);
|
||||
|
||||
@override
|
||||
_i5.Future<_i3.SubPaginationModel> getSubscriptions({
|
||||
_i6.Future<_i3.SubPaginationModel> getSubscriptions({
|
||||
required String? slug,
|
||||
String? query,
|
||||
}) =>
|
||||
@@ -343,7 +356,7 @@ class MockProfileService extends _i1.Mock implements _i4.ProfileService {
|
||||
},
|
||||
),
|
||||
returnValue:
|
||||
_i5.Future<_i3.SubPaginationModel>.value(_FakeSubPaginationModel_2(
|
||||
_i6.Future<_i3.SubPaginationModel>.value(_FakeSubPaginationModel_2(
|
||||
this,
|
||||
Invocation.method(
|
||||
#getSubscriptions,
|
||||
@@ -355,7 +368,7 @@ class MockProfileService extends _i1.Mock implements _i4.ProfileService {
|
||||
),
|
||||
)),
|
||||
returnValueForMissingStub:
|
||||
_i5.Future<_i3.SubPaginationModel>.value(_FakeSubPaginationModel_2(
|
||||
_i6.Future<_i3.SubPaginationModel>.value(_FakeSubPaginationModel_2(
|
||||
this,
|
||||
Invocation.method(
|
||||
#getSubscriptions,
|
||||
@@ -366,49 +379,75 @@ class MockProfileService extends _i1.Mock implements _i4.ProfileService {
|
||||
},
|
||||
),
|
||||
)),
|
||||
) as _i5.Future<_i3.SubPaginationModel>);
|
||||
) as _i6.Future<_i3.SubPaginationModel>);
|
||||
|
||||
@override
|
||||
_i5.Future<void> subscribe({required String? slug}) => (super.noSuchMethod(
|
||||
_i6.Future<void> subscribe({required String? slug}) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#subscribe,
|
||||
[],
|
||||
{#slug: slug},
|
||||
),
|
||||
returnValue: _i5.Future<void>.value(),
|
||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
||||
) as _i5.Future<void>);
|
||||
returnValue: _i6.Future<void>.value(),
|
||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
||||
) as _i6.Future<void>);
|
||||
|
||||
@override
|
||||
_i5.Future<void> unsubscribe({required String? slug}) => (super.noSuchMethod(
|
||||
_i6.Future<void> unsubscribe({required String? slug}) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#unsubscribe,
|
||||
[],
|
||||
{#slug: slug},
|
||||
),
|
||||
returnValue: _i5.Future<void>.value(),
|
||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
||||
) as _i5.Future<void>);
|
||||
returnValue: _i6.Future<void>.value(),
|
||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
||||
) as _i6.Future<void>);
|
||||
|
||||
@override
|
||||
_i5.Future<void> uploadPhoto({required _i9.File? photo}) =>
|
||||
_i6.Future<void> uploadPhoto({required _i10.File? photo}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#uploadPhoto,
|
||||
[],
|
||||
{#photo: photo},
|
||||
),
|
||||
returnValue: _i5.Future<void>.value(),
|
||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
||||
) as _i5.Future<void>);
|
||||
returnValue: _i6.Future<void>.value(),
|
||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
||||
) as _i6.Future<void>);
|
||||
|
||||
@override
|
||||
_i5.Future<void> deletePhoto() => (super.noSuchMethod(
|
||||
_i6.Future<void> deletePhoto() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#deletePhoto,
|
||||
[],
|
||||
),
|
||||
returnValue: _i5.Future<void>.value(),
|
||||
returnValueForMissingStub: _i5.Future<void>.value(),
|
||||
) as _i5.Future<void>);
|
||||
returnValue: _i6.Future<void>.value(),
|
||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
||||
) as _i6.Future<void>);
|
||||
|
||||
@override
|
||||
_i6.Future<_i4.ChosenDietsPaginationModel> getChosenDiets() =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#getChosenDiets,
|
||||
[],
|
||||
),
|
||||
returnValue: _i6.Future<_i4.ChosenDietsPaginationModel>.value(
|
||||
_FakeChosenDietsPaginationModel_3(
|
||||
this,
|
||||
Invocation.method(
|
||||
#getChosenDiets,
|
||||
[],
|
||||
),
|
||||
)),
|
||||
returnValueForMissingStub:
|
||||
_i6.Future<_i4.ChosenDietsPaginationModel>.value(
|
||||
_FakeChosenDietsPaginationModel_3(
|
||||
this,
|
||||
Invocation.method(
|
||||
#getChosenDiets,
|
||||
[],
|
||||
),
|
||||
)),
|
||||
) as _i6.Future<_i4.ChosenDietsPaginationModel>);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user