forked from eatvio/eatvio_app
Удалены сгенерированные файлы (freezed, g.dart, build)
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -1,67 +0,0 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
part of 'consultant_review_model.dart';
|
||||
|
||||
// **************************************************************************
|
||||
// JsonSerializableGenerator
|
||||
// **************************************************************************
|
||||
|
||||
_ConsultantReviewModel _$ConsultantReviewModelFromJson(
|
||||
Map<String, dynamic> json) =>
|
||||
_ConsultantReviewModel(
|
||||
planName: json['planName'] as String,
|
||||
planDuration: (json['planDuration'] as num).toInt(),
|
||||
currentPlanDay: (json['currentPlanDay'] as num).toInt(),
|
||||
consultantComments: ConsultantComments.fromJson(
|
||||
json['consultantComments'] as Map<String, dynamic>),
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$ConsultantReviewModelToJson(
|
||||
_ConsultantReviewModel instance) =>
|
||||
<String, dynamic>{
|
||||
'planName': instance.planName,
|
||||
'planDuration': instance.planDuration,
|
||||
'currentPlanDay': instance.currentPlanDay,
|
||||
'consultantComments': instance.consultantComments,
|
||||
};
|
||||
|
||||
_ConsultantComments _$ConsultantCommentsFromJson(Map<String, dynamic> json) =>
|
||||
_ConsultantComments(
|
||||
dayComment: json['dayComment'] as String?,
|
||||
mealsComments: (json['mealsComments'] as List<dynamic>)
|
||||
.map((e) => MealComment.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
portionsComments: (json['portionsComments'] as List<dynamic>)
|
||||
.map((e) => PortionComment.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$ConsultantCommentsToJson(_ConsultantComments instance) =>
|
||||
<String, dynamic>{
|
||||
'dayComment': instance.dayComment,
|
||||
'mealsComments': instance.mealsComments,
|
||||
'portionsComments': instance.portionsComments,
|
||||
};
|
||||
|
||||
_MealComment _$MealCommentFromJson(Map<String, dynamic> json) => _MealComment(
|
||||
comment: json['comment'] as String,
|
||||
typeNo: (json['typeNo'] as num).toInt(),
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$MealCommentToJson(_MealComment instance) =>
|
||||
<String, dynamic>{
|
||||
'comment': instance.comment,
|
||||
'typeNo': instance.typeNo,
|
||||
};
|
||||
|
||||
_PortionComment _$PortionCommentFromJson(Map<String, dynamic> json) =>
|
||||
_PortionComment(
|
||||
portionId: (json['id'] as num).toInt(),
|
||||
comment: json['comment'] as String,
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$PortionCommentToJson(_PortionComment instance) =>
|
||||
<String, dynamic>{
|
||||
'id': instance.portionId,
|
||||
'comment': instance.comment,
|
||||
};
|
||||
@@ -1,526 +0,0 @@
|
||||
// Mocks generated by Mockito 5.4.6 from annotations
|
||||
// in eatvio_app/test/features/profile/services/profile_service_test.dart.
|
||||
// Do not manually edit this file.
|
||||
|
||||
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
||||
import 'dart:async' as _i6;
|
||||
import 'dart:io' as _i10;
|
||||
|
||||
import 'package:eatvio_app/features/feed/models/feed_blog_post_model.dart'
|
||||
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 _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 _i8;
|
||||
import 'package:eatvio_app/features/profile/services/profile_service.dart'
|
||||
as _i5;
|
||||
import 'package:mockito/mockito.dart' as _i1;
|
||||
import 'package:mockito/src/dummies.dart' as _i11;
|
||||
|
||||
// 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 _FakeProfileModel_0 extends _i1.SmartFake implements _i2.ProfileModel {
|
||||
_FakeProfileModel_0(
|
||||
Object parent,
|
||||
Invocation parentInvocation,
|
||||
) : super(
|
||||
parent,
|
||||
parentInvocation,
|
||||
);
|
||||
}
|
||||
|
||||
class _FakeProfileDetailsModel_1 extends _i1.SmartFake
|
||||
implements _i2.ProfileDetailsModel {
|
||||
_FakeProfileDetailsModel_1(
|
||||
Object parent,
|
||||
Invocation parentInvocation,
|
||||
) : super(
|
||||
parent,
|
||||
parentInvocation,
|
||||
);
|
||||
}
|
||||
|
||||
class _FakeSubPaginationModel_2 extends _i1.SmartFake
|
||||
implements _i3.SubPaginationModel {
|
||||
_FakeSubPaginationModel_2(
|
||||
Object parent,
|
||||
Invocation parentInvocation,
|
||||
) : super(
|
||||
parent,
|
||||
parentInvocation,
|
||||
);
|
||||
}
|
||||
|
||||
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 _i5.ProfileService {
|
||||
@override
|
||||
_i6.Future<_i2.ProfileModel> getProfileBySlug({required String? slug}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#getProfileBySlug,
|
||||
[],
|
||||
{#slug: slug},
|
||||
),
|
||||
returnValue: _i6.Future<_i2.ProfileModel>.value(_FakeProfileModel_0(
|
||||
this,
|
||||
Invocation.method(
|
||||
#getProfileBySlug,
|
||||
[],
|
||||
{#slug: slug},
|
||||
),
|
||||
)),
|
||||
returnValueForMissingStub:
|
||||
_i6.Future<_i2.ProfileModel>.value(_FakeProfileModel_0(
|
||||
this,
|
||||
Invocation.method(
|
||||
#getProfileBySlug,
|
||||
[],
|
||||
{#slug: slug},
|
||||
),
|
||||
)),
|
||||
) as _i6.Future<_i2.ProfileModel>);
|
||||
|
||||
@override
|
||||
_i6.Future<_i2.ProfileModel> getMyProfile() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#getMyProfile,
|
||||
[],
|
||||
),
|
||||
returnValue: _i6.Future<_i2.ProfileModel>.value(_FakeProfileModel_0(
|
||||
this,
|
||||
Invocation.method(
|
||||
#getMyProfile,
|
||||
[],
|
||||
),
|
||||
)),
|
||||
returnValueForMissingStub:
|
||||
_i6.Future<_i2.ProfileModel>.value(_FakeProfileModel_0(
|
||||
this,
|
||||
Invocation.method(
|
||||
#getMyProfile,
|
||||
[],
|
||||
),
|
||||
)),
|
||||
) as _i6.Future<_i2.ProfileModel>);
|
||||
|
||||
@override
|
||||
_i6.Future<_i2.ProfileDetailsModel> getMyProfileDetails() =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#getMyProfileDetails,
|
||||
[],
|
||||
),
|
||||
returnValue: _i6.Future<_i2.ProfileDetailsModel>.value(
|
||||
_FakeProfileDetailsModel_1(
|
||||
this,
|
||||
Invocation.method(
|
||||
#getMyProfileDetails,
|
||||
[],
|
||||
),
|
||||
)),
|
||||
returnValueForMissingStub: _i6.Future<_i2.ProfileDetailsModel>.value(
|
||||
_FakeProfileDetailsModel_1(
|
||||
this,
|
||||
Invocation.method(
|
||||
#getMyProfileDetails,
|
||||
[],
|
||||
),
|
||||
)),
|
||||
) as _i6.Future<_i2.ProfileDetailsModel>);
|
||||
|
||||
@override
|
||||
_i6.Future<_i2.ProfileDetailsModel> getProfileDetailsBySlug(
|
||||
{required String? slug}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#getProfileDetailsBySlug,
|
||||
[],
|
||||
{#slug: slug},
|
||||
),
|
||||
returnValue: _i6.Future<_i2.ProfileDetailsModel>.value(
|
||||
_FakeProfileDetailsModel_1(
|
||||
this,
|
||||
Invocation.method(
|
||||
#getProfileDetailsBySlug,
|
||||
[],
|
||||
{#slug: slug},
|
||||
),
|
||||
)),
|
||||
returnValueForMissingStub: _i6.Future<_i2.ProfileDetailsModel>.value(
|
||||
_FakeProfileDetailsModel_1(
|
||||
this,
|
||||
Invocation.method(
|
||||
#getProfileDetailsBySlug,
|
||||
[],
|
||||
{#slug: slug},
|
||||
),
|
||||
)),
|
||||
) as _i6.Future<_i2.ProfileDetailsModel>);
|
||||
|
||||
@override
|
||||
_i6.Future<void> addCircumference({
|
||||
required int? chestCircumference,
|
||||
required int? waistCircumference,
|
||||
required int? hipCircumference,
|
||||
}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#addCircumference,
|
||||
[],
|
||||
{
|
||||
#chestCircumference: chestCircumference,
|
||||
#waistCircumference: waistCircumference,
|
||||
#hipCircumference: hipCircumference,
|
||||
},
|
||||
),
|
||||
returnValue: _i6.Future<void>.value(),
|
||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
||||
) as _i6.Future<void>);
|
||||
|
||||
@override
|
||||
_i6.Future<void> addWeight({required double? weight}) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#addWeight,
|
||||
[],
|
||||
{#weight: weight},
|
||||
),
|
||||
returnValue: _i6.Future<void>.value(),
|
||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
||||
) as _i6.Future<void>);
|
||||
|
||||
@override
|
||||
_i6.Future<List<_i7.FeedBlogPostModel>> getBlogPostByAuthorSlug(
|
||||
{required String? slug}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#getBlogPostByAuthorSlug,
|
||||
[],
|
||||
{#slug: slug},
|
||||
),
|
||||
returnValue: _i6.Future<List<_i7.FeedBlogPostModel>>.value(
|
||||
<_i7.FeedBlogPostModel>[]),
|
||||
returnValueForMissingStub:
|
||||
_i6.Future<List<_i7.FeedBlogPostModel>>.value(
|
||||
<_i7.FeedBlogPostModel>[]),
|
||||
) as _i6.Future<List<_i7.FeedBlogPostModel>>);
|
||||
|
||||
@override
|
||||
_i6.Future<List<_i8.WeightModel>> getWeight({required String? period}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#getWeight,
|
||||
[],
|
||||
{#period: period},
|
||||
),
|
||||
returnValue:
|
||||
_i6.Future<List<_i8.WeightModel>>.value(<_i8.WeightModel>[]),
|
||||
returnValueForMissingStub:
|
||||
_i6.Future<List<_i8.WeightModel>>.value(<_i8.WeightModel>[]),
|
||||
) as _i6.Future<List<_i8.WeightModel>>);
|
||||
|
||||
@override
|
||||
_i6.Future<List<_i8.WeightModel>> getWeightBySlug({
|
||||
required String? period,
|
||||
required String? slug,
|
||||
}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#getWeightBySlug,
|
||||
[],
|
||||
{
|
||||
#period: period,
|
||||
#slug: slug,
|
||||
},
|
||||
),
|
||||
returnValue:
|
||||
_i6.Future<List<_i8.WeightModel>>.value(<_i8.WeightModel>[]),
|
||||
returnValueForMissingStub:
|
||||
_i6.Future<List<_i8.WeightModel>>.value(<_i8.WeightModel>[]),
|
||||
) as _i6.Future<List<_i8.WeightModel>>);
|
||||
|
||||
@override
|
||||
_i6.Future<List<_i9.CircumferenceModel>> getCircumferences(
|
||||
{required String? period}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#getCircumferences,
|
||||
[],
|
||||
{#period: period},
|
||||
),
|
||||
returnValue: _i6.Future<List<_i9.CircumferenceModel>>.value(
|
||||
<_i9.CircumferenceModel>[]),
|
||||
returnValueForMissingStub:
|
||||
_i6.Future<List<_i9.CircumferenceModel>>.value(
|
||||
<_i9.CircumferenceModel>[]),
|
||||
) as _i6.Future<List<_i9.CircumferenceModel>>);
|
||||
|
||||
@override
|
||||
_i6.Future<List<_i9.CircumferenceModel>> getCircumferencesBySlug({
|
||||
required String? period,
|
||||
required String? slug,
|
||||
}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#getCircumferencesBySlug,
|
||||
[],
|
||||
{
|
||||
#period: period,
|
||||
#slug: slug,
|
||||
},
|
||||
),
|
||||
returnValue: _i6.Future<List<_i9.CircumferenceModel>>.value(
|
||||
<_i9.CircumferenceModel>[]),
|
||||
returnValueForMissingStub:
|
||||
_i6.Future<List<_i9.CircumferenceModel>>.value(
|
||||
<_i9.CircumferenceModel>[]),
|
||||
) as _i6.Future<List<_i9.CircumferenceModel>>);
|
||||
|
||||
@override
|
||||
_i6.Future<_i3.SubPaginationModel> getSubscribers({
|
||||
required String? slug,
|
||||
String? query,
|
||||
}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#getSubscribers,
|
||||
[],
|
||||
{
|
||||
#slug: slug,
|
||||
#query: query,
|
||||
},
|
||||
),
|
||||
returnValue:
|
||||
_i6.Future<_i3.SubPaginationModel>.value(_FakeSubPaginationModel_2(
|
||||
this,
|
||||
Invocation.method(
|
||||
#getSubscribers,
|
||||
[],
|
||||
{
|
||||
#slug: slug,
|
||||
#query: query,
|
||||
},
|
||||
),
|
||||
)),
|
||||
returnValueForMissingStub:
|
||||
_i6.Future<_i3.SubPaginationModel>.value(_FakeSubPaginationModel_2(
|
||||
this,
|
||||
Invocation.method(
|
||||
#getSubscribers,
|
||||
[],
|
||||
{
|
||||
#slug: slug,
|
||||
#query: query,
|
||||
},
|
||||
),
|
||||
)),
|
||||
) as _i6.Future<_i3.SubPaginationModel>);
|
||||
|
||||
@override
|
||||
_i6.Future<_i3.SubPaginationModel> getSubscriptions({
|
||||
required String? slug,
|
||||
String? query,
|
||||
}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#getSubscriptions,
|
||||
[],
|
||||
{
|
||||
#slug: slug,
|
||||
#query: query,
|
||||
},
|
||||
),
|
||||
returnValue:
|
||||
_i6.Future<_i3.SubPaginationModel>.value(_FakeSubPaginationModel_2(
|
||||
this,
|
||||
Invocation.method(
|
||||
#getSubscriptions,
|
||||
[],
|
||||
{
|
||||
#slug: slug,
|
||||
#query: query,
|
||||
},
|
||||
),
|
||||
)),
|
||||
returnValueForMissingStub:
|
||||
_i6.Future<_i3.SubPaginationModel>.value(_FakeSubPaginationModel_2(
|
||||
this,
|
||||
Invocation.method(
|
||||
#getSubscriptions,
|
||||
[],
|
||||
{
|
||||
#slug: slug,
|
||||
#query: query,
|
||||
},
|
||||
),
|
||||
)),
|
||||
) as _i6.Future<_i3.SubPaginationModel>);
|
||||
|
||||
@override
|
||||
_i6.Future<void> subscribe({required String? slug}) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#subscribe,
|
||||
[],
|
||||
{#slug: slug},
|
||||
),
|
||||
returnValue: _i6.Future<void>.value(),
|
||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
||||
) as _i6.Future<void>);
|
||||
|
||||
@override
|
||||
_i6.Future<void> unsubscribe({required String? slug}) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#unsubscribe,
|
||||
[],
|
||||
{#slug: slug},
|
||||
),
|
||||
returnValue: _i6.Future<void>.value(),
|
||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
||||
) as _i6.Future<void>);
|
||||
|
||||
@override
|
||||
_i6.Future<void> uploadPhoto({required _i10.File? photo}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#uploadPhoto,
|
||||
[],
|
||||
{#photo: photo},
|
||||
),
|
||||
returnValue: _i6.Future<void>.value(),
|
||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
||||
) as _i6.Future<void>);
|
||||
|
||||
@override
|
||||
_i6.Future<void> deletePhoto() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#deletePhoto,
|
||||
[],
|
||||
),
|
||||
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>);
|
||||
|
||||
@override
|
||||
_i6.Future<String> getPassKey({required String? json}) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#getPassKey,
|
||||
[],
|
||||
{#json: json},
|
||||
),
|
||||
returnValue: _i6.Future<String>.value(_i11.dummyValue<String>(
|
||||
this,
|
||||
Invocation.method(
|
||||
#getPassKey,
|
||||
[],
|
||||
{#json: json},
|
||||
),
|
||||
)),
|
||||
returnValueForMissingStub:
|
||||
_i6.Future<String>.value(_i11.dummyValue<String>(
|
||||
this,
|
||||
Invocation.method(
|
||||
#getPassKey,
|
||||
[],
|
||||
{#json: json},
|
||||
),
|
||||
)),
|
||||
) as _i6.Future<String>);
|
||||
|
||||
@override
|
||||
_i6.Future<String> getMyPhone() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#getMyPhone,
|
||||
[],
|
||||
),
|
||||
returnValue: _i6.Future<String>.value(_i11.dummyValue<String>(
|
||||
this,
|
||||
Invocation.method(
|
||||
#getMyPhone,
|
||||
[],
|
||||
),
|
||||
)),
|
||||
returnValueForMissingStub:
|
||||
_i6.Future<String>.value(_i11.dummyValue<String>(
|
||||
this,
|
||||
Invocation.method(
|
||||
#getMyPhone,
|
||||
[],
|
||||
),
|
||||
)),
|
||||
) as _i6.Future<String>);
|
||||
|
||||
@override
|
||||
_i6.Future<void> sendEmailCode() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#sendEmailCode,
|
||||
[],
|
||||
),
|
||||
returnValue: _i6.Future<void>.value(),
|
||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
||||
) as _i6.Future<void>);
|
||||
|
||||
@override
|
||||
_i6.Future<void> tryVerifyEmailByCode({required String? code}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#tryVerifyEmailByCode,
|
||||
[],
|
||||
{#code: code},
|
||||
),
|
||||
returnValue: _i6.Future<void>.value(),
|
||||
returnValueForMissingStub: _i6.Future<void>.value(),
|
||||
) as _i6.Future<void>);
|
||||
}
|
||||
Reference in New Issue
Block a user