From 09f60fe4322647c3769dc826dec8d13ef6490720 Mon Sep 17 00:00:00 2001 From: Roland Geider Date: Thu, 9 Nov 2023 19:07:38 +0100 Subject: [PATCH] Fix tests and recreate generated files --- lib/models/body_weight/weight_entry.g.dart | 3 +- lib/models/exercises/base.g.dart | 22 ++- lib/models/exercises/category.g.dart | 3 +- lib/models/exercises/image.g.dart | 3 +- lib/models/exercises/translation.g.dart | 7 +- .../measurements/measurement_category.g.dart | 4 +- .../measurements/measurement_entry.g.dart | 3 +- lib/models/nutrition/image.g.dart | 3 +- lib/models/nutrition/ingredient.g.dart | 3 +- .../nutrition/ingredient_weight_unit.g.dart | 6 +- lib/models/nutrition/log.g.dart | 9 +- lib/models/nutrition/nutritional_plan.g.dart | 3 +- lib/models/nutrition/weight_unit.g.dart | 3 +- lib/models/user/profile.g.dart | 7 +- lib/models/workouts/repetition_unit.g.dart | 3 +- lib/models/workouts/session.g.dart | 12 +- lib/models/workouts/weight_unit.g.dart | 3 +- lib/models/workouts/workout_plan.g.dart | 3 +- macos/Flutter/GeneratedPluginRegistrant.swift | 2 + .../contribute_exercise_test.mocks.dart | 58 ++++++- test/gallery/gallery_form_test.mocks.dart | 36 +++- test/gallery/gallery_screen_test.mocks.dart | 36 +++- ...surement_categories_screen_test.mocks.dart | 31 +++- .../measurement_provider_test.mocks.dart | 24 ++- .../nutritional_meal_form_test.mocks.dart | 71 ++++++-- .../nutritional_plan_form_test.mocks.dart | 71 ++++++-- .../nutritional_plan_screen_test.mocks.dart | 76 +++++++-- .../nutritional_plans_screen_test.mocks.dart | 76 +++++++-- test/other/base_provider_test.mocks.dart | 20 ++- test/user/provider_test.mocks.dart | 24 ++- test/weight/weight_provider_test.mocks.dart | 24 ++- test/weight/weight_screen_test.mocks.dart | 31 +++- test/workout/gym_mode_screen_test.mocks.dart | 82 +++++++-- .../repetition_unit_form_widget_test.dart | 23 +-- ...epetition_unit_form_widget_test.mocks.dart | 82 +++++++-- .../workout/weight_unit_form_widget_test.dart | 23 +-- .../weight_unit_form_widget_test.mocks.dart | 31 +++- test/workout/workout_day_form_test.mocks.dart | 82 +++++++-- test/workout/workout_form_test.mocks.dart | 82 +++++++-- .../workout_plan_screen_test.mocks.dart | 24 ++- .../workout_plans_screen_test.mocks.dart | 24 ++- test/workout/workout_provider_test.mocks.dart | 24 ++- test/workout/workout_set_form_test.mocks.dart | 159 +++++++++++++++--- 43 files changed, 1056 insertions(+), 260 deletions(-) diff --git a/lib/models/body_weight/weight_entry.g.dart b/lib/models/body_weight/weight_entry.g.dart index d1152d20e..60ee02c9b 100644 --- a/lib/models/body_weight/weight_entry.g.dart +++ b/lib/models/body_weight/weight_entry.g.dart @@ -18,7 +18,8 @@ WeightEntry _$WeightEntryFromJson(Map json) { ); } -Map _$WeightEntryToJson(WeightEntry instance) => { +Map _$WeightEntryToJson(WeightEntry instance) => + { 'id': instance.id, 'weight': numToString(instance.weight), 'date': toDate(instance.date), diff --git a/lib/models/exercises/base.g.dart b/lib/models/exercises/base.g.dart index d9f7c36ee..b57b9ebfa 100644 --- a/lib/models/exercises/base.g.dart +++ b/lib/models/exercises/base.g.dart @@ -24,18 +24,26 @@ ExerciseBase _$ExerciseBaseFromJson(Map json) { return ExerciseBase( id: json['id'] as int?, uuid: json['uuid'] as String?, - created: json['created'] == null ? null : DateTime.parse(json['created'] as String), - lastUpdate: json['last_update'] == null ? null : DateTime.parse(json['last_update'] as String), + created: json['created'] == null + ? null + : DateTime.parse(json['created'] as String), + lastUpdate: json['last_update'] == null + ? null + : DateTime.parse(json['last_update'] as String), variationId: json['variations'] as int?, ) ..categoryId = json['category'] as int - ..musclesIds = (json['muscles'] as List).map((e) => e as int).toList() - ..musclesSecondaryIds = - (json['muscles_secondary'] as List).map((e) => e as int).toList() - ..equipmentIds = (json['equipment'] as List).map((e) => e as int).toList(); + ..musclesIds = + (json['muscles'] as List).map((e) => e as int).toList() + ..musclesSecondaryIds = (json['muscles_secondary'] as List) + .map((e) => e as int) + .toList() + ..equipmentIds = + (json['equipment'] as List).map((e) => e as int).toList(); } -Map _$ExerciseBaseToJson(ExerciseBase instance) => { +Map _$ExerciseBaseToJson(ExerciseBase instance) => + { 'id': instance.id, 'uuid': instance.uuid, 'variations': instance.variationId, diff --git a/lib/models/exercises/category.g.dart b/lib/models/exercises/category.g.dart index 915120d13..19383107b 100644 --- a/lib/models/exercises/category.g.dart +++ b/lib/models/exercises/category.g.dart @@ -17,7 +17,8 @@ ExerciseCategory _$ExerciseCategoryFromJson(Map json) { ); } -Map _$ExerciseCategoryToJson(ExerciseCategory instance) => { +Map _$ExerciseCategoryToJson(ExerciseCategory instance) => + { 'id': instance.id, 'name': instance.name, }; diff --git a/lib/models/exercises/image.g.dart b/lib/models/exercises/image.g.dart index 6ef7c62e4..1240dc38d 100644 --- a/lib/models/exercises/image.g.dart +++ b/lib/models/exercises/image.g.dart @@ -20,7 +20,8 @@ ExerciseImage _$ExerciseImageFromJson(Map json) { ); } -Map _$ExerciseImageToJson(ExerciseImage instance) => { +Map _$ExerciseImageToJson(ExerciseImage instance) => + { 'id': instance.id, 'uuid': instance.uuid, 'exercise_base': instance.exerciseBaseId, diff --git a/lib/models/exercises/translation.g.dart b/lib/models/exercises/translation.g.dart index 642c2e7f2..d40525477 100644 --- a/lib/models/exercises/translation.g.dart +++ b/lib/models/exercises/translation.g.dart @@ -22,14 +22,17 @@ Translation _$TranslationFromJson(Map json) { return Translation( id: json['id'] as int?, uuid: json['uuid'] as String?, - created: json['created'] == null ? null : DateTime.parse(json['created'] as String), + created: json['created'] == null + ? null + : DateTime.parse(json['created'] as String), name: json['name'] as String, description: json['description'] as String, baseId: json['exercise_base'] as int?, )..languageId = json['language'] as int; } -Map _$TranslationToJson(Translation instance) => { +Map _$TranslationToJson(Translation instance) => + { 'id': instance.id, 'uuid': instance.uuid, 'language': instance.languageId, diff --git a/lib/models/measurements/measurement_category.g.dart b/lib/models/measurements/measurement_category.g.dart index eb887b2e7..ef4ebcd30 100644 --- a/lib/models/measurements/measurement_category.g.dart +++ b/lib/models/measurements/measurement_category.g.dart @@ -22,7 +22,9 @@ MeasurementCategory _$MeasurementCategoryFromJson(Map json) { ); } -Map _$MeasurementCategoryToJson(MeasurementCategory instance) => { +Map _$MeasurementCategoryToJson( + MeasurementCategory instance) => + { 'id': instance.id, 'name': instance.name, 'unit': instance.unit, diff --git a/lib/models/measurements/measurement_entry.g.dart b/lib/models/measurements/measurement_entry.g.dart index 7f6e346ad..4b0969600 100644 --- a/lib/models/measurements/measurement_entry.g.dart +++ b/lib/models/measurements/measurement_entry.g.dart @@ -20,7 +20,8 @@ MeasurementEntry _$MeasurementEntryFromJson(Map json) { ); } -Map _$MeasurementEntryToJson(MeasurementEntry instance) => { +Map _$MeasurementEntryToJson(MeasurementEntry instance) => + { 'id': instance.id, 'category': instance.category, 'date': toDate(instance.date), diff --git a/lib/models/nutrition/image.g.dart b/lib/models/nutrition/image.g.dart index 0bd0771d9..39272d16a 100644 --- a/lib/models/nutrition/image.g.dart +++ b/lib/models/nutrition/image.g.dart @@ -38,7 +38,8 @@ IngredientImage _$IngredientImageFromJson(Map json) { ); } -Map _$IngredientImageToJson(IngredientImage instance) => { +Map _$IngredientImageToJson(IngredientImage instance) => + { 'id': instance.id, 'uuid': instance.uuid, 'ingredient_id': instance.ingredientId, diff --git a/lib/models/nutrition/ingredient.g.dart b/lib/models/nutrition/ingredient.g.dart index d0ea8cfac..fcff133a6 100644 --- a/lib/models/nutrition/ingredient.g.dart +++ b/lib/models/nutrition/ingredient.g.dart @@ -43,7 +43,8 @@ Ingredient _$IngredientFromJson(Map json) { ); } -Map _$IngredientToJson(Ingredient instance) => { +Map _$IngredientToJson(Ingredient instance) => + { 'id': instance.id, 'code': instance.code, 'name': instance.name, diff --git a/lib/models/nutrition/ingredient_weight_unit.g.dart b/lib/models/nutrition/ingredient_weight_unit.g.dart index f147a2ee1..74b1f1015 100644 --- a/lib/models/nutrition/ingredient_weight_unit.g.dart +++ b/lib/models/nutrition/ingredient_weight_unit.g.dart @@ -13,14 +13,16 @@ IngredientWeightUnit _$IngredientWeightUnitFromJson(Map json) { ); return IngredientWeightUnit( id: json['id'] as int, - weightUnit: WeightUnit.fromJson(json['weight_unit'] as Map), + weightUnit: + WeightUnit.fromJson(json['weight_unit'] as Map), ingredient: Ingredient.fromJson(json['ingredient'] as Map), grams: json['grams'] as int, amount: (json['amount'] as num).toDouble(), ); } -Map _$IngredientWeightUnitToJson(IngredientWeightUnit instance) => +Map _$IngredientWeightUnitToJson( + IngredientWeightUnit instance) => { 'id': instance.id, 'weight_unit': instance.weightUnit, diff --git a/lib/models/nutrition/log.g.dart b/lib/models/nutrition/log.g.dart index 616901551..390687681 100644 --- a/lib/models/nutrition/log.g.dart +++ b/lib/models/nutrition/log.g.dart @@ -9,7 +9,14 @@ part of 'log.dart'; Log _$LogFromJson(Map json) { $checkKeys( json, - requiredKeys: const ['id', 'plan', 'datetime', 'ingredient', 'weight_unit', 'amount'], + requiredKeys: const [ + 'id', + 'plan', + 'datetime', + 'ingredient', + 'weight_unit', + 'amount' + ], ); return Log( id: json['id'] as int?, diff --git a/lib/models/nutrition/nutritional_plan.g.dart b/lib/models/nutrition/nutritional_plan.g.dart index 661a9f47a..9b10d8a5a 100644 --- a/lib/models/nutrition/nutritional_plan.g.dart +++ b/lib/models/nutrition/nutritional_plan.g.dart @@ -18,7 +18,8 @@ NutritionalPlan _$NutritionalPlanFromJson(Map json) { ); } -Map _$NutritionalPlanToJson(NutritionalPlan instance) => { +Map _$NutritionalPlanToJson(NutritionalPlan instance) => + { 'id': instance.id, 'description': instance.description, 'creation_date': toDate(instance.creationDate), diff --git a/lib/models/nutrition/weight_unit.g.dart b/lib/models/nutrition/weight_unit.g.dart index 6f2b9607e..74e1f0cfb 100644 --- a/lib/models/nutrition/weight_unit.g.dart +++ b/lib/models/nutrition/weight_unit.g.dart @@ -17,7 +17,8 @@ WeightUnit _$WeightUnitFromJson(Map json) { ); } -Map _$WeightUnitToJson(WeightUnit instance) => { +Map _$WeightUnitToJson(WeightUnit instance) => + { 'id': instance.id, 'name': instance.name, }; diff --git a/lib/models/user/profile.g.dart b/lib/models/user/profile.g.dart index fc05b9cf2..d9147ebe9 100644 --- a/lib/models/user/profile.g.dart +++ b/lib/models/user/profile.g.dart @@ -9,7 +9,12 @@ part of 'profile.dart'; Profile _$ProfileFromJson(Map json) { $checkKeys( json, - requiredKeys: const ['username', 'email_verified', 'is_trustworthy', 'email'], + requiredKeys: const [ + 'username', + 'email_verified', + 'is_trustworthy', + 'email' + ], ); return Profile( username: json['username'] as String, diff --git a/lib/models/workouts/repetition_unit.g.dart b/lib/models/workouts/repetition_unit.g.dart index 33e6a815e..115dc338c 100644 --- a/lib/models/workouts/repetition_unit.g.dart +++ b/lib/models/workouts/repetition_unit.g.dart @@ -17,7 +17,8 @@ RepetitionUnit _$RepetitionUnitFromJson(Map json) { ); } -Map _$RepetitionUnitToJson(RepetitionUnit instance) => { +Map _$RepetitionUnitToJson(RepetitionUnit instance) => + { 'id': instance.id, 'name': instance.name, }; diff --git a/lib/models/workouts/session.g.dart b/lib/models/workouts/session.g.dart index 79f4fee41..e16affadb 100644 --- a/lib/models/workouts/session.g.dart +++ b/lib/models/workouts/session.g.dart @@ -9,7 +9,14 @@ part of 'session.dart'; WorkoutSession _$WorkoutSessionFromJson(Map json) { $checkKeys( json, - requiredKeys: const ['id', 'workout', 'date', 'impression', 'time_start', 'time_end'], + requiredKeys: const [ + 'id', + 'workout', + 'date', + 'impression', + 'time_start', + 'time_end' + ], ); return WorkoutSession() ..id = json['id'] as int? @@ -21,7 +28,8 @@ WorkoutSession _$WorkoutSessionFromJson(Map json) { ..timeEnd = stringToTime(json['time_end'] as String?); } -Map _$WorkoutSessionToJson(WorkoutSession instance) => { +Map _$WorkoutSessionToJson(WorkoutSession instance) => + { 'id': instance.id, 'workout': instance.workoutId, 'date': toDate(instance.date), diff --git a/lib/models/workouts/weight_unit.g.dart b/lib/models/workouts/weight_unit.g.dart index 6f2b9607e..74e1f0cfb 100644 --- a/lib/models/workouts/weight_unit.g.dart +++ b/lib/models/workouts/weight_unit.g.dart @@ -17,7 +17,8 @@ WeightUnit _$WeightUnitFromJson(Map json) { ); } -Map _$WeightUnitToJson(WeightUnit instance) => { +Map _$WeightUnitToJson(WeightUnit instance) => + { 'id': instance.id, 'name': instance.name, }; diff --git a/lib/models/workouts/workout_plan.g.dart b/lib/models/workouts/workout_plan.g.dart index ac1d6fa9f..ef156e3e0 100644 --- a/lib/models/workouts/workout_plan.g.dart +++ b/lib/models/workouts/workout_plan.g.dart @@ -19,7 +19,8 @@ WorkoutPlan _$WorkoutPlanFromJson(Map json) { ); } -Map _$WorkoutPlanToJson(WorkoutPlan instance) => { +Map _$WorkoutPlanToJson(WorkoutPlan instance) => + { 'id': instance.id, 'creation_date': instance.creationDate.toIso8601String(), 'name': instance.name, diff --git a/macos/Flutter/GeneratedPluginRegistrant.swift b/macos/Flutter/GeneratedPluginRegistrant.swift index 3de627737..0c54ca11e 100644 --- a/macos/Flutter/GeneratedPluginRegistrant.swift +++ b/macos/Flutter/GeneratedPluginRegistrant.swift @@ -10,6 +10,7 @@ import package_info_plus import rive_common import shared_preferences_foundation import url_launcher_macos +import video_player_avfoundation func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { FileSelectorPlugin.register(with: registry.registrar(forPlugin: "FileSelectorPlugin")) @@ -17,4 +18,5 @@ func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { RivePlugin.register(with: registry.registrar(forPlugin: "RivePlugin")) SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin")) UrlLauncherPlugin.register(with: registry.registrar(forPlugin: "UrlLauncherPlugin")) + FVPVideoPlayerPlugin.register(with: registry.registrar(forPlugin: "FVPVideoPlayerPlugin")) } diff --git a/test/exercises/contribute_exercise_test.mocks.dart b/test/exercises/contribute_exercise_test.mocks.dart index ea2b2a429..d57a4f903 100644 --- a/test/exercises/contribute_exercise_test.mocks.dart +++ b/test/exercises/contribute_exercise_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.4.0 from annotations +// Mocks generated by Mockito 5.4.2 from annotations // in wger/test/exercises/contribute_exercise_test.dart. // Do not manually edit this file. @@ -32,7 +32,8 @@ import 'package:wger/providers/user.dart' as _i15; // ignore_for_file: camel_case_types // ignore_for_file: subtype_of_sealed_class -class _FakeWgerBaseProvider_0 extends _i1.SmartFake implements _i2.WgerBaseProvider { +class _FakeWgerBaseProvider_0 extends _i1.SmartFake + implements _i2.WgerBaseProvider { _FakeWgerBaseProvider_0( Object parent, Invocation parentInvocation, @@ -85,7 +86,8 @@ class _FakeAlias_4 extends _i1.SmartFake implements _i6.Alias { /// A class which mocks [AddExerciseProvider]. /// /// See the documentation for Mockito's code generation for more information. -class MockAddExerciseProvider extends _i1.Mock implements _i7.AddExerciseProvider { +class MockAddExerciseProvider extends _i1.Mock + implements _i7.AddExerciseProvider { MockAddExerciseProvider() { _i1.throwOnMissingStub(this); } @@ -98,6 +100,7 @@ class MockAddExerciseProvider extends _i1.Mock implements _i7.AddExerciseProvide Invocation.getter(#baseProvider), ), ) as _i2.WgerBaseProvider); + @override set language(_i8.Language? _language) => super.noSuchMethod( Invocation.setter( @@ -106,6 +109,7 @@ class MockAddExerciseProvider extends _i1.Mock implements _i7.AddExerciseProvide ), returnValueForMissingStub: null, ); + @override set category(_i9.ExerciseCategory? _category) => super.noSuchMethod( Invocation.setter( @@ -114,11 +118,13 @@ class MockAddExerciseProvider extends _i1.Mock implements _i7.AddExerciseProvide ), returnValueForMissingStub: null, ); + @override List<_i10.File> get exerciseImages => (super.noSuchMethod( Invocation.getter(#exerciseImages), returnValue: <_i10.File>[], ) as List<_i10.File>); + @override set exerciseNameEn(String? name) => super.noSuchMethod( Invocation.setter( @@ -127,6 +133,7 @@ class MockAddExerciseProvider extends _i1.Mock implements _i7.AddExerciseProvide ), returnValueForMissingStub: null, ); + @override set exerciseNameTrans(String? name) => super.noSuchMethod( Invocation.setter( @@ -135,6 +142,7 @@ class MockAddExerciseProvider extends _i1.Mock implements _i7.AddExerciseProvide ), returnValueForMissingStub: null, ); + @override set descriptionEn(String? description) => super.noSuchMethod( Invocation.setter( @@ -143,6 +151,7 @@ class MockAddExerciseProvider extends _i1.Mock implements _i7.AddExerciseProvide ), returnValueForMissingStub: null, ); + @override set descriptionTrans(String? description) => super.noSuchMethod( Invocation.setter( @@ -151,6 +160,7 @@ class MockAddExerciseProvider extends _i1.Mock implements _i7.AddExerciseProvide ), returnValueForMissingStub: null, ); + @override set alternateNamesEn(List? names) => super.noSuchMethod( Invocation.setter( @@ -159,6 +169,7 @@ class MockAddExerciseProvider extends _i1.Mock implements _i7.AddExerciseProvide ), returnValueForMissingStub: null, ); + @override set alternateNamesTrans(List? names) => super.noSuchMethod( Invocation.setter( @@ -167,6 +178,7 @@ class MockAddExerciseProvider extends _i1.Mock implements _i7.AddExerciseProvide ), returnValueForMissingStub: null, ); + @override set equipment(List<_i11.Equipment>? equipment) => super.noSuchMethod( Invocation.setter( @@ -175,16 +187,19 @@ class MockAddExerciseProvider extends _i1.Mock implements _i7.AddExerciseProvide ), returnValueForMissingStub: null, ); + @override List<_i11.Equipment> get equipment => (super.noSuchMethod( Invocation.getter(#equipment), returnValue: <_i11.Equipment>[], ) as List<_i11.Equipment>); + @override bool get newVariation => (super.noSuchMethod( Invocation.getter(#newVariation), returnValue: false, ) as bool); + @override set newVariationForExercise(int? value) => super.noSuchMethod( Invocation.setter( @@ -193,6 +208,7 @@ class MockAddExerciseProvider extends _i1.Mock implements _i7.AddExerciseProvide ), returnValueForMissingStub: null, ); + @override set variationId(int? variation) => super.noSuchMethod( Invocation.setter( @@ -201,6 +217,7 @@ class MockAddExerciseProvider extends _i1.Mock implements _i7.AddExerciseProvide ), returnValueForMissingStub: null, ); + @override _i3.ExerciseBase get base => (super.noSuchMethod( Invocation.getter(#base), @@ -209,6 +226,7 @@ class MockAddExerciseProvider extends _i1.Mock implements _i7.AddExerciseProvide Invocation.getter(#base), ), ) as _i3.ExerciseBase); + @override _i4.Translation get exerciseEn => (super.noSuchMethod( Invocation.getter(#exerciseEn), @@ -217,6 +235,7 @@ class MockAddExerciseProvider extends _i1.Mock implements _i7.AddExerciseProvide Invocation.getter(#exerciseEn), ), ) as _i4.Translation); + @override _i4.Translation get exerciseTranslation => (super.noSuchMethod( Invocation.getter(#exerciseTranslation), @@ -225,6 +244,7 @@ class MockAddExerciseProvider extends _i1.Mock implements _i7.AddExerciseProvide Invocation.getter(#exerciseTranslation), ), ) as _i4.Translation); + @override _i5.Variation get variation => (super.noSuchMethod( Invocation.getter(#variation), @@ -233,11 +253,13 @@ class MockAddExerciseProvider extends _i1.Mock implements _i7.AddExerciseProvide Invocation.getter(#variation), ), ) as _i5.Variation); + @override List<_i12.Muscle> get primaryMuscles => (super.noSuchMethod( Invocation.getter(#primaryMuscles), returnValue: <_i12.Muscle>[], ) as List<_i12.Muscle>); + @override set primaryMuscles(List<_i12.Muscle>? muscles) => super.noSuchMethod( Invocation.setter( @@ -246,11 +268,13 @@ class MockAddExerciseProvider extends _i1.Mock implements _i7.AddExerciseProvide ), returnValueForMissingStub: null, ); + @override List<_i12.Muscle> get secondaryMuscles => (super.noSuchMethod( Invocation.getter(#secondaryMuscles), returnValue: <_i12.Muscle>[], ) as List<_i12.Muscle>); + @override set secondaryMuscles(List<_i12.Muscle>? muscles) => super.noSuchMethod( Invocation.setter( @@ -259,11 +283,13 @@ class MockAddExerciseProvider extends _i1.Mock implements _i7.AddExerciseProvide ), returnValueForMissingStub: null, ); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); + @override void clear() => super.noSuchMethod( Invocation.method( @@ -272,6 +298,7 @@ class MockAddExerciseProvider extends _i1.Mock implements _i7.AddExerciseProvide ), returnValueForMissingStub: null, ); + @override void addExerciseImages(List<_i10.File>? exercises) => super.noSuchMethod( Invocation.method( @@ -280,6 +307,7 @@ class MockAddExerciseProvider extends _i1.Mock implements _i7.AddExerciseProvide ), returnValueForMissingStub: null, ); + @override void removeExercise(String? path) => super.noSuchMethod( Invocation.method( @@ -288,6 +316,7 @@ class MockAddExerciseProvider extends _i1.Mock implements _i7.AddExerciseProvide ), returnValueForMissingStub: null, ); + @override void printValues() => super.noSuchMethod( Invocation.method( @@ -296,6 +325,7 @@ class MockAddExerciseProvider extends _i1.Mock implements _i7.AddExerciseProvide ), returnValueForMissingStub: null, ); + @override _i13.Future addExercise() => (super.noSuchMethod( Invocation.method( @@ -304,6 +334,7 @@ class MockAddExerciseProvider extends _i1.Mock implements _i7.AddExerciseProvide ), returnValue: _i13.Future.value(0), ) as _i13.Future); + @override _i13.Future<_i3.ExerciseBase> addExerciseBase() => (super.noSuchMethod( Invocation.method( @@ -318,6 +349,7 @@ class MockAddExerciseProvider extends _i1.Mock implements _i7.AddExerciseProvide ), )), ) as _i13.Future<_i3.ExerciseBase>); + @override _i13.Future<_i5.Variation> addVariation() => (super.noSuchMethod( Invocation.method( @@ -332,6 +364,7 @@ class MockAddExerciseProvider extends _i1.Mock implements _i7.AddExerciseProvide ), )), ) as _i13.Future<_i5.Variation>); + @override _i13.Future addImages(_i3.ExerciseBase? base) => (super.noSuchMethod( Invocation.method( @@ -341,8 +374,10 @@ class MockAddExerciseProvider extends _i1.Mock implements _i7.AddExerciseProvide returnValue: _i13.Future.value(), returnValueForMissingStub: _i13.Future.value(), ) as _i13.Future); + @override - _i13.Future<_i4.Translation> addExerciseTranslation(_i4.Translation? exercise) => + _i13.Future<_i4.Translation> addExerciseTranslation( + _i4.Translation? exercise) => (super.noSuchMethod( Invocation.method( #addExerciseTranslation, @@ -356,6 +391,7 @@ class MockAddExerciseProvider extends _i1.Mock implements _i7.AddExerciseProvide ), )), ) as _i13.Future<_i4.Translation>); + @override _i13.Future<_i6.Alias> addExerciseAlias( String? name, @@ -380,6 +416,7 @@ class MockAddExerciseProvider extends _i1.Mock implements _i7.AddExerciseProvide ), )), ) as _i13.Future<_i6.Alias>); + @override void addListener(_i14.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -388,6 +425,7 @@ class MockAddExerciseProvider extends _i1.Mock implements _i7.AddExerciseProvide ), returnValueForMissingStub: null, ); + @override void removeListener(_i14.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -396,6 +434,7 @@ class MockAddExerciseProvider extends _i1.Mock implements _i7.AddExerciseProvide ), returnValueForMissingStub: null, ); + @override void dispose() => super.noSuchMethod( Invocation.method( @@ -404,6 +443,7 @@ class MockAddExerciseProvider extends _i1.Mock implements _i7.AddExerciseProvide ), returnValueForMissingStub: null, ); + @override void notifyListeners() => super.noSuchMethod( Invocation.method( @@ -430,6 +470,7 @@ class MockUserProvider extends _i1.Mock implements _i15.UserProvider { Invocation.getter(#baseProvider), ), ) as _i2.WgerBaseProvider); + @override set profile(_i16.Profile? _profile) => super.noSuchMethod( Invocation.setter( @@ -438,11 +479,13 @@ class MockUserProvider extends _i1.Mock implements _i15.UserProvider { ), returnValueForMissingStub: null, ); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); + @override void clear() => super.noSuchMethod( Invocation.method( @@ -451,6 +494,7 @@ class MockUserProvider extends _i1.Mock implements _i15.UserProvider { ), returnValueForMissingStub: null, ); + @override _i13.Future fetchAndSetProfile() => (super.noSuchMethod( Invocation.method( @@ -460,6 +504,7 @@ class MockUserProvider extends _i1.Mock implements _i15.UserProvider { returnValue: _i13.Future.value(), returnValueForMissingStub: _i13.Future.value(), ) as _i13.Future); + @override _i13.Future saveProfile() => (super.noSuchMethod( Invocation.method( @@ -469,6 +514,7 @@ class MockUserProvider extends _i1.Mock implements _i15.UserProvider { returnValue: _i13.Future.value(), returnValueForMissingStub: _i13.Future.value(), ) as _i13.Future); + @override _i13.Future verifyEmail() => (super.noSuchMethod( Invocation.method( @@ -478,6 +524,7 @@ class MockUserProvider extends _i1.Mock implements _i15.UserProvider { returnValue: _i13.Future.value(), returnValueForMissingStub: _i13.Future.value(), ) as _i13.Future); + @override void addListener(_i14.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -486,6 +533,7 @@ class MockUserProvider extends _i1.Mock implements _i15.UserProvider { ), returnValueForMissingStub: null, ); + @override void removeListener(_i14.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -494,6 +542,7 @@ class MockUserProvider extends _i1.Mock implements _i15.UserProvider { ), returnValueForMissingStub: null, ); + @override void dispose() => super.noSuchMethod( Invocation.method( @@ -502,6 +551,7 @@ class MockUserProvider extends _i1.Mock implements _i15.UserProvider { ), returnValueForMissingStub: null, ); + @override void notifyListeners() => super.noSuchMethod( Invocation.method( diff --git a/test/gallery/gallery_form_test.mocks.dart b/test/gallery/gallery_form_test.mocks.dart index fd2c12414..68ca4e783 100644 --- a/test/gallery/gallery_form_test.mocks.dart +++ b/test/gallery/gallery_form_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.4.0 from annotations +// Mocks generated by Mockito 5.4.2 from annotations // in wger/test/gallery/gallery_form_test.dart. // Do not manually edit this file. @@ -77,6 +77,7 @@ class MockGalleryProvider extends _i1.Mock implements _i4.GalleryProvider { Invocation.getter(#images), returnValue: <_i5.Image>[], ) as List<_i5.Image>); + @override set images(List<_i5.Image>? _images) => super.noSuchMethod( Invocation.setter( @@ -85,6 +86,7 @@ class MockGalleryProvider extends _i1.Mock implements _i4.GalleryProvider { ), returnValueForMissingStub: null, ); + @override _i2.AuthProvider get auth => (super.noSuchMethod( Invocation.getter(#auth), @@ -93,6 +95,7 @@ class MockGalleryProvider extends _i1.Mock implements _i4.GalleryProvider { Invocation.getter(#auth), ), ) as _i2.AuthProvider); + @override set auth(_i2.AuthProvider? _auth) => super.noSuchMethod( Invocation.setter( @@ -101,6 +104,7 @@ class MockGalleryProvider extends _i1.Mock implements _i4.GalleryProvider { ), returnValueForMissingStub: null, ); + @override _i3.Client get client => (super.noSuchMethod( Invocation.getter(#client), @@ -109,6 +113,7 @@ class MockGalleryProvider extends _i1.Mock implements _i4.GalleryProvider { Invocation.getter(#client), ), ) as _i3.Client); + @override set client(_i3.Client? _client) => super.noSuchMethod( Invocation.setter( @@ -117,11 +122,13 @@ class MockGalleryProvider extends _i1.Mock implements _i4.GalleryProvider { ), returnValueForMissingStub: null, ); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); + @override void clear() => super.noSuchMethod( Invocation.method( @@ -130,6 +137,7 @@ class MockGalleryProvider extends _i1.Mock implements _i4.GalleryProvider { ), returnValueForMissingStub: null, ); + @override _i6.Future fetchAndSetGallery() => (super.noSuchMethod( Invocation.method( @@ -139,6 +147,7 @@ class MockGalleryProvider extends _i1.Mock implements _i4.GalleryProvider { returnValue: _i6.Future.value(), returnValueForMissingStub: _i6.Future.value(), ) as _i6.Future); + @override _i6.Future addImage( _i5.Image? image, @@ -155,6 +164,7 @@ class MockGalleryProvider extends _i1.Mock implements _i4.GalleryProvider { returnValue: _i6.Future.value(), returnValueForMissingStub: _i6.Future.value(), ) as _i6.Future); + @override _i6.Future editImage( _i5.Image? image, @@ -171,6 +181,7 @@ class MockGalleryProvider extends _i1.Mock implements _i4.GalleryProvider { returnValue: _i6.Future.value(), returnValueForMissingStub: _i6.Future.value(), ) as _i6.Future); + @override _i6.Future deleteImage(_i5.Image? image) => (super.noSuchMethod( Invocation.method( @@ -180,8 +191,10 @@ class MockGalleryProvider extends _i1.Mock implements _i4.GalleryProvider { returnValue: _i6.Future.value(), returnValueForMissingStub: _i6.Future.value(), ) as _i6.Future); + @override - Map getDefaultHeaders({dynamic includeAuth = false}) => (super.noSuchMethod( + Map getDefaultHeaders({dynamic includeAuth = false}) => + (super.noSuchMethod( Invocation.method( #getDefaultHeaders, [], @@ -189,6 +202,7 @@ class MockGalleryProvider extends _i1.Mock implements _i4.GalleryProvider { ), returnValue: {}, ) as Map); + @override Uri makeUrl( String? path, { @@ -219,14 +233,17 @@ class MockGalleryProvider extends _i1.Mock implements _i4.GalleryProvider { ), ), ) as Uri); + @override _i6.Future> fetch(Uri? uri) => (super.noSuchMethod( Invocation.method( #fetch, [uri], ), - returnValue: _i6.Future>.value({}), + returnValue: + _i6.Future>.value({}), ) as _i6.Future>); + @override _i6.Future> fetchPaginated(Uri? uri) => (super.noSuchMethod( Invocation.method( @@ -235,6 +252,7 @@ class MockGalleryProvider extends _i1.Mock implements _i4.GalleryProvider { ), returnValue: _i6.Future>.value([]), ) as _i6.Future>); + @override _i6.Future> post( Map? data, @@ -248,8 +266,10 @@ class MockGalleryProvider extends _i1.Mock implements _i4.GalleryProvider { uri, ], ), - returnValue: _i6.Future>.value({}), + returnValue: + _i6.Future>.value({}), ) as _i6.Future>); + @override _i6.Future> patch( Map? data, @@ -263,8 +283,10 @@ class MockGalleryProvider extends _i1.Mock implements _i4.GalleryProvider { uri, ], ), - returnValue: _i6.Future>.value({}), + returnValue: + _i6.Future>.value({}), ) as _i6.Future>); + @override _i6.Future<_i3.Response> deleteRequest( String? url, @@ -289,6 +311,7 @@ class MockGalleryProvider extends _i1.Mock implements _i4.GalleryProvider { ), )), ) as _i6.Future<_i3.Response>); + @override void addListener(_i8.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -297,6 +320,7 @@ class MockGalleryProvider extends _i1.Mock implements _i4.GalleryProvider { ), returnValueForMissingStub: null, ); + @override void removeListener(_i8.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -305,6 +329,7 @@ class MockGalleryProvider extends _i1.Mock implements _i4.GalleryProvider { ), returnValueForMissingStub: null, ); + @override void dispose() => super.noSuchMethod( Invocation.method( @@ -313,6 +338,7 @@ class MockGalleryProvider extends _i1.Mock implements _i4.GalleryProvider { ), returnValueForMissingStub: null, ); + @override void notifyListeners() => super.noSuchMethod( Invocation.method( diff --git a/test/gallery/gallery_screen_test.mocks.dart b/test/gallery/gallery_screen_test.mocks.dart index 628b8a407..5bf657f70 100644 --- a/test/gallery/gallery_screen_test.mocks.dart +++ b/test/gallery/gallery_screen_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.4.0 from annotations +// Mocks generated by Mockito 5.4.2 from annotations // in wger/test/gallery/gallery_screen_test.dart. // Do not manually edit this file. @@ -77,6 +77,7 @@ class MockGalleryProvider extends _i1.Mock implements _i4.GalleryProvider { Invocation.getter(#images), returnValue: <_i5.Image>[], ) as List<_i5.Image>); + @override set images(List<_i5.Image>? _images) => super.noSuchMethod( Invocation.setter( @@ -85,6 +86,7 @@ class MockGalleryProvider extends _i1.Mock implements _i4.GalleryProvider { ), returnValueForMissingStub: null, ); + @override _i2.AuthProvider get auth => (super.noSuchMethod( Invocation.getter(#auth), @@ -93,6 +95,7 @@ class MockGalleryProvider extends _i1.Mock implements _i4.GalleryProvider { Invocation.getter(#auth), ), ) as _i2.AuthProvider); + @override set auth(_i2.AuthProvider? _auth) => super.noSuchMethod( Invocation.setter( @@ -101,6 +104,7 @@ class MockGalleryProvider extends _i1.Mock implements _i4.GalleryProvider { ), returnValueForMissingStub: null, ); + @override _i3.Client get client => (super.noSuchMethod( Invocation.getter(#client), @@ -109,6 +113,7 @@ class MockGalleryProvider extends _i1.Mock implements _i4.GalleryProvider { Invocation.getter(#client), ), ) as _i3.Client); + @override set client(_i3.Client? _client) => super.noSuchMethod( Invocation.setter( @@ -117,11 +122,13 @@ class MockGalleryProvider extends _i1.Mock implements _i4.GalleryProvider { ), returnValueForMissingStub: null, ); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); + @override void clear() => super.noSuchMethod( Invocation.method( @@ -130,6 +137,7 @@ class MockGalleryProvider extends _i1.Mock implements _i4.GalleryProvider { ), returnValueForMissingStub: null, ); + @override _i6.Future fetchAndSetGallery() => (super.noSuchMethod( Invocation.method( @@ -139,6 +147,7 @@ class MockGalleryProvider extends _i1.Mock implements _i4.GalleryProvider { returnValue: _i6.Future.value(), returnValueForMissingStub: _i6.Future.value(), ) as _i6.Future); + @override _i6.Future addImage( _i5.Image? image, @@ -155,6 +164,7 @@ class MockGalleryProvider extends _i1.Mock implements _i4.GalleryProvider { returnValue: _i6.Future.value(), returnValueForMissingStub: _i6.Future.value(), ) as _i6.Future); + @override _i6.Future editImage( _i5.Image? image, @@ -171,6 +181,7 @@ class MockGalleryProvider extends _i1.Mock implements _i4.GalleryProvider { returnValue: _i6.Future.value(), returnValueForMissingStub: _i6.Future.value(), ) as _i6.Future); + @override _i6.Future deleteImage(_i5.Image? image) => (super.noSuchMethod( Invocation.method( @@ -180,8 +191,10 @@ class MockGalleryProvider extends _i1.Mock implements _i4.GalleryProvider { returnValue: _i6.Future.value(), returnValueForMissingStub: _i6.Future.value(), ) as _i6.Future); + @override - Map getDefaultHeaders({dynamic includeAuth = false}) => (super.noSuchMethod( + Map getDefaultHeaders({dynamic includeAuth = false}) => + (super.noSuchMethod( Invocation.method( #getDefaultHeaders, [], @@ -189,6 +202,7 @@ class MockGalleryProvider extends _i1.Mock implements _i4.GalleryProvider { ), returnValue: {}, ) as Map); + @override Uri makeUrl( String? path, { @@ -219,14 +233,17 @@ class MockGalleryProvider extends _i1.Mock implements _i4.GalleryProvider { ), ), ) as Uri); + @override _i6.Future> fetch(Uri? uri) => (super.noSuchMethod( Invocation.method( #fetch, [uri], ), - returnValue: _i6.Future>.value({}), + returnValue: + _i6.Future>.value({}), ) as _i6.Future>); + @override _i6.Future> fetchPaginated(Uri? uri) => (super.noSuchMethod( Invocation.method( @@ -235,6 +252,7 @@ class MockGalleryProvider extends _i1.Mock implements _i4.GalleryProvider { ), returnValue: _i6.Future>.value([]), ) as _i6.Future>); + @override _i6.Future> post( Map? data, @@ -248,8 +266,10 @@ class MockGalleryProvider extends _i1.Mock implements _i4.GalleryProvider { uri, ], ), - returnValue: _i6.Future>.value({}), + returnValue: + _i6.Future>.value({}), ) as _i6.Future>); + @override _i6.Future> patch( Map? data, @@ -263,8 +283,10 @@ class MockGalleryProvider extends _i1.Mock implements _i4.GalleryProvider { uri, ], ), - returnValue: _i6.Future>.value({}), + returnValue: + _i6.Future>.value({}), ) as _i6.Future>); + @override _i6.Future<_i3.Response> deleteRequest( String? url, @@ -289,6 +311,7 @@ class MockGalleryProvider extends _i1.Mock implements _i4.GalleryProvider { ), )), ) as _i6.Future<_i3.Response>); + @override void addListener(_i8.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -297,6 +320,7 @@ class MockGalleryProvider extends _i1.Mock implements _i4.GalleryProvider { ), returnValueForMissingStub: null, ); + @override void removeListener(_i8.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -305,6 +329,7 @@ class MockGalleryProvider extends _i1.Mock implements _i4.GalleryProvider { ), returnValueForMissingStub: null, ); + @override void dispose() => super.noSuchMethod( Invocation.method( @@ -313,6 +338,7 @@ class MockGalleryProvider extends _i1.Mock implements _i4.GalleryProvider { ), returnValueForMissingStub: null, ); + @override void notifyListeners() => super.noSuchMethod( Invocation.method( diff --git a/test/measurements/measurement_categories_screen_test.mocks.dart b/test/measurements/measurement_categories_screen_test.mocks.dart index 037234a47..4459e9d66 100644 --- a/test/measurements/measurement_categories_screen_test.mocks.dart +++ b/test/measurements/measurement_categories_screen_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.4.0 from annotations +// Mocks generated by Mockito 5.4.2 from annotations // in wger/test/measurements/measurement_categories_screen_test.dart. // Do not manually edit this file. @@ -23,7 +23,8 @@ import 'package:wger/providers/measurement.dart' as _i4; // ignore_for_file: camel_case_types // ignore_for_file: subtype_of_sealed_class -class _FakeWgerBaseProvider_0 extends _i1.SmartFake implements _i2.WgerBaseProvider { +class _FakeWgerBaseProvider_0 extends _i1.SmartFake + implements _i2.WgerBaseProvider { _FakeWgerBaseProvider_0( Object parent, Invocation parentInvocation, @@ -33,7 +34,8 @@ class _FakeWgerBaseProvider_0 extends _i1.SmartFake implements _i2.WgerBaseProvi ); } -class _FakeMeasurementCategory_1 extends _i1.SmartFake implements _i3.MeasurementCategory { +class _FakeMeasurementCategory_1 extends _i1.SmartFake + implements _i3.MeasurementCategory { _FakeMeasurementCategory_1( Object parent, Invocation parentInvocation, @@ -46,7 +48,8 @@ class _FakeMeasurementCategory_1 extends _i1.SmartFake implements _i3.Measuremen /// A class which mocks [MeasurementProvider]. /// /// See the documentation for Mockito's code generation for more information. -class MockMeasurementProvider extends _i1.Mock implements _i4.MeasurementProvider { +class MockMeasurementProvider extends _i1.Mock + implements _i4.MeasurementProvider { MockMeasurementProvider() { _i1.throwOnMissingStub(this); } @@ -59,16 +62,19 @@ class MockMeasurementProvider extends _i1.Mock implements _i4.MeasurementProvide Invocation.getter(#baseProvider), ), ) as _i2.WgerBaseProvider); + @override List<_i3.MeasurementCategory> get categories => (super.noSuchMethod( Invocation.getter(#categories), returnValue: <_i3.MeasurementCategory>[], ) as List<_i3.MeasurementCategory>); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); + @override void clear() => super.noSuchMethod( Invocation.method( @@ -77,6 +83,7 @@ class MockMeasurementProvider extends _i1.Mock implements _i4.MeasurementProvide ), returnValueForMissingStub: null, ); + @override _i3.MeasurementCategory findCategoryById(int? id) => (super.noSuchMethod( Invocation.method( @@ -91,6 +98,7 @@ class MockMeasurementProvider extends _i1.Mock implements _i4.MeasurementProvide ), ), ) as _i3.MeasurementCategory); + @override _i5.Future fetchAndSetCategories() => (super.noSuchMethod( Invocation.method( @@ -100,6 +108,7 @@ class MockMeasurementProvider extends _i1.Mock implements _i4.MeasurementProvide returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); + @override _i5.Future fetchAndSetCategoryEntries(int? id) => (super.noSuchMethod( Invocation.method( @@ -109,6 +118,7 @@ class MockMeasurementProvider extends _i1.Mock implements _i4.MeasurementProvide returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); + @override _i5.Future fetchAndSetAllCategoriesAndEntries() => (super.noSuchMethod( Invocation.method( @@ -118,8 +128,10 @@ class MockMeasurementProvider extends _i1.Mock implements _i4.MeasurementProvide returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); + @override - _i5.Future addCategory(_i3.MeasurementCategory? category) => (super.noSuchMethod( + _i5.Future addCategory(_i3.MeasurementCategory? category) => + (super.noSuchMethod( Invocation.method( #addCategory, [category], @@ -127,6 +139,7 @@ class MockMeasurementProvider extends _i1.Mock implements _i4.MeasurementProvide returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); + @override _i5.Future deleteCategory(int? id) => (super.noSuchMethod( Invocation.method( @@ -136,6 +149,7 @@ class MockMeasurementProvider extends _i1.Mock implements _i4.MeasurementProvide returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); + @override _i5.Future editCategory( int? id, @@ -154,6 +168,7 @@ class MockMeasurementProvider extends _i1.Mock implements _i4.MeasurementProvide returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); + @override _i5.Future addEntry(_i6.MeasurementEntry? entry) => (super.noSuchMethod( Invocation.method( @@ -163,6 +178,7 @@ class MockMeasurementProvider extends _i1.Mock implements _i4.MeasurementProvide returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); + @override _i5.Future deleteEntry( int? id, @@ -179,6 +195,7 @@ class MockMeasurementProvider extends _i1.Mock implements _i4.MeasurementProvide returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); + @override _i5.Future editEntry( int? id, @@ -201,6 +218,7 @@ class MockMeasurementProvider extends _i1.Mock implements _i4.MeasurementProvide returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); + @override void addListener(_i7.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -209,6 +227,7 @@ class MockMeasurementProvider extends _i1.Mock implements _i4.MeasurementProvide ), returnValueForMissingStub: null, ); + @override void removeListener(_i7.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -217,6 +236,7 @@ class MockMeasurementProvider extends _i1.Mock implements _i4.MeasurementProvide ), returnValueForMissingStub: null, ); + @override void dispose() => super.noSuchMethod( Invocation.method( @@ -225,6 +245,7 @@ class MockMeasurementProvider extends _i1.Mock implements _i4.MeasurementProvide ), returnValueForMissingStub: null, ); + @override void notifyListeners() => super.noSuchMethod( Invocation.method( diff --git a/test/measurements/measurement_provider_test.mocks.dart b/test/measurements/measurement_provider_test.mocks.dart index f09d99228..b18f41ef6 100644 --- a/test/measurements/measurement_provider_test.mocks.dart +++ b/test/measurements/measurement_provider_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.4.0 from annotations +// Mocks generated by Mockito 5.4.2 from annotations // in wger/test/measurements/measurement_provider_test.dart. // Do not manually edit this file. @@ -77,6 +77,7 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { Invocation.getter(#auth), ), ) as _i2.AuthProvider); + @override set auth(_i2.AuthProvider? _auth) => super.noSuchMethod( Invocation.setter( @@ -85,6 +86,7 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { ), returnValueForMissingStub: null, ); + @override _i3.Client get client => (super.noSuchMethod( Invocation.getter(#client), @@ -93,6 +95,7 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { Invocation.getter(#client), ), ) as _i3.Client); + @override set client(_i3.Client? _client) => super.noSuchMethod( Invocation.setter( @@ -101,8 +104,10 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { ), returnValueForMissingStub: null, ); + @override - Map getDefaultHeaders({dynamic includeAuth = false}) => (super.noSuchMethod( + Map getDefaultHeaders({dynamic includeAuth = false}) => + (super.noSuchMethod( Invocation.method( #getDefaultHeaders, [], @@ -110,6 +115,7 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { ), returnValue: {}, ) as Map); + @override Uri makeUrl( String? path, { @@ -140,14 +146,17 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { ), ), ) as Uri); + @override _i5.Future> fetch(Uri? uri) => (super.noSuchMethod( Invocation.method( #fetch, [uri], ), - returnValue: _i5.Future>.value({}), + returnValue: + _i5.Future>.value({}), ) as _i5.Future>); + @override _i5.Future> fetchPaginated(Uri? uri) => (super.noSuchMethod( Invocation.method( @@ -156,6 +165,7 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { ), returnValue: _i5.Future>.value([]), ) as _i5.Future>); + @override _i5.Future> post( Map? data, @@ -169,8 +179,10 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { uri, ], ), - returnValue: _i5.Future>.value({}), + returnValue: + _i5.Future>.value({}), ) as _i5.Future>); + @override _i5.Future> patch( Map? data, @@ -184,8 +196,10 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { uri, ], ), - returnValue: _i5.Future>.value({}), + returnValue: + _i5.Future>.value({}), ) as _i5.Future>); + @override _i5.Future<_i3.Response> deleteRequest( String? url, diff --git a/test/nutrition/nutritional_meal_form_test.mocks.dart b/test/nutrition/nutritional_meal_form_test.mocks.dart index 6c194374e..8ed74c571 100644 --- a/test/nutrition/nutritional_meal_form_test.mocks.dart +++ b/test/nutrition/nutritional_meal_form_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.4.0 from annotations +// Mocks generated by Mockito 5.4.2 from annotations // in wger/test/nutrition/nutritional_meal_form_test.dart. // Do not manually edit this file. @@ -25,7 +25,8 @@ import 'package:wger/providers/nutrition.dart' as _i7; // ignore_for_file: camel_case_types // ignore_for_file: subtype_of_sealed_class -class _FakeWgerBaseProvider_0 extends _i1.SmartFake implements _i2.WgerBaseProvider { +class _FakeWgerBaseProvider_0 extends _i1.SmartFake + implements _i2.WgerBaseProvider { _FakeWgerBaseProvider_0( Object parent, Invocation parentInvocation, @@ -35,7 +36,8 @@ class _FakeWgerBaseProvider_0 extends _i1.SmartFake implements _i2.WgerBaseProvi ); } -class _FakeNutritionalPlan_1 extends _i1.SmartFake implements _i3.NutritionalPlan { +class _FakeNutritionalPlan_1 extends _i1.SmartFake + implements _i3.NutritionalPlan { _FakeNutritionalPlan_1( Object parent, Invocation parentInvocation, @@ -78,7 +80,8 @@ class _FakeIngredient_4 extends _i1.SmartFake implements _i6.Ingredient { /// A class which mocks [NutritionPlansProvider]. /// /// See the documentation for Mockito's code generation for more information. -class MockNutritionPlansProvider extends _i1.Mock implements _i7.NutritionPlansProvider { +class MockNutritionPlansProvider extends _i1.Mock + implements _i7.NutritionPlansProvider { MockNutritionPlansProvider() { _i1.throwOnMissingStub(this); } @@ -91,11 +94,13 @@ class MockNutritionPlansProvider extends _i1.Mock implements _i7.NutritionPlansP Invocation.getter(#baseProvider), ), ) as _i2.WgerBaseProvider); + @override List<_i3.NutritionalPlan> get items => (super.noSuchMethod( Invocation.getter(#items), returnValue: <_i3.NutritionalPlan>[], ) as List<_i3.NutritionalPlan>); + @override set ingredients(dynamic items) => super.noSuchMethod( Invocation.setter( @@ -104,11 +109,13 @@ class MockNutritionPlansProvider extends _i1.Mock implements _i7.NutritionPlansP ), returnValueForMissingStub: null, ); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); + @override void clear() => super.noSuchMethod( Invocation.method( @@ -117,6 +124,7 @@ class MockNutritionPlansProvider extends _i1.Mock implements _i7.NutritionPlansP ), returnValueForMissingStub: null, ); + @override _i3.NutritionalPlan findById(int? id) => (super.noSuchMethod( Invocation.method( @@ -131,11 +139,13 @@ class MockNutritionPlansProvider extends _i1.Mock implements _i7.NutritionPlansP ), ), ) as _i3.NutritionalPlan); + @override _i4.Meal? findMealById(int? id) => (super.noSuchMethod(Invocation.method( #findMealById, [id], )) as _i4.Meal?); + @override _i8.Future fetchAndSetAllPlansSparse() => (super.noSuchMethod( Invocation.method( @@ -145,6 +155,7 @@ class MockNutritionPlansProvider extends _i1.Mock implements _i7.NutritionPlansP returnValue: _i8.Future.value(), returnValueForMissingStub: _i8.Future.value(), ) as _i8.Future); + @override _i8.Future fetchAndSetAllPlansFull() => (super.noSuchMethod( Invocation.method( @@ -154,13 +165,16 @@ class MockNutritionPlansProvider extends _i1.Mock implements _i7.NutritionPlansP returnValue: _i8.Future.value(), returnValueForMissingStub: _i8.Future.value(), ) as _i8.Future); + @override - _i8.Future<_i3.NutritionalPlan> fetchAndSetPlanSparse(int? planId) => (super.noSuchMethod( + _i8.Future<_i3.NutritionalPlan> fetchAndSetPlanSparse(int? planId) => + (super.noSuchMethod( Invocation.method( #fetchAndSetPlanSparse, [planId], ), - returnValue: _i8.Future<_i3.NutritionalPlan>.value(_FakeNutritionalPlan_1( + returnValue: + _i8.Future<_i3.NutritionalPlan>.value(_FakeNutritionalPlan_1( this, Invocation.method( #fetchAndSetPlanSparse, @@ -168,13 +182,16 @@ class MockNutritionPlansProvider extends _i1.Mock implements _i7.NutritionPlansP ), )), ) as _i8.Future<_i3.NutritionalPlan>); + @override - _i8.Future<_i3.NutritionalPlan> fetchAndSetPlanFull(int? planId) => (super.noSuchMethod( + _i8.Future<_i3.NutritionalPlan> fetchAndSetPlanFull(int? planId) => + (super.noSuchMethod( Invocation.method( #fetchAndSetPlanFull, [planId], ), - returnValue: _i8.Future<_i3.NutritionalPlan>.value(_FakeNutritionalPlan_1( + returnValue: + _i8.Future<_i3.NutritionalPlan>.value(_FakeNutritionalPlan_1( this, Invocation.method( #fetchAndSetPlanFull, @@ -182,13 +199,16 @@ class MockNutritionPlansProvider extends _i1.Mock implements _i7.NutritionPlansP ), )), ) as _i8.Future<_i3.NutritionalPlan>); + @override - _i8.Future<_i3.NutritionalPlan> addPlan(_i3.NutritionalPlan? planData) => (super.noSuchMethod( + _i8.Future<_i3.NutritionalPlan> addPlan(_i3.NutritionalPlan? planData) => + (super.noSuchMethod( Invocation.method( #addPlan, [planData], ), - returnValue: _i8.Future<_i3.NutritionalPlan>.value(_FakeNutritionalPlan_1( + returnValue: + _i8.Future<_i3.NutritionalPlan>.value(_FakeNutritionalPlan_1( this, Invocation.method( #addPlan, @@ -196,6 +216,7 @@ class MockNutritionPlansProvider extends _i1.Mock implements _i7.NutritionPlansP ), )), ) as _i8.Future<_i3.NutritionalPlan>); + @override _i8.Future editPlan(_i3.NutritionalPlan? plan) => (super.noSuchMethod( Invocation.method( @@ -205,6 +226,7 @@ class MockNutritionPlansProvider extends _i1.Mock implements _i7.NutritionPlansP returnValue: _i8.Future.value(), returnValueForMissingStub: _i8.Future.value(), ) as _i8.Future); + @override _i8.Future deletePlan(int? id) => (super.noSuchMethod( Invocation.method( @@ -214,6 +236,7 @@ class MockNutritionPlansProvider extends _i1.Mock implements _i7.NutritionPlansP returnValue: _i8.Future.value(), returnValueForMissingStub: _i8.Future.value(), ) as _i8.Future); + @override _i8.Future<_i4.Meal> addMeal( _i4.Meal? meal, @@ -238,6 +261,7 @@ class MockNutritionPlansProvider extends _i1.Mock implements _i7.NutritionPlansP ), )), ) as _i8.Future<_i4.Meal>); + @override _i8.Future<_i4.Meal> editMeal(_i4.Meal? meal) => (super.noSuchMethod( Invocation.method( @@ -252,6 +276,7 @@ class MockNutritionPlansProvider extends _i1.Mock implements _i7.NutritionPlansP ), )), ) as _i8.Future<_i4.Meal>); + @override _i8.Future deleteMeal(_i4.Meal? meal) => (super.noSuchMethod( Invocation.method( @@ -261,6 +286,7 @@ class MockNutritionPlansProvider extends _i1.Mock implements _i7.NutritionPlansP returnValue: _i8.Future.value(), returnValueForMissingStub: _i8.Future.value(), ) as _i8.Future); + @override _i8.Future<_i5.MealItem> addMealItem( _i5.MealItem? mealItem, @@ -285,8 +311,10 @@ class MockNutritionPlansProvider extends _i1.Mock implements _i7.NutritionPlansP ), )), ) as _i8.Future<_i5.MealItem>); + @override - _i8.Future deleteMealItem(_i5.MealItem? mealItem) => (super.noSuchMethod( + _i8.Future deleteMealItem(_i5.MealItem? mealItem) => + (super.noSuchMethod( Invocation.method( #deleteMealItem, [mealItem], @@ -294,8 +322,10 @@ class MockNutritionPlansProvider extends _i1.Mock implements _i7.NutritionPlansP returnValue: _i8.Future.value(), returnValueForMissingStub: _i8.Future.value(), ) as _i8.Future); + @override - _i8.Future<_i6.Ingredient> fetchIngredient(int? ingredientId) => (super.noSuchMethod( + _i8.Future<_i6.Ingredient> fetchIngredient(int? ingredientId) => + (super.noSuchMethod( Invocation.method( #fetchIngredient, [ingredientId], @@ -308,6 +338,7 @@ class MockNutritionPlansProvider extends _i1.Mock implements _i7.NutritionPlansP ), )), ) as _i8.Future<_i6.Ingredient>); + @override _i8.Future fetchIngredientsFromCache() => (super.noSuchMethod( Invocation.method( @@ -317,6 +348,7 @@ class MockNutritionPlansProvider extends _i1.Mock implements _i7.NutritionPlansP returnValue: _i8.Future.value(), returnValueForMissingStub: _i8.Future.value(), ) as _i8.Future); + @override _i8.Future> searchIngredient( String? name, { @@ -334,14 +366,17 @@ class MockNutritionPlansProvider extends _i1.Mock implements _i7.NutritionPlansP ), returnValue: _i8.Future>.value([]), ) as _i8.Future>); + @override - _i8.Future<_i6.Ingredient?> searchIngredientWithCode(String? code) => (super.noSuchMethod( + _i8.Future<_i6.Ingredient?> searchIngredientWithCode(String? code) => + (super.noSuchMethod( Invocation.method( #searchIngredientWithCode, [code], ), returnValue: _i8.Future<_i6.Ingredient?>.value(), ) as _i8.Future<_i6.Ingredient?>); + @override _i8.Future logMealToDiary(_i4.Meal? meal) => (super.noSuchMethod( Invocation.method( @@ -351,6 +386,7 @@ class MockNutritionPlansProvider extends _i1.Mock implements _i7.NutritionPlansP returnValue: _i8.Future.value(), returnValueForMissingStub: _i8.Future.value(), ) as _i8.Future); + @override _i8.Future logIngredientToDiary( _i5.MealItem? mealItem, @@ -369,6 +405,7 @@ class MockNutritionPlansProvider extends _i1.Mock implements _i7.NutritionPlansP returnValue: _i8.Future.value(), returnValueForMissingStub: _i8.Future.value(), ) as _i8.Future); + @override _i8.Future deleteLog( int? logId, @@ -385,8 +422,10 @@ class MockNutritionPlansProvider extends _i1.Mock implements _i7.NutritionPlansP returnValue: _i8.Future.value(), returnValueForMissingStub: _i8.Future.value(), ) as _i8.Future); + @override - _i8.Future fetchAndSetLogs(_i3.NutritionalPlan? plan) => (super.noSuchMethod( + _i8.Future fetchAndSetLogs(_i3.NutritionalPlan? plan) => + (super.noSuchMethod( Invocation.method( #fetchAndSetLogs, [plan], @@ -394,6 +433,7 @@ class MockNutritionPlansProvider extends _i1.Mock implements _i7.NutritionPlansP returnValue: _i8.Future.value(), returnValueForMissingStub: _i8.Future.value(), ) as _i8.Future); + @override void addListener(_i9.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -402,6 +442,7 @@ class MockNutritionPlansProvider extends _i1.Mock implements _i7.NutritionPlansP ), returnValueForMissingStub: null, ); + @override void removeListener(_i9.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -410,6 +451,7 @@ class MockNutritionPlansProvider extends _i1.Mock implements _i7.NutritionPlansP ), returnValueForMissingStub: null, ); + @override void dispose() => super.noSuchMethod( Invocation.method( @@ -418,6 +460,7 @@ class MockNutritionPlansProvider extends _i1.Mock implements _i7.NutritionPlansP ), returnValueForMissingStub: null, ); + @override void notifyListeners() => super.noSuchMethod( Invocation.method( diff --git a/test/nutrition/nutritional_plan_form_test.mocks.dart b/test/nutrition/nutritional_plan_form_test.mocks.dart index a5f620ed4..a2b1b9702 100644 --- a/test/nutrition/nutritional_plan_form_test.mocks.dart +++ b/test/nutrition/nutritional_plan_form_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.4.0 from annotations +// Mocks generated by Mockito 5.4.2 from annotations // in wger/test/nutrition/nutritional_plan_form_test.dart. // Do not manually edit this file. @@ -25,7 +25,8 @@ import 'package:wger/providers/nutrition.dart' as _i7; // ignore_for_file: camel_case_types // ignore_for_file: subtype_of_sealed_class -class _FakeWgerBaseProvider_0 extends _i1.SmartFake implements _i2.WgerBaseProvider { +class _FakeWgerBaseProvider_0 extends _i1.SmartFake + implements _i2.WgerBaseProvider { _FakeWgerBaseProvider_0( Object parent, Invocation parentInvocation, @@ -35,7 +36,8 @@ class _FakeWgerBaseProvider_0 extends _i1.SmartFake implements _i2.WgerBaseProvi ); } -class _FakeNutritionalPlan_1 extends _i1.SmartFake implements _i3.NutritionalPlan { +class _FakeNutritionalPlan_1 extends _i1.SmartFake + implements _i3.NutritionalPlan { _FakeNutritionalPlan_1( Object parent, Invocation parentInvocation, @@ -78,7 +80,8 @@ class _FakeIngredient_4 extends _i1.SmartFake implements _i6.Ingredient { /// A class which mocks [NutritionPlansProvider]. /// /// See the documentation for Mockito's code generation for more information. -class MockNutritionPlansProvider extends _i1.Mock implements _i7.NutritionPlansProvider { +class MockNutritionPlansProvider extends _i1.Mock + implements _i7.NutritionPlansProvider { MockNutritionPlansProvider() { _i1.throwOnMissingStub(this); } @@ -91,11 +94,13 @@ class MockNutritionPlansProvider extends _i1.Mock implements _i7.NutritionPlansP Invocation.getter(#baseProvider), ), ) as _i2.WgerBaseProvider); + @override List<_i3.NutritionalPlan> get items => (super.noSuchMethod( Invocation.getter(#items), returnValue: <_i3.NutritionalPlan>[], ) as List<_i3.NutritionalPlan>); + @override set ingredients(dynamic items) => super.noSuchMethod( Invocation.setter( @@ -104,11 +109,13 @@ class MockNutritionPlansProvider extends _i1.Mock implements _i7.NutritionPlansP ), returnValueForMissingStub: null, ); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); + @override void clear() => super.noSuchMethod( Invocation.method( @@ -117,6 +124,7 @@ class MockNutritionPlansProvider extends _i1.Mock implements _i7.NutritionPlansP ), returnValueForMissingStub: null, ); + @override _i3.NutritionalPlan findById(int? id) => (super.noSuchMethod( Invocation.method( @@ -131,11 +139,13 @@ class MockNutritionPlansProvider extends _i1.Mock implements _i7.NutritionPlansP ), ), ) as _i3.NutritionalPlan); + @override _i4.Meal? findMealById(int? id) => (super.noSuchMethod(Invocation.method( #findMealById, [id], )) as _i4.Meal?); + @override _i8.Future fetchAndSetAllPlansSparse() => (super.noSuchMethod( Invocation.method( @@ -145,6 +155,7 @@ class MockNutritionPlansProvider extends _i1.Mock implements _i7.NutritionPlansP returnValue: _i8.Future.value(), returnValueForMissingStub: _i8.Future.value(), ) as _i8.Future); + @override _i8.Future fetchAndSetAllPlansFull() => (super.noSuchMethod( Invocation.method( @@ -154,13 +165,16 @@ class MockNutritionPlansProvider extends _i1.Mock implements _i7.NutritionPlansP returnValue: _i8.Future.value(), returnValueForMissingStub: _i8.Future.value(), ) as _i8.Future); + @override - _i8.Future<_i3.NutritionalPlan> fetchAndSetPlanSparse(int? planId) => (super.noSuchMethod( + _i8.Future<_i3.NutritionalPlan> fetchAndSetPlanSparse(int? planId) => + (super.noSuchMethod( Invocation.method( #fetchAndSetPlanSparse, [planId], ), - returnValue: _i8.Future<_i3.NutritionalPlan>.value(_FakeNutritionalPlan_1( + returnValue: + _i8.Future<_i3.NutritionalPlan>.value(_FakeNutritionalPlan_1( this, Invocation.method( #fetchAndSetPlanSparse, @@ -168,13 +182,16 @@ class MockNutritionPlansProvider extends _i1.Mock implements _i7.NutritionPlansP ), )), ) as _i8.Future<_i3.NutritionalPlan>); + @override - _i8.Future<_i3.NutritionalPlan> fetchAndSetPlanFull(int? planId) => (super.noSuchMethod( + _i8.Future<_i3.NutritionalPlan> fetchAndSetPlanFull(int? planId) => + (super.noSuchMethod( Invocation.method( #fetchAndSetPlanFull, [planId], ), - returnValue: _i8.Future<_i3.NutritionalPlan>.value(_FakeNutritionalPlan_1( + returnValue: + _i8.Future<_i3.NutritionalPlan>.value(_FakeNutritionalPlan_1( this, Invocation.method( #fetchAndSetPlanFull, @@ -182,13 +199,16 @@ class MockNutritionPlansProvider extends _i1.Mock implements _i7.NutritionPlansP ), )), ) as _i8.Future<_i3.NutritionalPlan>); + @override - _i8.Future<_i3.NutritionalPlan> addPlan(_i3.NutritionalPlan? planData) => (super.noSuchMethod( + _i8.Future<_i3.NutritionalPlan> addPlan(_i3.NutritionalPlan? planData) => + (super.noSuchMethod( Invocation.method( #addPlan, [planData], ), - returnValue: _i8.Future<_i3.NutritionalPlan>.value(_FakeNutritionalPlan_1( + returnValue: + _i8.Future<_i3.NutritionalPlan>.value(_FakeNutritionalPlan_1( this, Invocation.method( #addPlan, @@ -196,6 +216,7 @@ class MockNutritionPlansProvider extends _i1.Mock implements _i7.NutritionPlansP ), )), ) as _i8.Future<_i3.NutritionalPlan>); + @override _i8.Future editPlan(_i3.NutritionalPlan? plan) => (super.noSuchMethod( Invocation.method( @@ -205,6 +226,7 @@ class MockNutritionPlansProvider extends _i1.Mock implements _i7.NutritionPlansP returnValue: _i8.Future.value(), returnValueForMissingStub: _i8.Future.value(), ) as _i8.Future); + @override _i8.Future deletePlan(int? id) => (super.noSuchMethod( Invocation.method( @@ -214,6 +236,7 @@ class MockNutritionPlansProvider extends _i1.Mock implements _i7.NutritionPlansP returnValue: _i8.Future.value(), returnValueForMissingStub: _i8.Future.value(), ) as _i8.Future); + @override _i8.Future<_i4.Meal> addMeal( _i4.Meal? meal, @@ -238,6 +261,7 @@ class MockNutritionPlansProvider extends _i1.Mock implements _i7.NutritionPlansP ), )), ) as _i8.Future<_i4.Meal>); + @override _i8.Future<_i4.Meal> editMeal(_i4.Meal? meal) => (super.noSuchMethod( Invocation.method( @@ -252,6 +276,7 @@ class MockNutritionPlansProvider extends _i1.Mock implements _i7.NutritionPlansP ), )), ) as _i8.Future<_i4.Meal>); + @override _i8.Future deleteMeal(_i4.Meal? meal) => (super.noSuchMethod( Invocation.method( @@ -261,6 +286,7 @@ class MockNutritionPlansProvider extends _i1.Mock implements _i7.NutritionPlansP returnValue: _i8.Future.value(), returnValueForMissingStub: _i8.Future.value(), ) as _i8.Future); + @override _i8.Future<_i5.MealItem> addMealItem( _i5.MealItem? mealItem, @@ -285,8 +311,10 @@ class MockNutritionPlansProvider extends _i1.Mock implements _i7.NutritionPlansP ), )), ) as _i8.Future<_i5.MealItem>); + @override - _i8.Future deleteMealItem(_i5.MealItem? mealItem) => (super.noSuchMethod( + _i8.Future deleteMealItem(_i5.MealItem? mealItem) => + (super.noSuchMethod( Invocation.method( #deleteMealItem, [mealItem], @@ -294,8 +322,10 @@ class MockNutritionPlansProvider extends _i1.Mock implements _i7.NutritionPlansP returnValue: _i8.Future.value(), returnValueForMissingStub: _i8.Future.value(), ) as _i8.Future); + @override - _i8.Future<_i6.Ingredient> fetchIngredient(int? ingredientId) => (super.noSuchMethod( + _i8.Future<_i6.Ingredient> fetchIngredient(int? ingredientId) => + (super.noSuchMethod( Invocation.method( #fetchIngredient, [ingredientId], @@ -308,6 +338,7 @@ class MockNutritionPlansProvider extends _i1.Mock implements _i7.NutritionPlansP ), )), ) as _i8.Future<_i6.Ingredient>); + @override _i8.Future fetchIngredientsFromCache() => (super.noSuchMethod( Invocation.method( @@ -317,6 +348,7 @@ class MockNutritionPlansProvider extends _i1.Mock implements _i7.NutritionPlansP returnValue: _i8.Future.value(), returnValueForMissingStub: _i8.Future.value(), ) as _i8.Future); + @override _i8.Future> searchIngredient( String? name, { @@ -334,14 +366,17 @@ class MockNutritionPlansProvider extends _i1.Mock implements _i7.NutritionPlansP ), returnValue: _i8.Future>.value([]), ) as _i8.Future>); + @override - _i8.Future<_i6.Ingredient?> searchIngredientWithCode(String? code) => (super.noSuchMethod( + _i8.Future<_i6.Ingredient?> searchIngredientWithCode(String? code) => + (super.noSuchMethod( Invocation.method( #searchIngredientWithCode, [code], ), returnValue: _i8.Future<_i6.Ingredient?>.value(), ) as _i8.Future<_i6.Ingredient?>); + @override _i8.Future logMealToDiary(_i4.Meal? meal) => (super.noSuchMethod( Invocation.method( @@ -351,6 +386,7 @@ class MockNutritionPlansProvider extends _i1.Mock implements _i7.NutritionPlansP returnValue: _i8.Future.value(), returnValueForMissingStub: _i8.Future.value(), ) as _i8.Future); + @override _i8.Future logIngredientToDiary( _i5.MealItem? mealItem, @@ -369,6 +405,7 @@ class MockNutritionPlansProvider extends _i1.Mock implements _i7.NutritionPlansP returnValue: _i8.Future.value(), returnValueForMissingStub: _i8.Future.value(), ) as _i8.Future); + @override _i8.Future deleteLog( int? logId, @@ -385,8 +422,10 @@ class MockNutritionPlansProvider extends _i1.Mock implements _i7.NutritionPlansP returnValue: _i8.Future.value(), returnValueForMissingStub: _i8.Future.value(), ) as _i8.Future); + @override - _i8.Future fetchAndSetLogs(_i3.NutritionalPlan? plan) => (super.noSuchMethod( + _i8.Future fetchAndSetLogs(_i3.NutritionalPlan? plan) => + (super.noSuchMethod( Invocation.method( #fetchAndSetLogs, [plan], @@ -394,6 +433,7 @@ class MockNutritionPlansProvider extends _i1.Mock implements _i7.NutritionPlansP returnValue: _i8.Future.value(), returnValueForMissingStub: _i8.Future.value(), ) as _i8.Future); + @override void addListener(_i9.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -402,6 +442,7 @@ class MockNutritionPlansProvider extends _i1.Mock implements _i7.NutritionPlansP ), returnValueForMissingStub: null, ); + @override void removeListener(_i9.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -410,6 +451,7 @@ class MockNutritionPlansProvider extends _i1.Mock implements _i7.NutritionPlansP ), returnValueForMissingStub: null, ); + @override void dispose() => super.noSuchMethod( Invocation.method( @@ -418,6 +460,7 @@ class MockNutritionPlansProvider extends _i1.Mock implements _i7.NutritionPlansP ), returnValueForMissingStub: null, ); + @override void notifyListeners() => super.noSuchMethod( Invocation.method( diff --git a/test/nutrition/nutritional_plan_screen_test.mocks.dart b/test/nutrition/nutritional_plan_screen_test.mocks.dart index ede5e1753..da991af90 100644 --- a/test/nutrition/nutritional_plan_screen_test.mocks.dart +++ b/test/nutrition/nutritional_plan_screen_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.4.0 from annotations +// Mocks generated by Mockito 5.4.2 from annotations // in wger/test/nutrition/nutritional_plan_screen_test.dart. // Do not manually edit this file. @@ -65,7 +65,8 @@ class _FakeResponse_3 extends _i1.SmartFake implements _i3.Response { ); } -class _FakeStreamedResponse_4 extends _i1.SmartFake implements _i3.StreamedResponse { +class _FakeStreamedResponse_4 extends _i1.SmartFake + implements _i3.StreamedResponse { _FakeStreamedResponse_4( Object parent, Invocation parentInvocation, @@ -91,6 +92,7 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { Invocation.getter(#auth), ), ) as _i2.AuthProvider); + @override set auth(_i2.AuthProvider? _auth) => super.noSuchMethod( Invocation.setter( @@ -99,6 +101,7 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { ), returnValueForMissingStub: null, ); + @override _i3.Client get client => (super.noSuchMethod( Invocation.getter(#client), @@ -107,6 +110,7 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { Invocation.getter(#client), ), ) as _i3.Client); + @override set client(_i3.Client? _client) => super.noSuchMethod( Invocation.setter( @@ -115,8 +119,10 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { ), returnValueForMissingStub: null, ); + @override - Map getDefaultHeaders({dynamic includeAuth = false}) => (super.noSuchMethod( + Map getDefaultHeaders({dynamic includeAuth = false}) => + (super.noSuchMethod( Invocation.method( #getDefaultHeaders, [], @@ -124,6 +130,7 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { ), returnValue: {}, ) as Map); + @override Uri makeUrl( String? path, { @@ -154,14 +161,17 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { ), ), ) as Uri); + @override _i5.Future> fetch(Uri? uri) => (super.noSuchMethod( Invocation.method( #fetch, [uri], ), - returnValue: _i5.Future>.value({}), + returnValue: + _i5.Future>.value({}), ) as _i5.Future>); + @override _i5.Future> fetchPaginated(Uri? uri) => (super.noSuchMethod( Invocation.method( @@ -170,6 +180,7 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { ), returnValue: _i5.Future>.value([]), ) as _i5.Future>); + @override _i5.Future> post( Map? data, @@ -183,8 +194,10 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { uri, ], ), - returnValue: _i5.Future>.value({}), + returnValue: + _i5.Future>.value({}), ) as _i5.Future>); + @override _i5.Future> patch( Map? data, @@ -198,8 +211,10 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { uri, ], ), - returnValue: _i5.Future>.value({}), + returnValue: + _i5.Future>.value({}), ) as _i5.Future>); + @override _i5.Future<_i3.Response> deleteRequest( String? url, @@ -242,6 +257,7 @@ class MockAuthProvider extends _i1.Mock implements _i2.AuthProvider { ), returnValueForMissingStub: null, ); + @override set serverUrl(String? _serverUrl) => super.noSuchMethod( Invocation.setter( @@ -250,6 +266,7 @@ class MockAuthProvider extends _i1.Mock implements _i2.AuthProvider { ), returnValueForMissingStub: null, ); + @override set serverVersion(String? _serverVersion) => super.noSuchMethod( Invocation.setter( @@ -258,19 +275,23 @@ class MockAuthProvider extends _i1.Mock implements _i2.AuthProvider { ), returnValueForMissingStub: null, ); + @override - set applicationVersion(_i6.PackageInfo? _applicationVersion) => super.noSuchMethod( + set applicationVersion(_i6.PackageInfo? _applicationVersion) => + super.noSuchMethod( Invocation.setter( #applicationVersion, _applicationVersion, ), returnValueForMissingStub: null, ); + @override Map get metadata => (super.noSuchMethod( Invocation.getter(#metadata), returnValue: {}, ) as Map); + @override set metadata(Map? _metadata) => super.noSuchMethod( Invocation.setter( @@ -279,6 +300,7 @@ class MockAuthProvider extends _i1.Mock implements _i2.AuthProvider { ), returnValueForMissingStub: null, ); + @override _i3.Client get client => (super.noSuchMethod( Invocation.getter(#client), @@ -287,6 +309,7 @@ class MockAuthProvider extends _i1.Mock implements _i2.AuthProvider { Invocation.getter(#client), ), ) as _i3.Client); + @override set client(_i3.Client? _client) => super.noSuchMethod( Invocation.setter( @@ -295,11 +318,13 @@ class MockAuthProvider extends _i1.Mock implements _i2.AuthProvider { ), returnValueForMissingStub: null, ); + @override bool get dataInit => (super.noSuchMethod( Invocation.getter(#dataInit), returnValue: false, ) as bool); + @override set dataInit(bool? _dataInit) => super.noSuchMethod( Invocation.setter( @@ -308,16 +333,19 @@ class MockAuthProvider extends _i1.Mock implements _i2.AuthProvider { ), returnValueForMissingStub: null, ); + @override bool get isAuth => (super.noSuchMethod( Invocation.getter(#isAuth), returnValue: false, ) as bool); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); + @override _i5.Future setServerVersion() => (super.noSuchMethod( Invocation.method( @@ -327,6 +355,7 @@ class MockAuthProvider extends _i1.Mock implements _i2.AuthProvider { returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); + @override _i5.Future initData(String? serverUrl) => (super.noSuchMethod( Invocation.method( @@ -336,6 +365,7 @@ class MockAuthProvider extends _i1.Mock implements _i2.AuthProvider { returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); + @override _i5.Future setApplicationVersion() => (super.noSuchMethod( Invocation.method( @@ -345,6 +375,7 @@ class MockAuthProvider extends _i1.Mock implements _i2.AuthProvider { returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); + @override _i5.Future applicationUpdateRequired([ String? version, @@ -360,6 +391,7 @@ class MockAuthProvider extends _i1.Mock implements _i2.AuthProvider { ), returnValue: _i5.Future.value(false), ) as _i5.Future); + @override _i5.Future> register({ required String? username, @@ -378,8 +410,10 @@ class MockAuthProvider extends _i1.Mock implements _i2.AuthProvider { #serverUrl: serverUrl, }, ), - returnValue: _i5.Future>.value({}), + returnValue: _i5.Future>.value( + {}), ) as _i5.Future>); + @override _i5.Future> login( String? username, @@ -395,8 +429,10 @@ class MockAuthProvider extends _i1.Mock implements _i2.AuthProvider { serverUrl, ], ), - returnValue: _i5.Future>.value({}), + returnValue: _i5.Future>.value( + {}), ) as _i5.Future>); + @override _i5.Future getServerUrlFromPrefs() => (super.noSuchMethod( Invocation.method( @@ -405,6 +441,7 @@ class MockAuthProvider extends _i1.Mock implements _i2.AuthProvider { ), returnValue: _i5.Future.value(''), ) as _i5.Future); + @override _i5.Future tryAutoLogin() => (super.noSuchMethod( Invocation.method( @@ -413,6 +450,7 @@ class MockAuthProvider extends _i1.Mock implements _i2.AuthProvider { ), returnValue: _i5.Future.value(false), ) as _i5.Future); + @override _i5.Future logout({bool? shouldNotify = true}) => (super.noSuchMethod( Invocation.method( @@ -423,6 +461,7 @@ class MockAuthProvider extends _i1.Mock implements _i2.AuthProvider { returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); + @override String getAppNameHeader() => (super.noSuchMethod( Invocation.method( @@ -431,6 +470,7 @@ class MockAuthProvider extends _i1.Mock implements _i2.AuthProvider { ), returnValue: '', ) as String); + @override void addListener(_i7.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -439,6 +479,7 @@ class MockAuthProvider extends _i1.Mock implements _i2.AuthProvider { ), returnValueForMissingStub: null, ); + @override void removeListener(_i7.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -447,6 +488,7 @@ class MockAuthProvider extends _i1.Mock implements _i2.AuthProvider { ), returnValueForMissingStub: null, ); + @override void dispose() => super.noSuchMethod( Invocation.method( @@ -455,6 +497,7 @@ class MockAuthProvider extends _i1.Mock implements _i2.AuthProvider { ), returnValueForMissingStub: null, ); + @override void notifyListeners() => super.noSuchMethod( Invocation.method( @@ -493,6 +536,7 @@ class MockClient extends _i1.Mock implements _i3.Client { ), )), ) as _i5.Future<_i3.Response>); + @override _i5.Future<_i3.Response> get( Uri? url, { @@ -513,6 +557,7 @@ class MockClient extends _i1.Mock implements _i3.Client { ), )), ) as _i5.Future<_i3.Response>); + @override _i5.Future<_i3.Response> post( Uri? url, { @@ -543,6 +588,7 @@ class MockClient extends _i1.Mock implements _i3.Client { ), )), ) as _i5.Future<_i3.Response>); + @override _i5.Future<_i3.Response> put( Uri? url, { @@ -573,6 +619,7 @@ class MockClient extends _i1.Mock implements _i3.Client { ), )), ) as _i5.Future<_i3.Response>); + @override _i5.Future<_i3.Response> patch( Uri? url, { @@ -603,6 +650,7 @@ class MockClient extends _i1.Mock implements _i3.Client { ), )), ) as _i5.Future<_i3.Response>); + @override _i5.Future<_i3.Response> delete( Uri? url, { @@ -633,6 +681,7 @@ class MockClient extends _i1.Mock implements _i3.Client { ), )), ) as _i5.Future<_i3.Response>); + @override _i5.Future read( Uri? url, { @@ -646,6 +695,7 @@ class MockClient extends _i1.Mock implements _i3.Client { ), returnValue: _i5.Future.value(''), ) as _i5.Future); + @override _i5.Future<_i9.Uint8List> readBytes( Uri? url, { @@ -659,13 +709,16 @@ class MockClient extends _i1.Mock implements _i3.Client { ), returnValue: _i5.Future<_i9.Uint8List>.value(_i9.Uint8List(0)), ) as _i5.Future<_i9.Uint8List>); + @override - _i5.Future<_i3.StreamedResponse> send(_i3.BaseRequest? request) => (super.noSuchMethod( + _i5.Future<_i3.StreamedResponse> send(_i3.BaseRequest? request) => + (super.noSuchMethod( Invocation.method( #send, [request], ), - returnValue: _i5.Future<_i3.StreamedResponse>.value(_FakeStreamedResponse_4( + returnValue: + _i5.Future<_i3.StreamedResponse>.value(_FakeStreamedResponse_4( this, Invocation.method( #send, @@ -673,6 +726,7 @@ class MockClient extends _i1.Mock implements _i3.Client { ), )), ) as _i5.Future<_i3.StreamedResponse>); + @override void close() => super.noSuchMethod( Invocation.method( diff --git a/test/nutrition/nutritional_plans_screen_test.mocks.dart b/test/nutrition/nutritional_plans_screen_test.mocks.dart index d0c8b92d5..2cee1227f 100644 --- a/test/nutrition/nutritional_plans_screen_test.mocks.dart +++ b/test/nutrition/nutritional_plans_screen_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.4.0 from annotations +// Mocks generated by Mockito 5.4.2 from annotations // in wger/test/nutrition/nutritional_plans_screen_test.dart. // Do not manually edit this file. @@ -65,7 +65,8 @@ class _FakeResponse_3 extends _i1.SmartFake implements _i2.Response { ); } -class _FakeStreamedResponse_4 extends _i1.SmartFake implements _i2.StreamedResponse { +class _FakeStreamedResponse_4 extends _i1.SmartFake + implements _i2.StreamedResponse { _FakeStreamedResponse_4( Object parent, Invocation parentInvocation, @@ -91,6 +92,7 @@ class MockAuthProvider extends _i1.Mock implements _i3.AuthProvider { ), returnValueForMissingStub: null, ); + @override set serverUrl(String? _serverUrl) => super.noSuchMethod( Invocation.setter( @@ -99,6 +101,7 @@ class MockAuthProvider extends _i1.Mock implements _i3.AuthProvider { ), returnValueForMissingStub: null, ); + @override set serverVersion(String? _serverVersion) => super.noSuchMethod( Invocation.setter( @@ -107,19 +110,23 @@ class MockAuthProvider extends _i1.Mock implements _i3.AuthProvider { ), returnValueForMissingStub: null, ); + @override - set applicationVersion(_i4.PackageInfo? _applicationVersion) => super.noSuchMethod( + set applicationVersion(_i4.PackageInfo? _applicationVersion) => + super.noSuchMethod( Invocation.setter( #applicationVersion, _applicationVersion, ), returnValueForMissingStub: null, ); + @override Map get metadata => (super.noSuchMethod( Invocation.getter(#metadata), returnValue: {}, ) as Map); + @override set metadata(Map? _metadata) => super.noSuchMethod( Invocation.setter( @@ -128,6 +135,7 @@ class MockAuthProvider extends _i1.Mock implements _i3.AuthProvider { ), returnValueForMissingStub: null, ); + @override _i2.Client get client => (super.noSuchMethod( Invocation.getter(#client), @@ -136,6 +144,7 @@ class MockAuthProvider extends _i1.Mock implements _i3.AuthProvider { Invocation.getter(#client), ), ) as _i2.Client); + @override set client(_i2.Client? _client) => super.noSuchMethod( Invocation.setter( @@ -144,11 +153,13 @@ class MockAuthProvider extends _i1.Mock implements _i3.AuthProvider { ), returnValueForMissingStub: null, ); + @override bool get dataInit => (super.noSuchMethod( Invocation.getter(#dataInit), returnValue: false, ) as bool); + @override set dataInit(bool? _dataInit) => super.noSuchMethod( Invocation.setter( @@ -157,16 +168,19 @@ class MockAuthProvider extends _i1.Mock implements _i3.AuthProvider { ), returnValueForMissingStub: null, ); + @override bool get isAuth => (super.noSuchMethod( Invocation.getter(#isAuth), returnValue: false, ) as bool); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); + @override _i5.Future setServerVersion() => (super.noSuchMethod( Invocation.method( @@ -176,6 +190,7 @@ class MockAuthProvider extends _i1.Mock implements _i3.AuthProvider { returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); + @override _i5.Future initData(String? serverUrl) => (super.noSuchMethod( Invocation.method( @@ -185,6 +200,7 @@ class MockAuthProvider extends _i1.Mock implements _i3.AuthProvider { returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); + @override _i5.Future setApplicationVersion() => (super.noSuchMethod( Invocation.method( @@ -194,6 +210,7 @@ class MockAuthProvider extends _i1.Mock implements _i3.AuthProvider { returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); + @override _i5.Future applicationUpdateRequired([ String? version, @@ -209,6 +226,7 @@ class MockAuthProvider extends _i1.Mock implements _i3.AuthProvider { ), returnValue: _i5.Future.value(false), ) as _i5.Future); + @override _i5.Future> register({ required String? username, @@ -227,8 +245,10 @@ class MockAuthProvider extends _i1.Mock implements _i3.AuthProvider { #serverUrl: serverUrl, }, ), - returnValue: _i5.Future>.value({}), + returnValue: _i5.Future>.value( + {}), ) as _i5.Future>); + @override _i5.Future> login( String? username, @@ -244,8 +264,10 @@ class MockAuthProvider extends _i1.Mock implements _i3.AuthProvider { serverUrl, ], ), - returnValue: _i5.Future>.value({}), + returnValue: _i5.Future>.value( + {}), ) as _i5.Future>); + @override _i5.Future getServerUrlFromPrefs() => (super.noSuchMethod( Invocation.method( @@ -254,6 +276,7 @@ class MockAuthProvider extends _i1.Mock implements _i3.AuthProvider { ), returnValue: _i5.Future.value(''), ) as _i5.Future); + @override _i5.Future tryAutoLogin() => (super.noSuchMethod( Invocation.method( @@ -262,6 +285,7 @@ class MockAuthProvider extends _i1.Mock implements _i3.AuthProvider { ), returnValue: _i5.Future.value(false), ) as _i5.Future); + @override _i5.Future logout({bool? shouldNotify = true}) => (super.noSuchMethod( Invocation.method( @@ -272,6 +296,7 @@ class MockAuthProvider extends _i1.Mock implements _i3.AuthProvider { returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); + @override String getAppNameHeader() => (super.noSuchMethod( Invocation.method( @@ -280,6 +305,7 @@ class MockAuthProvider extends _i1.Mock implements _i3.AuthProvider { ), returnValue: '', ) as String); + @override void addListener(_i6.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -288,6 +314,7 @@ class MockAuthProvider extends _i1.Mock implements _i3.AuthProvider { ), returnValueForMissingStub: null, ); + @override void removeListener(_i6.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -296,6 +323,7 @@ class MockAuthProvider extends _i1.Mock implements _i3.AuthProvider { ), returnValueForMissingStub: null, ); + @override void dispose() => super.noSuchMethod( Invocation.method( @@ -304,6 +332,7 @@ class MockAuthProvider extends _i1.Mock implements _i3.AuthProvider { ), returnValueForMissingStub: null, ); + @override void notifyListeners() => super.noSuchMethod( Invocation.method( @@ -330,6 +359,7 @@ class MockWgerBaseProvider extends _i1.Mock implements _i7.WgerBaseProvider { Invocation.getter(#auth), ), ) as _i3.AuthProvider); + @override set auth(_i3.AuthProvider? _auth) => super.noSuchMethod( Invocation.setter( @@ -338,6 +368,7 @@ class MockWgerBaseProvider extends _i1.Mock implements _i7.WgerBaseProvider { ), returnValueForMissingStub: null, ); + @override _i2.Client get client => (super.noSuchMethod( Invocation.getter(#client), @@ -346,6 +377,7 @@ class MockWgerBaseProvider extends _i1.Mock implements _i7.WgerBaseProvider { Invocation.getter(#client), ), ) as _i2.Client); + @override set client(_i2.Client? _client) => super.noSuchMethod( Invocation.setter( @@ -354,8 +386,10 @@ class MockWgerBaseProvider extends _i1.Mock implements _i7.WgerBaseProvider { ), returnValueForMissingStub: null, ); + @override - Map getDefaultHeaders({dynamic includeAuth = false}) => (super.noSuchMethod( + Map getDefaultHeaders({dynamic includeAuth = false}) => + (super.noSuchMethod( Invocation.method( #getDefaultHeaders, [], @@ -363,6 +397,7 @@ class MockWgerBaseProvider extends _i1.Mock implements _i7.WgerBaseProvider { ), returnValue: {}, ) as Map); + @override Uri makeUrl( String? path, { @@ -393,14 +428,17 @@ class MockWgerBaseProvider extends _i1.Mock implements _i7.WgerBaseProvider { ), ), ) as Uri); + @override _i5.Future> fetch(Uri? uri) => (super.noSuchMethod( Invocation.method( #fetch, [uri], ), - returnValue: _i5.Future>.value({}), + returnValue: + _i5.Future>.value({}), ) as _i5.Future>); + @override _i5.Future> fetchPaginated(Uri? uri) => (super.noSuchMethod( Invocation.method( @@ -409,6 +447,7 @@ class MockWgerBaseProvider extends _i1.Mock implements _i7.WgerBaseProvider { ), returnValue: _i5.Future>.value([]), ) as _i5.Future>); + @override _i5.Future> post( Map? data, @@ -422,8 +461,10 @@ class MockWgerBaseProvider extends _i1.Mock implements _i7.WgerBaseProvider { uri, ], ), - returnValue: _i5.Future>.value({}), + returnValue: + _i5.Future>.value({}), ) as _i5.Future>); + @override _i5.Future> patch( Map? data, @@ -437,8 +478,10 @@ class MockWgerBaseProvider extends _i1.Mock implements _i7.WgerBaseProvider { uri, ], ), - returnValue: _i5.Future>.value({}), + returnValue: + _i5.Future>.value({}), ) as _i5.Future>); + @override _i5.Future<_i2.Response> deleteRequest( String? url, @@ -493,6 +536,7 @@ class MockClient extends _i1.Mock implements _i2.Client { ), )), ) as _i5.Future<_i2.Response>); + @override _i5.Future<_i2.Response> get( Uri? url, { @@ -513,6 +557,7 @@ class MockClient extends _i1.Mock implements _i2.Client { ), )), ) as _i5.Future<_i2.Response>); + @override _i5.Future<_i2.Response> post( Uri? url, { @@ -543,6 +588,7 @@ class MockClient extends _i1.Mock implements _i2.Client { ), )), ) as _i5.Future<_i2.Response>); + @override _i5.Future<_i2.Response> put( Uri? url, { @@ -573,6 +619,7 @@ class MockClient extends _i1.Mock implements _i2.Client { ), )), ) as _i5.Future<_i2.Response>); + @override _i5.Future<_i2.Response> patch( Uri? url, { @@ -603,6 +650,7 @@ class MockClient extends _i1.Mock implements _i2.Client { ), )), ) as _i5.Future<_i2.Response>); + @override _i5.Future<_i2.Response> delete( Uri? url, { @@ -633,6 +681,7 @@ class MockClient extends _i1.Mock implements _i2.Client { ), )), ) as _i5.Future<_i2.Response>); + @override _i5.Future read( Uri? url, { @@ -646,6 +695,7 @@ class MockClient extends _i1.Mock implements _i2.Client { ), returnValue: _i5.Future.value(''), ) as _i5.Future); + @override _i5.Future<_i9.Uint8List> readBytes( Uri? url, { @@ -659,13 +709,16 @@ class MockClient extends _i1.Mock implements _i2.Client { ), returnValue: _i5.Future<_i9.Uint8List>.value(_i9.Uint8List(0)), ) as _i5.Future<_i9.Uint8List>); + @override - _i5.Future<_i2.StreamedResponse> send(_i2.BaseRequest? request) => (super.noSuchMethod( + _i5.Future<_i2.StreamedResponse> send(_i2.BaseRequest? request) => + (super.noSuchMethod( Invocation.method( #send, [request], ), - returnValue: _i5.Future<_i2.StreamedResponse>.value(_FakeStreamedResponse_4( + returnValue: + _i5.Future<_i2.StreamedResponse>.value(_FakeStreamedResponse_4( this, Invocation.method( #send, @@ -673,6 +726,7 @@ class MockClient extends _i1.Mock implements _i2.Client { ), )), ) as _i5.Future<_i2.StreamedResponse>); + @override void close() => super.noSuchMethod( Invocation.method( diff --git a/test/other/base_provider_test.mocks.dart b/test/other/base_provider_test.mocks.dart index b4bacacdb..aeb648c76 100644 --- a/test/other/base_provider_test.mocks.dart +++ b/test/other/base_provider_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.4.0 from annotations +// Mocks generated by Mockito 5.4.2 from annotations // in wger/test/other/base_provider_test.dart. // Do not manually edit this file. @@ -31,7 +31,8 @@ class _FakeResponse_0 extends _i1.SmartFake implements _i2.Response { ); } -class _FakeStreamedResponse_1 extends _i1.SmartFake implements _i2.StreamedResponse { +class _FakeStreamedResponse_1 extends _i1.SmartFake + implements _i2.StreamedResponse { _FakeStreamedResponse_1( Object parent, Invocation parentInvocation, @@ -69,6 +70,7 @@ class MockClient extends _i1.Mock implements _i2.Client { ), )), ) as _i3.Future<_i2.Response>); + @override _i3.Future<_i2.Response> get( Uri? url, { @@ -89,6 +91,7 @@ class MockClient extends _i1.Mock implements _i2.Client { ), )), ) as _i3.Future<_i2.Response>); + @override _i3.Future<_i2.Response> post( Uri? url, { @@ -119,6 +122,7 @@ class MockClient extends _i1.Mock implements _i2.Client { ), )), ) as _i3.Future<_i2.Response>); + @override _i3.Future<_i2.Response> put( Uri? url, { @@ -149,6 +153,7 @@ class MockClient extends _i1.Mock implements _i2.Client { ), )), ) as _i3.Future<_i2.Response>); + @override _i3.Future<_i2.Response> patch( Uri? url, { @@ -179,6 +184,7 @@ class MockClient extends _i1.Mock implements _i2.Client { ), )), ) as _i3.Future<_i2.Response>); + @override _i3.Future<_i2.Response> delete( Uri? url, { @@ -209,6 +215,7 @@ class MockClient extends _i1.Mock implements _i2.Client { ), )), ) as _i3.Future<_i2.Response>); + @override _i3.Future read( Uri? url, { @@ -222,6 +229,7 @@ class MockClient extends _i1.Mock implements _i2.Client { ), returnValue: _i3.Future.value(''), ) as _i3.Future); + @override _i3.Future<_i5.Uint8List> readBytes( Uri? url, { @@ -235,13 +243,16 @@ class MockClient extends _i1.Mock implements _i2.Client { ), returnValue: _i3.Future<_i5.Uint8List>.value(_i5.Uint8List(0)), ) as _i3.Future<_i5.Uint8List>); + @override - _i3.Future<_i2.StreamedResponse> send(_i2.BaseRequest? request) => (super.noSuchMethod( + _i3.Future<_i2.StreamedResponse> send(_i2.BaseRequest? request) => + (super.noSuchMethod( Invocation.method( #send, [request], ), - returnValue: _i3.Future<_i2.StreamedResponse>.value(_FakeStreamedResponse_1( + returnValue: + _i3.Future<_i2.StreamedResponse>.value(_FakeStreamedResponse_1( this, Invocation.method( #send, @@ -249,6 +260,7 @@ class MockClient extends _i1.Mock implements _i2.Client { ), )), ) as _i3.Future<_i2.StreamedResponse>); + @override void close() => super.noSuchMethod( Invocation.method( diff --git a/test/user/provider_test.mocks.dart b/test/user/provider_test.mocks.dart index 11199fbc4..d6dc8d6eb 100644 --- a/test/user/provider_test.mocks.dart +++ b/test/user/provider_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.4.0 from annotations +// Mocks generated by Mockito 5.4.2 from annotations // in wger/test/user/provider_test.dart. // Do not manually edit this file. @@ -77,6 +77,7 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { Invocation.getter(#auth), ), ) as _i2.AuthProvider); + @override set auth(_i2.AuthProvider? _auth) => super.noSuchMethod( Invocation.setter( @@ -85,6 +86,7 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { ), returnValueForMissingStub: null, ); + @override _i3.Client get client => (super.noSuchMethod( Invocation.getter(#client), @@ -93,6 +95,7 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { Invocation.getter(#client), ), ) as _i3.Client); + @override set client(_i3.Client? _client) => super.noSuchMethod( Invocation.setter( @@ -101,8 +104,10 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { ), returnValueForMissingStub: null, ); + @override - Map getDefaultHeaders({dynamic includeAuth = false}) => (super.noSuchMethod( + Map getDefaultHeaders({dynamic includeAuth = false}) => + (super.noSuchMethod( Invocation.method( #getDefaultHeaders, [], @@ -110,6 +115,7 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { ), returnValue: {}, ) as Map); + @override Uri makeUrl( String? path, { @@ -140,14 +146,17 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { ), ), ) as Uri); + @override _i5.Future> fetch(Uri? uri) => (super.noSuchMethod( Invocation.method( #fetch, [uri], ), - returnValue: _i5.Future>.value({}), + returnValue: + _i5.Future>.value({}), ) as _i5.Future>); + @override _i5.Future> fetchPaginated(Uri? uri) => (super.noSuchMethod( Invocation.method( @@ -156,6 +165,7 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { ), returnValue: _i5.Future>.value([]), ) as _i5.Future>); + @override _i5.Future> post( Map? data, @@ -169,8 +179,10 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { uri, ], ), - returnValue: _i5.Future>.value({}), + returnValue: + _i5.Future>.value({}), ) as _i5.Future>); + @override _i5.Future> patch( Map? data, @@ -184,8 +196,10 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { uri, ], ), - returnValue: _i5.Future>.value({}), + returnValue: + _i5.Future>.value({}), ) as _i5.Future>); + @override _i5.Future<_i3.Response> deleteRequest( String? url, diff --git a/test/weight/weight_provider_test.mocks.dart b/test/weight/weight_provider_test.mocks.dart index e60495f5f..352c53ad1 100644 --- a/test/weight/weight_provider_test.mocks.dart +++ b/test/weight/weight_provider_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.4.0 from annotations +// Mocks generated by Mockito 5.4.2 from annotations // in wger/test/weight/weight_provider_test.dart. // Do not manually edit this file. @@ -77,6 +77,7 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { Invocation.getter(#auth), ), ) as _i2.AuthProvider); + @override set auth(_i2.AuthProvider? _auth) => super.noSuchMethod( Invocation.setter( @@ -85,6 +86,7 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { ), returnValueForMissingStub: null, ); + @override _i3.Client get client => (super.noSuchMethod( Invocation.getter(#client), @@ -93,6 +95,7 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { Invocation.getter(#client), ), ) as _i3.Client); + @override set client(_i3.Client? _client) => super.noSuchMethod( Invocation.setter( @@ -101,8 +104,10 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { ), returnValueForMissingStub: null, ); + @override - Map getDefaultHeaders({dynamic includeAuth = false}) => (super.noSuchMethod( + Map getDefaultHeaders({dynamic includeAuth = false}) => + (super.noSuchMethod( Invocation.method( #getDefaultHeaders, [], @@ -110,6 +115,7 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { ), returnValue: {}, ) as Map); + @override Uri makeUrl( String? path, { @@ -140,14 +146,17 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { ), ), ) as Uri); + @override _i5.Future> fetch(Uri? uri) => (super.noSuchMethod( Invocation.method( #fetch, [uri], ), - returnValue: _i5.Future>.value({}), + returnValue: + _i5.Future>.value({}), ) as _i5.Future>); + @override _i5.Future> fetchPaginated(Uri? uri) => (super.noSuchMethod( Invocation.method( @@ -156,6 +165,7 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { ), returnValue: _i5.Future>.value([]), ) as _i5.Future>); + @override _i5.Future> post( Map? data, @@ -169,8 +179,10 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { uri, ], ), - returnValue: _i5.Future>.value({}), + returnValue: + _i5.Future>.value({}), ) as _i5.Future>); + @override _i5.Future> patch( Map? data, @@ -184,8 +196,10 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { uri, ], ), - returnValue: _i5.Future>.value({}), + returnValue: + _i5.Future>.value({}), ) as _i5.Future>); + @override _i5.Future<_i3.Response> deleteRequest( String? url, diff --git a/test/weight/weight_screen_test.mocks.dart b/test/weight/weight_screen_test.mocks.dart index 7de6b61d8..a63186b3d 100644 --- a/test/weight/weight_screen_test.mocks.dart +++ b/test/weight/weight_screen_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.4.0 from annotations +// Mocks generated by Mockito 5.4.2 from annotations // in wger/test/weight/weight_screen_test.dart. // Do not manually edit this file. @@ -22,7 +22,8 @@ import 'package:wger/providers/body_weight.dart' as _i4; // ignore_for_file: camel_case_types // ignore_for_file: subtype_of_sealed_class -class _FakeWgerBaseProvider_0 extends _i1.SmartFake implements _i2.WgerBaseProvider { +class _FakeWgerBaseProvider_0 extends _i1.SmartFake + implements _i2.WgerBaseProvider { _FakeWgerBaseProvider_0( Object parent, Invocation parentInvocation, @@ -45,7 +46,8 @@ class _FakeWeightEntry_1 extends _i1.SmartFake implements _i3.WeightEntry { /// A class which mocks [BodyWeightProvider]. /// /// See the documentation for Mockito's code generation for more information. -class MockBodyWeightProvider extends _i1.Mock implements _i4.BodyWeightProvider { +class MockBodyWeightProvider extends _i1.Mock + implements _i4.BodyWeightProvider { MockBodyWeightProvider() { _i1.throwOnMissingStub(this); } @@ -58,11 +60,13 @@ class MockBodyWeightProvider extends _i1.Mock implements _i4.BodyWeightProvider Invocation.getter(#baseProvider), ), ) as _i2.WgerBaseProvider); + @override List<_i3.WeightEntry> get items => (super.noSuchMethod( Invocation.getter(#items), returnValue: <_i3.WeightEntry>[], ) as List<_i3.WeightEntry>); + @override set items(List<_i3.WeightEntry>? entries) => super.noSuchMethod( Invocation.setter( @@ -71,11 +75,13 @@ class MockBodyWeightProvider extends _i1.Mock implements _i4.BodyWeightProvider ), returnValueForMissingStub: null, ); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); + @override void clear() => super.noSuchMethod( Invocation.method( @@ -84,6 +90,7 @@ class MockBodyWeightProvider extends _i1.Mock implements _i4.BodyWeightProvider ), returnValueForMissingStub: null, ); + @override _i3.WeightEntry findById(int? id) => (super.noSuchMethod( Invocation.method( @@ -98,21 +105,27 @@ class MockBodyWeightProvider extends _i1.Mock implements _i4.BodyWeightProvider ), ), ) as _i3.WeightEntry); + @override - _i3.WeightEntry? findByDate(DateTime? date) => (super.noSuchMethod(Invocation.method( + _i3.WeightEntry? findByDate(DateTime? date) => + (super.noSuchMethod(Invocation.method( #findByDate, [date], )) as _i3.WeightEntry?); + @override _i5.Future> fetchAndSetEntries() => (super.noSuchMethod( Invocation.method( #fetchAndSetEntries, [], ), - returnValue: _i5.Future>.value(<_i3.WeightEntry>[]), + returnValue: + _i5.Future>.value(<_i3.WeightEntry>[]), ) as _i5.Future>); + @override - _i5.Future<_i3.WeightEntry> addEntry(_i3.WeightEntry? entry) => (super.noSuchMethod( + _i5.Future<_i3.WeightEntry> addEntry(_i3.WeightEntry? entry) => + (super.noSuchMethod( Invocation.method( #addEntry, [entry], @@ -125,6 +138,7 @@ class MockBodyWeightProvider extends _i1.Mock implements _i4.BodyWeightProvider ), )), ) as _i5.Future<_i3.WeightEntry>); + @override _i5.Future editEntry(_i3.WeightEntry? entry) => (super.noSuchMethod( Invocation.method( @@ -134,6 +148,7 @@ class MockBodyWeightProvider extends _i1.Mock implements _i4.BodyWeightProvider returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); + @override _i5.Future deleteEntry(int? id) => (super.noSuchMethod( Invocation.method( @@ -143,6 +158,7 @@ class MockBodyWeightProvider extends _i1.Mock implements _i4.BodyWeightProvider returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); + @override void addListener(_i6.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -151,6 +167,7 @@ class MockBodyWeightProvider extends _i1.Mock implements _i4.BodyWeightProvider ), returnValueForMissingStub: null, ); + @override void removeListener(_i6.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -159,6 +176,7 @@ class MockBodyWeightProvider extends _i1.Mock implements _i4.BodyWeightProvider ), returnValueForMissingStub: null, ); + @override void dispose() => super.noSuchMethod( Invocation.method( @@ -167,6 +185,7 @@ class MockBodyWeightProvider extends _i1.Mock implements _i4.BodyWeightProvider ), returnValueForMissingStub: null, ); + @override void notifyListeners() => super.noSuchMethod( Invocation.method( diff --git a/test/workout/gym_mode_screen_test.mocks.dart b/test/workout/gym_mode_screen_test.mocks.dart index 81f8f7fe6..b32f85875 100644 --- a/test/workout/gym_mode_screen_test.mocks.dart +++ b/test/workout/gym_mode_screen_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.4.0 from annotations +// Mocks generated by Mockito 5.4.2 from annotations // in wger/test/workout/gym_mode_screen_test.dart. // Do not manually edit this file. @@ -68,7 +68,8 @@ class _FakeResponse_3 extends _i1.SmartFake implements _i3.Response { ); } -class _FakeWgerBaseProvider_4 extends _i1.SmartFake implements _i4.WgerBaseProvider { +class _FakeWgerBaseProvider_4 extends _i1.SmartFake + implements _i4.WgerBaseProvider { _FakeWgerBaseProvider_4( Object parent, Invocation parentInvocation, @@ -88,7 +89,8 @@ class _FakeExerciseBase_5 extends _i1.SmartFake implements _i5.ExerciseBase { ); } -class _FakeExerciseCategory_6 extends _i1.SmartFake implements _i6.ExerciseCategory { +class _FakeExerciseCategory_6 extends _i1.SmartFake + implements _i6.ExerciseCategory { _FakeExerciseCategory_6( Object parent, Invocation parentInvocation, @@ -144,6 +146,7 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { Invocation.getter(#auth), ), ) as _i2.AuthProvider); + @override set auth(_i2.AuthProvider? _auth) => super.noSuchMethod( Invocation.setter( @@ -152,6 +155,7 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { ), returnValueForMissingStub: null, ); + @override _i3.Client get client => (super.noSuchMethod( Invocation.getter(#client), @@ -160,6 +164,7 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { Invocation.getter(#client), ), ) as _i3.Client); + @override set client(_i3.Client? _client) => super.noSuchMethod( Invocation.setter( @@ -168,8 +173,10 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { ), returnValueForMissingStub: null, ); + @override - Map getDefaultHeaders({dynamic includeAuth = false}) => (super.noSuchMethod( + Map getDefaultHeaders({dynamic includeAuth = false}) => + (super.noSuchMethod( Invocation.method( #getDefaultHeaders, [], @@ -177,6 +184,7 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { ), returnValue: {}, ) as Map); + @override Uri makeUrl( String? path, { @@ -207,14 +215,17 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { ), ), ) as Uri); + @override _i10.Future> fetch(Uri? uri) => (super.noSuchMethod( Invocation.method( #fetch, [uri], ), - returnValue: _i10.Future>.value({}), + returnValue: + _i10.Future>.value({}), ) as _i10.Future>); + @override _i10.Future> fetchPaginated(Uri? uri) => (super.noSuchMethod( Invocation.method( @@ -223,6 +234,7 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { ), returnValue: _i10.Future>.value([]), ) as _i10.Future>); + @override _i10.Future> post( Map? data, @@ -236,8 +248,10 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { uri, ], ), - returnValue: _i10.Future>.value({}), + returnValue: + _i10.Future>.value({}), ) as _i10.Future>); + @override _i10.Future> patch( Map? data, @@ -251,8 +265,10 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { uri, ], ), - returnValue: _i10.Future>.value({}), + returnValue: + _i10.Future>.value({}), ) as _i10.Future>); + @override _i10.Future<_i3.Response> deleteRequest( String? url, @@ -295,57 +311,70 @@ class MockExercisesProvider extends _i1.Mock implements _i11.ExercisesProvider { Invocation.getter(#baseProvider), ), ) as _i4.WgerBaseProvider); + @override - set exerciseBases(List<_i5.ExerciseBase>? exercisesBases) => super.noSuchMethod( + set exerciseBases(List<_i5.ExerciseBase>? exercisesBases) => + super.noSuchMethod( Invocation.setter( #exerciseBases, exercisesBases, ), returnValueForMissingStub: null, ); + @override List<_i5.ExerciseBase> get filteredExerciseBases => (super.noSuchMethod( Invocation.getter(#filteredExerciseBases), returnValue: <_i5.ExerciseBase>[], ) as List<_i5.ExerciseBase>); + @override - set filteredExerciseBases(List<_i5.ExerciseBase>? newFilteredExercises) => super.noSuchMethod( + set filteredExerciseBases(List<_i5.ExerciseBase>? newFilteredExercises) => + super.noSuchMethod( Invocation.setter( #filteredExerciseBases, newFilteredExercises, ), returnValueForMissingStub: null, ); + @override - Map> get exerciseBasesByVariation => (super.noSuchMethod( + Map> get exerciseBasesByVariation => + (super.noSuchMethod( Invocation.getter(#exerciseBasesByVariation), returnValue: >{}, ) as Map>); + @override List<_i5.ExerciseBase> get bases => (super.noSuchMethod( Invocation.getter(#bases), returnValue: <_i5.ExerciseBase>[], ) as List<_i5.ExerciseBase>); + @override List<_i6.ExerciseCategory> get categories => (super.noSuchMethod( Invocation.getter(#categories), returnValue: <_i6.ExerciseCategory>[], ) as List<_i6.ExerciseCategory>); + @override List<_i8.Muscle> get muscles => (super.noSuchMethod( Invocation.getter(#muscles), returnValue: <_i8.Muscle>[], ) as List<_i8.Muscle>); + @override List<_i7.Equipment> get equipment => (super.noSuchMethod( Invocation.getter(#equipment), returnValue: <_i7.Equipment>[], ) as List<_i7.Equipment>); + @override List<_i9.Language> get languages => (super.noSuchMethod( Invocation.getter(#languages), returnValue: <_i9.Language>[], ) as List<_i9.Language>); + @override set languages(List<_i9.Language>? languages) => super.noSuchMethod( Invocation.setter( @@ -354,11 +383,13 @@ class MockExercisesProvider extends _i1.Mock implements _i11.ExercisesProvider { ), returnValueForMissingStub: null, ); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); + @override _i10.Future setFilters(_i11.Filters? newFilters) => (super.noSuchMethod( Invocation.method( @@ -368,6 +399,7 @@ class MockExercisesProvider extends _i1.Mock implements _i11.ExercisesProvider { returnValue: _i10.Future.value(), returnValueForMissingStub: _i10.Future.value(), ) as _i10.Future); + @override _i10.Future findByFilters() => (super.noSuchMethod( Invocation.method( @@ -377,6 +409,7 @@ class MockExercisesProvider extends _i1.Mock implements _i11.ExercisesProvider { returnValue: _i10.Future.value(), returnValueForMissingStub: _i10.Future.value(), ) as _i10.Future); + @override void clear() => super.noSuchMethod( Invocation.method( @@ -385,6 +418,7 @@ class MockExercisesProvider extends _i1.Mock implements _i11.ExercisesProvider { ), returnValueForMissingStub: null, ); + @override _i5.ExerciseBase findExerciseBaseById(int? id) => (super.noSuchMethod( Invocation.method( @@ -399,6 +433,7 @@ class MockExercisesProvider extends _i1.Mock implements _i11.ExercisesProvider { ), ), ) as _i5.ExerciseBase); + @override List<_i5.ExerciseBase> findExerciseBasesByVariationId( int? id, { @@ -412,6 +447,7 @@ class MockExercisesProvider extends _i1.Mock implements _i11.ExercisesProvider { ), returnValue: <_i5.ExerciseBase>[], ) as List<_i5.ExerciseBase>); + @override _i6.ExerciseCategory findCategoryById(int? id) => (super.noSuchMethod( Invocation.method( @@ -426,6 +462,7 @@ class MockExercisesProvider extends _i1.Mock implements _i11.ExercisesProvider { ), ), ) as _i6.ExerciseCategory); + @override _i7.Equipment findEquipmentById(int? id) => (super.noSuchMethod( Invocation.method( @@ -440,6 +477,7 @@ class MockExercisesProvider extends _i1.Mock implements _i11.ExercisesProvider { ), ), ) as _i7.Equipment); + @override _i8.Muscle findMuscleById(int? id) => (super.noSuchMethod( Invocation.method( @@ -454,6 +492,7 @@ class MockExercisesProvider extends _i1.Mock implements _i11.ExercisesProvider { ), ), ) as _i8.Muscle); + @override _i9.Language findLanguageById(int? id) => (super.noSuchMethod( Invocation.method( @@ -468,6 +507,7 @@ class MockExercisesProvider extends _i1.Mock implements _i11.ExercisesProvider { ), ), ) as _i9.Language); + @override _i10.Future fetchAndSetCategories() => (super.noSuchMethod( Invocation.method( @@ -477,6 +517,7 @@ class MockExercisesProvider extends _i1.Mock implements _i11.ExercisesProvider { returnValue: _i10.Future.value(), returnValueForMissingStub: _i10.Future.value(), ) as _i10.Future); + @override _i10.Future fetchAndSetVariations() => (super.noSuchMethod( Invocation.method( @@ -486,6 +527,7 @@ class MockExercisesProvider extends _i1.Mock implements _i11.ExercisesProvider { returnValue: _i10.Future.value(), returnValueForMissingStub: _i10.Future.value(), ) as _i10.Future); + @override _i10.Future fetchAndSetMuscles() => (super.noSuchMethod( Invocation.method( @@ -495,6 +537,7 @@ class MockExercisesProvider extends _i1.Mock implements _i11.ExercisesProvider { returnValue: _i10.Future.value(), returnValueForMissingStub: _i10.Future.value(), ) as _i10.Future); + @override _i10.Future fetchAndSetEquipment() => (super.noSuchMethod( Invocation.method( @@ -504,6 +547,7 @@ class MockExercisesProvider extends _i1.Mock implements _i11.ExercisesProvider { returnValue: _i10.Future.value(), returnValueForMissingStub: _i10.Future.value(), ) as _i10.Future); + @override _i10.Future fetchAndSetLanguages() => (super.noSuchMethod( Invocation.method( @@ -513,8 +557,10 @@ class MockExercisesProvider extends _i1.Mock implements _i11.ExercisesProvider { returnValue: _i10.Future.value(), returnValueForMissingStub: _i10.Future.value(), ) as _i10.Future); + @override - _i10.Future<_i5.ExerciseBase> fetchAndSetExerciseBase(int? exerciseBaseId) => (super.noSuchMethod( + _i10.Future<_i5.ExerciseBase> fetchAndSetExerciseBase(int? exerciseBaseId) => + (super.noSuchMethod( Invocation.method( #fetchAndSetExerciseBase, [exerciseBaseId], @@ -527,8 +573,10 @@ class MockExercisesProvider extends _i1.Mock implements _i11.ExercisesProvider { ), )), ) as _i10.Future<_i5.ExerciseBase>); + @override - _i5.ExerciseBase readExerciseBaseFromBaseInfo(dynamic baseData) => (super.noSuchMethod( + _i5.ExerciseBase readExerciseBaseFromBaseInfo(dynamic baseData) => + (super.noSuchMethod( Invocation.method( #readExerciseBaseFromBaseInfo, [baseData], @@ -541,6 +589,7 @@ class MockExercisesProvider extends _i1.Mock implements _i11.ExercisesProvider { ), ), ) as _i5.ExerciseBase); + @override _i10.Future checkExerciseCacheVersion() => (super.noSuchMethod( Invocation.method( @@ -550,6 +599,7 @@ class MockExercisesProvider extends _i1.Mock implements _i11.ExercisesProvider { returnValue: _i10.Future.value(), returnValueForMissingStub: _i10.Future.value(), ) as _i10.Future); + @override _i10.Future fetchAndSetExercises() => (super.noSuchMethod( Invocation.method( @@ -559,6 +609,7 @@ class MockExercisesProvider extends _i1.Mock implements _i11.ExercisesProvider { returnValue: _i10.Future.value(), returnValueForMissingStub: _i10.Future.value(), ) as _i10.Future); + @override _i10.Future> searchExercise( String? name, { @@ -574,8 +625,10 @@ class MockExercisesProvider extends _i1.Mock implements _i11.ExercisesProvider { #searchEnglish: searchEnglish, }, ), - returnValue: _i10.Future>.value(<_i5.ExerciseBase>[]), + returnValue: + _i10.Future>.value(<_i5.ExerciseBase>[]), ) as _i10.Future>); + @override void addListener(_i12.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -584,6 +637,7 @@ class MockExercisesProvider extends _i1.Mock implements _i11.ExercisesProvider { ), returnValueForMissingStub: null, ); + @override void removeListener(_i12.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -592,6 +646,7 @@ class MockExercisesProvider extends _i1.Mock implements _i11.ExercisesProvider { ), returnValueForMissingStub: null, ); + @override void dispose() => super.noSuchMethod( Invocation.method( @@ -600,6 +655,7 @@ class MockExercisesProvider extends _i1.Mock implements _i11.ExercisesProvider { ), returnValueForMissingStub: null, ); + @override void notifyListeners() => super.noSuchMethod( Invocation.method( diff --git a/test/workout/repetition_unit_form_widget_test.dart b/test/workout/repetition_unit_form_widget_test.dart index d237bd49b..61664d3ae 100644 --- a/test/workout/repetition_unit_form_widget_test.dart +++ b/test/workout/repetition_unit_form_widget_test.dart @@ -76,29 +76,14 @@ void main() { testWidgets('Test that the entries are shown', (WidgetTester tester) async { // arrange - final key1 = find.byKey(const Key('1')); - final key2 = find.byKey(const Key('2')); - final key3 = find.byKey(const Key('3')); await tester.pumpWidget(createHomeScreen()); + await tester.tap(find.byKey(const Key('1'))); await tester.pump(); // assert - expect(key1, findsOneWidget); - expect( - (tester.widget(key1) as DropdownMenuItem).value!.name, - equals('some rep unit'), - ); - - expect(key2, findsOneWidget); - expect( - (tester.widget(key2) as DropdownMenuItem).value!.name, - equals('another name'), - ); - expect(key3, findsOneWidget); - expect( - (tester.widget(key3) as DropdownMenuItem).value!.name, - equals('this is repetition number 3'), - ); + expect(find.text('some rep unit'), findsWidgets); + expect(find.text('another name'), findsWidgets); + expect(find.text('this is repetition number 3'), findsWidgets); }); testWidgets('Test that the correct units are set after selection', (WidgetTester tester) async { diff --git a/test/workout/repetition_unit_form_widget_test.mocks.dart b/test/workout/repetition_unit_form_widget_test.mocks.dart index af33fd82c..07ecf14bc 100644 --- a/test/workout/repetition_unit_form_widget_test.mocks.dart +++ b/test/workout/repetition_unit_form_widget_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.4.0 from annotations +// Mocks generated by Mockito 5.4.2 from annotations // in wger/test/workout/repetition_unit_form_widget_test.dart. // Do not manually edit this file. @@ -31,7 +31,8 @@ import 'package:wger/providers/workout_plans.dart' as _i11; // ignore_for_file: camel_case_types // ignore_for_file: subtype_of_sealed_class -class _FakeWgerBaseProvider_0 extends _i1.SmartFake implements _i2.WgerBaseProvider { +class _FakeWgerBaseProvider_0 extends _i1.SmartFake + implements _i2.WgerBaseProvider { _FakeWgerBaseProvider_0( Object parent, Invocation parentInvocation, @@ -51,7 +52,8 @@ class _FakeWeightUnit_1 extends _i1.SmartFake implements _i3.WeightUnit { ); } -class _FakeRepetitionUnit_2 extends _i1.SmartFake implements _i4.RepetitionUnit { +class _FakeRepetitionUnit_2 extends _i1.SmartFake + implements _i4.RepetitionUnit { _FakeRepetitionUnit_2( Object parent, Invocation parentInvocation, @@ -101,7 +103,8 @@ class _FakeSetting_6 extends _i1.SmartFake implements _i8.Setting { ); } -class _FakeWorkoutSession_7 extends _i1.SmartFake implements _i9.WorkoutSession { +class _FakeWorkoutSession_7 extends _i1.SmartFake + implements _i9.WorkoutSession { _FakeWorkoutSession_7( Object parent, Invocation parentInvocation, @@ -124,7 +127,8 @@ class _FakeLog_8 extends _i1.SmartFake implements _i10.Log { /// A class which mocks [WorkoutPlansProvider]. /// /// See the documentation for Mockito's code generation for more information. -class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProvider { +class MockWorkoutPlansProvider extends _i1.Mock + implements _i11.WorkoutPlansProvider { MockWorkoutPlansProvider() { _i1.throwOnMissingStub(this); } @@ -137,16 +141,19 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv Invocation.getter(#baseProvider), ), ) as _i2.WgerBaseProvider); + @override List<_i5.WorkoutPlan> get items => (super.noSuchMethod( Invocation.getter(#items), returnValue: <_i5.WorkoutPlan>[], ) as List<_i5.WorkoutPlan>); + @override List<_i3.WeightUnit> get weightUnits => (super.noSuchMethod( Invocation.getter(#weightUnits), returnValue: <_i3.WeightUnit>[], ) as List<_i3.WeightUnit>); + @override _i3.WeightUnit get defaultWeightUnit => (super.noSuchMethod( Invocation.getter(#defaultWeightUnit), @@ -155,11 +162,13 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv Invocation.getter(#defaultWeightUnit), ), ) as _i3.WeightUnit); + @override List<_i4.RepetitionUnit> get repetitionUnits => (super.noSuchMethod( Invocation.getter(#repetitionUnits), returnValue: <_i4.RepetitionUnit>[], ) as List<_i4.RepetitionUnit>); + @override _i4.RepetitionUnit get defaultRepetitionUnit => (super.noSuchMethod( Invocation.getter(#defaultRepetitionUnit), @@ -168,11 +177,13 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv Invocation.getter(#defaultRepetitionUnit), ), ) as _i4.RepetitionUnit); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); + @override void clear() => super.noSuchMethod( Invocation.method( @@ -181,6 +192,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv ), returnValueForMissingStub: null, ); + @override List<_i5.WorkoutPlan> getPlans() => (super.noSuchMethod( Invocation.method( @@ -189,6 +201,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv ), returnValue: <_i5.WorkoutPlan>[], ) as List<_i5.WorkoutPlan>); + @override _i5.WorkoutPlan findById(int? id) => (super.noSuchMethod( Invocation.method( @@ -203,6 +216,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv ), ), ) as _i5.WorkoutPlan); + @override int findIndexById(int? id) => (super.noSuchMethod( Invocation.method( @@ -211,6 +225,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv ), returnValue: 0, ) as int); + @override void setCurrentPlan(int? id) => super.noSuchMethod( Invocation.method( @@ -219,6 +234,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv ), returnValueForMissingStub: null, ); + @override void resetCurrentPlan() => super.noSuchMethod( Invocation.method( @@ -227,6 +243,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv ), returnValueForMissingStub: null, ); + @override _i12.Future fetchAndSetAllPlansFull() => (super.noSuchMethod( Invocation.method( @@ -236,6 +253,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv returnValue: _i12.Future.value(), returnValueForMissingStub: _i12.Future.value(), ) as _i12.Future); + @override _i12.Future fetchAndSetAllPlansSparse() => (super.noSuchMethod( Invocation.method( @@ -245,8 +263,10 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv returnValue: _i12.Future.value(), returnValueForMissingStub: _i12.Future.value(), ) as _i12.Future); + @override - _i12.Future<_i5.WorkoutPlan> fetchAndSetPlanSparse(int? planId) => (super.noSuchMethod( + _i12.Future<_i5.WorkoutPlan> fetchAndSetPlanSparse(int? planId) => + (super.noSuchMethod( Invocation.method( #fetchAndSetPlanSparse, [planId], @@ -259,8 +279,10 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv ), )), ) as _i12.Future<_i5.WorkoutPlan>); + @override - _i12.Future<_i5.WorkoutPlan> fetchAndSetWorkoutPlanFull(int? workoutId) => (super.noSuchMethod( + _i12.Future<_i5.WorkoutPlan> fetchAndSetWorkoutPlanFull(int? workoutId) => + (super.noSuchMethod( Invocation.method( #fetchAndSetWorkoutPlanFull, [workoutId], @@ -273,8 +295,10 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv ), )), ) as _i12.Future<_i5.WorkoutPlan>); + @override - _i12.Future<_i5.WorkoutPlan> addWorkout(_i5.WorkoutPlan? workout) => (super.noSuchMethod( + _i12.Future<_i5.WorkoutPlan> addWorkout(_i5.WorkoutPlan? workout) => + (super.noSuchMethod( Invocation.method( #addWorkout, [workout], @@ -287,8 +311,10 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv ), )), ) as _i12.Future<_i5.WorkoutPlan>); + @override - _i12.Future editWorkout(_i5.WorkoutPlan? workout) => (super.noSuchMethod( + _i12.Future editWorkout(_i5.WorkoutPlan? workout) => + (super.noSuchMethod( Invocation.method( #editWorkout, [workout], @@ -296,6 +322,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv returnValue: _i12.Future.value(), returnValueForMissingStub: _i12.Future.value(), ) as _i12.Future); + @override _i12.Future deleteWorkout(int? id) => (super.noSuchMethod( Invocation.method( @@ -305,6 +332,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv returnValue: _i12.Future.value(), returnValueForMissingStub: _i12.Future.value(), ) as _i12.Future); + @override _i12.Future> fetchLogData( _i5.WorkoutPlan? workout, @@ -318,8 +346,10 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv base, ], ), - returnValue: _i12.Future>.value({}), + returnValue: + _i12.Future>.value({}), ) as _i12.Future>); + @override _i12.Future fetchAndSetRepetitionUnits() => (super.noSuchMethod( Invocation.method( @@ -329,6 +359,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv returnValue: _i12.Future.value(), returnValueForMissingStub: _i12.Future.value(), ) as _i12.Future); + @override _i12.Future fetchAndSetWeightUnits() => (super.noSuchMethod( Invocation.method( @@ -338,6 +369,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv returnValue: _i12.Future.value(), returnValueForMissingStub: _i12.Future.value(), ) as _i12.Future); + @override _i12.Future fetchAndSetUnits() => (super.noSuchMethod( Invocation.method( @@ -347,6 +379,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv returnValue: _i12.Future.value(), returnValueForMissingStub: _i12.Future.value(), ) as _i12.Future); + @override _i12.Future<_i6.Day> addDay( _i6.Day? day, @@ -371,6 +404,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv ), )), ) as _i12.Future<_i6.Day>); + @override _i12.Future editDay(_i6.Day? day) => (super.noSuchMethod( Invocation.method( @@ -380,6 +414,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv returnValue: _i12.Future.value(), returnValueForMissingStub: _i12.Future.value(), ) as _i12.Future); + @override _i12.Future deleteDay(_i6.Day? day) => (super.noSuchMethod( Invocation.method( @@ -389,6 +424,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv returnValue: _i12.Future.value(), returnValueForMissingStub: _i12.Future.value(), ) as _i12.Future); + @override _i12.Future<_i7.Set> addSet(_i7.Set? workoutSet) => (super.noSuchMethod( Invocation.method( @@ -403,6 +439,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv ), )), ) as _i12.Future<_i7.Set>); + @override _i12.Future editSet(_i7.Set? workoutSet) => (super.noSuchMethod( Invocation.method( @@ -412,6 +449,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv returnValue: _i12.Future.value(), returnValueForMissingStub: _i12.Future.value(), ) as _i12.Future); + @override _i12.Future> reorderSets( List<_i7.Set>? sets, @@ -427,8 +465,10 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv ), returnValue: _i12.Future>.value(<_i7.Set>[]), ) as _i12.Future>); + @override - _i12.Future fetchComputedSettings(_i7.Set? workoutSet) => (super.noSuchMethod( + _i12.Future fetchComputedSettings(_i7.Set? workoutSet) => + (super.noSuchMethod( Invocation.method( #fetchComputedSettings, [workoutSet], @@ -436,6 +476,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv returnValue: _i12.Future.value(), returnValueForMissingStub: _i12.Future.value(), ) as _i12.Future); + @override _i12.Future fetchSmartText( _i7.Set? workoutSet, @@ -451,6 +492,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv ), returnValue: _i12.Future.value(''), ) as _i12.Future); + @override _i12.Future deleteSet(_i7.Set? workoutSet) => (super.noSuchMethod( Invocation.method( @@ -460,8 +502,10 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv returnValue: _i12.Future.value(), returnValueForMissingStub: _i12.Future.value(), ) as _i12.Future); + @override - _i12.Future<_i8.Setting> addSetting(_i8.Setting? workoutSetting) => (super.noSuchMethod( + _i12.Future<_i8.Setting> addSetting(_i8.Setting? workoutSetting) => + (super.noSuchMethod( Invocation.method( #addSetting, [workoutSetting], @@ -474,6 +518,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv ), )), ) as _i12.Future<_i8.Setting>); + @override _i12.Future fetchSessionData() => (super.noSuchMethod( Invocation.method( @@ -482,13 +527,16 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv ), returnValue: _i12.Future.value(), ) as _i12.Future); + @override - _i12.Future<_i9.WorkoutSession> addSession(_i9.WorkoutSession? session) => (super.noSuchMethod( + _i12.Future<_i9.WorkoutSession> addSession(_i9.WorkoutSession? session) => + (super.noSuchMethod( Invocation.method( #addSession, [session], ), - returnValue: _i12.Future<_i9.WorkoutSession>.value(_FakeWorkoutSession_7( + returnValue: + _i12.Future<_i9.WorkoutSession>.value(_FakeWorkoutSession_7( this, Invocation.method( #addSession, @@ -496,6 +544,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv ), )), ) as _i12.Future<_i9.WorkoutSession>); + @override _i12.Future<_i10.Log> addLog(_i10.Log? log) => (super.noSuchMethod( Invocation.method( @@ -510,6 +559,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv ), )), ) as _i12.Future<_i10.Log>); + @override _i12.Future deleteLog(_i10.Log? log) => (super.noSuchMethod( Invocation.method( @@ -519,6 +569,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv returnValue: _i12.Future.value(), returnValueForMissingStub: _i12.Future.value(), ) as _i12.Future); + @override void addListener(_i15.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -527,6 +578,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv ), returnValueForMissingStub: null, ); + @override void removeListener(_i15.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -535,6 +587,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv ), returnValueForMissingStub: null, ); + @override void dispose() => super.noSuchMethod( Invocation.method( @@ -543,6 +596,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv ), returnValueForMissingStub: null, ); + @override void notifyListeners() => super.noSuchMethod( Invocation.method( diff --git a/test/workout/weight_unit_form_widget_test.dart b/test/workout/weight_unit_form_widget_test.dart index 8fbe987a4..eb051354f 100644 --- a/test/workout/weight_unit_form_widget_test.dart +++ b/test/workout/weight_unit_form_widget_test.dart @@ -77,29 +77,14 @@ void main() { testWidgets('Test that the entries are shown', (WidgetTester tester) async { // arrange - final key1 = find.byKey(const Key('1')); - final key2 = find.byKey(const Key('2')); - final key3 = find.byKey(const Key('3')); await tester.pumpWidget(createHomeScreen()); + await tester.tap(find.byKey(const Key('1'))); await tester.pump(); // assert - expect(key1, findsOneWidget); - expect( - (tester.widget(key1) as DropdownMenuItem).value!.name, - equals('kg'), - ); - - expect(key2, findsOneWidget); - expect( - (tester.widget(key2) as DropdownMenuItem).value!.name, - equals('donkeys'), - ); - expect(key3, findsOneWidget); - expect( - (tester.widget(key3) as DropdownMenuItem).value!.name, - equals('plates'), - ); + expect(find.text('kg'), findsWidgets); + expect(find.text('donkeys'), findsWidgets); + expect(find.text('plates'), findsWidgets); }); testWidgets('Test that the correct units are set after selection', (WidgetTester tester) async { diff --git a/test/workout/weight_unit_form_widget_test.mocks.dart b/test/workout/weight_unit_form_widget_test.mocks.dart index f3f638a2b..7dacae9e1 100644 --- a/test/workout/weight_unit_form_widget_test.mocks.dart +++ b/test/workout/weight_unit_form_widget_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.4.0 from annotations +// Mocks generated by Mockito 5.4.2 from annotations // in wger/test/workout/weight_unit_form_widget_test.dart. // Do not manually edit this file. @@ -22,7 +22,8 @@ import 'package:wger/providers/body_weight.dart' as _i4; // ignore_for_file: camel_case_types // ignore_for_file: subtype_of_sealed_class -class _FakeWgerBaseProvider_0 extends _i1.SmartFake implements _i2.WgerBaseProvider { +class _FakeWgerBaseProvider_0 extends _i1.SmartFake + implements _i2.WgerBaseProvider { _FakeWgerBaseProvider_0( Object parent, Invocation parentInvocation, @@ -45,7 +46,8 @@ class _FakeWeightEntry_1 extends _i1.SmartFake implements _i3.WeightEntry { /// A class which mocks [BodyWeightProvider]. /// /// See the documentation for Mockito's code generation for more information. -class MockBodyWeightProvider extends _i1.Mock implements _i4.BodyWeightProvider { +class MockBodyWeightProvider extends _i1.Mock + implements _i4.BodyWeightProvider { MockBodyWeightProvider() { _i1.throwOnMissingStub(this); } @@ -58,11 +60,13 @@ class MockBodyWeightProvider extends _i1.Mock implements _i4.BodyWeightProvider Invocation.getter(#baseProvider), ), ) as _i2.WgerBaseProvider); + @override List<_i3.WeightEntry> get items => (super.noSuchMethod( Invocation.getter(#items), returnValue: <_i3.WeightEntry>[], ) as List<_i3.WeightEntry>); + @override set items(List<_i3.WeightEntry>? entries) => super.noSuchMethod( Invocation.setter( @@ -71,11 +75,13 @@ class MockBodyWeightProvider extends _i1.Mock implements _i4.BodyWeightProvider ), returnValueForMissingStub: null, ); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); + @override void clear() => super.noSuchMethod( Invocation.method( @@ -84,6 +90,7 @@ class MockBodyWeightProvider extends _i1.Mock implements _i4.BodyWeightProvider ), returnValueForMissingStub: null, ); + @override _i3.WeightEntry findById(int? id) => (super.noSuchMethod( Invocation.method( @@ -98,21 +105,27 @@ class MockBodyWeightProvider extends _i1.Mock implements _i4.BodyWeightProvider ), ), ) as _i3.WeightEntry); + @override - _i3.WeightEntry? findByDate(DateTime? date) => (super.noSuchMethod(Invocation.method( + _i3.WeightEntry? findByDate(DateTime? date) => + (super.noSuchMethod(Invocation.method( #findByDate, [date], )) as _i3.WeightEntry?); + @override _i5.Future> fetchAndSetEntries() => (super.noSuchMethod( Invocation.method( #fetchAndSetEntries, [], ), - returnValue: _i5.Future>.value(<_i3.WeightEntry>[]), + returnValue: + _i5.Future>.value(<_i3.WeightEntry>[]), ) as _i5.Future>); + @override - _i5.Future<_i3.WeightEntry> addEntry(_i3.WeightEntry? entry) => (super.noSuchMethod( + _i5.Future<_i3.WeightEntry> addEntry(_i3.WeightEntry? entry) => + (super.noSuchMethod( Invocation.method( #addEntry, [entry], @@ -125,6 +138,7 @@ class MockBodyWeightProvider extends _i1.Mock implements _i4.BodyWeightProvider ), )), ) as _i5.Future<_i3.WeightEntry>); + @override _i5.Future editEntry(_i3.WeightEntry? entry) => (super.noSuchMethod( Invocation.method( @@ -134,6 +148,7 @@ class MockBodyWeightProvider extends _i1.Mock implements _i4.BodyWeightProvider returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); + @override _i5.Future deleteEntry(int? id) => (super.noSuchMethod( Invocation.method( @@ -143,6 +158,7 @@ class MockBodyWeightProvider extends _i1.Mock implements _i4.BodyWeightProvider returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); + @override void addListener(_i6.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -151,6 +167,7 @@ class MockBodyWeightProvider extends _i1.Mock implements _i4.BodyWeightProvider ), returnValueForMissingStub: null, ); + @override void removeListener(_i6.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -159,6 +176,7 @@ class MockBodyWeightProvider extends _i1.Mock implements _i4.BodyWeightProvider ), returnValueForMissingStub: null, ); + @override void dispose() => super.noSuchMethod( Invocation.method( @@ -167,6 +185,7 @@ class MockBodyWeightProvider extends _i1.Mock implements _i4.BodyWeightProvider ), returnValueForMissingStub: null, ); + @override void notifyListeners() => super.noSuchMethod( Invocation.method( diff --git a/test/workout/workout_day_form_test.mocks.dart b/test/workout/workout_day_form_test.mocks.dart index 9a50fe297..c147b84f0 100644 --- a/test/workout/workout_day_form_test.mocks.dart +++ b/test/workout/workout_day_form_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.4.0 from annotations +// Mocks generated by Mockito 5.4.2 from annotations // in wger/test/workout/workout_day_form_test.dart. // Do not manually edit this file. @@ -31,7 +31,8 @@ import 'package:wger/providers/workout_plans.dart' as _i11; // ignore_for_file: camel_case_types // ignore_for_file: subtype_of_sealed_class -class _FakeWgerBaseProvider_0 extends _i1.SmartFake implements _i2.WgerBaseProvider { +class _FakeWgerBaseProvider_0 extends _i1.SmartFake + implements _i2.WgerBaseProvider { _FakeWgerBaseProvider_0( Object parent, Invocation parentInvocation, @@ -51,7 +52,8 @@ class _FakeWeightUnit_1 extends _i1.SmartFake implements _i3.WeightUnit { ); } -class _FakeRepetitionUnit_2 extends _i1.SmartFake implements _i4.RepetitionUnit { +class _FakeRepetitionUnit_2 extends _i1.SmartFake + implements _i4.RepetitionUnit { _FakeRepetitionUnit_2( Object parent, Invocation parentInvocation, @@ -101,7 +103,8 @@ class _FakeSetting_6 extends _i1.SmartFake implements _i8.Setting { ); } -class _FakeWorkoutSession_7 extends _i1.SmartFake implements _i9.WorkoutSession { +class _FakeWorkoutSession_7 extends _i1.SmartFake + implements _i9.WorkoutSession { _FakeWorkoutSession_7( Object parent, Invocation parentInvocation, @@ -124,7 +127,8 @@ class _FakeLog_8 extends _i1.SmartFake implements _i10.Log { /// A class which mocks [WorkoutPlansProvider]. /// /// See the documentation for Mockito's code generation for more information. -class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProvider { +class MockWorkoutPlansProvider extends _i1.Mock + implements _i11.WorkoutPlansProvider { MockWorkoutPlansProvider() { _i1.throwOnMissingStub(this); } @@ -137,16 +141,19 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv Invocation.getter(#baseProvider), ), ) as _i2.WgerBaseProvider); + @override List<_i5.WorkoutPlan> get items => (super.noSuchMethod( Invocation.getter(#items), returnValue: <_i5.WorkoutPlan>[], ) as List<_i5.WorkoutPlan>); + @override List<_i3.WeightUnit> get weightUnits => (super.noSuchMethod( Invocation.getter(#weightUnits), returnValue: <_i3.WeightUnit>[], ) as List<_i3.WeightUnit>); + @override _i3.WeightUnit get defaultWeightUnit => (super.noSuchMethod( Invocation.getter(#defaultWeightUnit), @@ -155,11 +162,13 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv Invocation.getter(#defaultWeightUnit), ), ) as _i3.WeightUnit); + @override List<_i4.RepetitionUnit> get repetitionUnits => (super.noSuchMethod( Invocation.getter(#repetitionUnits), returnValue: <_i4.RepetitionUnit>[], ) as List<_i4.RepetitionUnit>); + @override _i4.RepetitionUnit get defaultRepetitionUnit => (super.noSuchMethod( Invocation.getter(#defaultRepetitionUnit), @@ -168,11 +177,13 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv Invocation.getter(#defaultRepetitionUnit), ), ) as _i4.RepetitionUnit); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); + @override void clear() => super.noSuchMethod( Invocation.method( @@ -181,6 +192,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv ), returnValueForMissingStub: null, ); + @override List<_i5.WorkoutPlan> getPlans() => (super.noSuchMethod( Invocation.method( @@ -189,6 +201,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv ), returnValue: <_i5.WorkoutPlan>[], ) as List<_i5.WorkoutPlan>); + @override _i5.WorkoutPlan findById(int? id) => (super.noSuchMethod( Invocation.method( @@ -203,6 +216,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv ), ), ) as _i5.WorkoutPlan); + @override int findIndexById(int? id) => (super.noSuchMethod( Invocation.method( @@ -211,6 +225,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv ), returnValue: 0, ) as int); + @override void setCurrentPlan(int? id) => super.noSuchMethod( Invocation.method( @@ -219,6 +234,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv ), returnValueForMissingStub: null, ); + @override void resetCurrentPlan() => super.noSuchMethod( Invocation.method( @@ -227,6 +243,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv ), returnValueForMissingStub: null, ); + @override _i12.Future fetchAndSetAllPlansFull() => (super.noSuchMethod( Invocation.method( @@ -236,6 +253,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv returnValue: _i12.Future.value(), returnValueForMissingStub: _i12.Future.value(), ) as _i12.Future); + @override _i12.Future fetchAndSetAllPlansSparse() => (super.noSuchMethod( Invocation.method( @@ -245,8 +263,10 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv returnValue: _i12.Future.value(), returnValueForMissingStub: _i12.Future.value(), ) as _i12.Future); + @override - _i12.Future<_i5.WorkoutPlan> fetchAndSetPlanSparse(int? planId) => (super.noSuchMethod( + _i12.Future<_i5.WorkoutPlan> fetchAndSetPlanSparse(int? planId) => + (super.noSuchMethod( Invocation.method( #fetchAndSetPlanSparse, [planId], @@ -259,8 +279,10 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv ), )), ) as _i12.Future<_i5.WorkoutPlan>); + @override - _i12.Future<_i5.WorkoutPlan> fetchAndSetWorkoutPlanFull(int? workoutId) => (super.noSuchMethod( + _i12.Future<_i5.WorkoutPlan> fetchAndSetWorkoutPlanFull(int? workoutId) => + (super.noSuchMethod( Invocation.method( #fetchAndSetWorkoutPlanFull, [workoutId], @@ -273,8 +295,10 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv ), )), ) as _i12.Future<_i5.WorkoutPlan>); + @override - _i12.Future<_i5.WorkoutPlan> addWorkout(_i5.WorkoutPlan? workout) => (super.noSuchMethod( + _i12.Future<_i5.WorkoutPlan> addWorkout(_i5.WorkoutPlan? workout) => + (super.noSuchMethod( Invocation.method( #addWorkout, [workout], @@ -287,8 +311,10 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv ), )), ) as _i12.Future<_i5.WorkoutPlan>); + @override - _i12.Future editWorkout(_i5.WorkoutPlan? workout) => (super.noSuchMethod( + _i12.Future editWorkout(_i5.WorkoutPlan? workout) => + (super.noSuchMethod( Invocation.method( #editWorkout, [workout], @@ -296,6 +322,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv returnValue: _i12.Future.value(), returnValueForMissingStub: _i12.Future.value(), ) as _i12.Future); + @override _i12.Future deleteWorkout(int? id) => (super.noSuchMethod( Invocation.method( @@ -305,6 +332,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv returnValue: _i12.Future.value(), returnValueForMissingStub: _i12.Future.value(), ) as _i12.Future); + @override _i12.Future> fetchLogData( _i5.WorkoutPlan? workout, @@ -318,8 +346,10 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv base, ], ), - returnValue: _i12.Future>.value({}), + returnValue: + _i12.Future>.value({}), ) as _i12.Future>); + @override _i12.Future fetchAndSetRepetitionUnits() => (super.noSuchMethod( Invocation.method( @@ -329,6 +359,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv returnValue: _i12.Future.value(), returnValueForMissingStub: _i12.Future.value(), ) as _i12.Future); + @override _i12.Future fetchAndSetWeightUnits() => (super.noSuchMethod( Invocation.method( @@ -338,6 +369,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv returnValue: _i12.Future.value(), returnValueForMissingStub: _i12.Future.value(), ) as _i12.Future); + @override _i12.Future fetchAndSetUnits() => (super.noSuchMethod( Invocation.method( @@ -347,6 +379,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv returnValue: _i12.Future.value(), returnValueForMissingStub: _i12.Future.value(), ) as _i12.Future); + @override _i12.Future<_i6.Day> addDay( _i6.Day? day, @@ -371,6 +404,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv ), )), ) as _i12.Future<_i6.Day>); + @override _i12.Future editDay(_i6.Day? day) => (super.noSuchMethod( Invocation.method( @@ -380,6 +414,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv returnValue: _i12.Future.value(), returnValueForMissingStub: _i12.Future.value(), ) as _i12.Future); + @override _i12.Future deleteDay(_i6.Day? day) => (super.noSuchMethod( Invocation.method( @@ -389,6 +424,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv returnValue: _i12.Future.value(), returnValueForMissingStub: _i12.Future.value(), ) as _i12.Future); + @override _i12.Future<_i7.Set> addSet(_i7.Set? workoutSet) => (super.noSuchMethod( Invocation.method( @@ -403,6 +439,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv ), )), ) as _i12.Future<_i7.Set>); + @override _i12.Future editSet(_i7.Set? workoutSet) => (super.noSuchMethod( Invocation.method( @@ -412,6 +449,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv returnValue: _i12.Future.value(), returnValueForMissingStub: _i12.Future.value(), ) as _i12.Future); + @override _i12.Future> reorderSets( List<_i7.Set>? sets, @@ -427,8 +465,10 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv ), returnValue: _i12.Future>.value(<_i7.Set>[]), ) as _i12.Future>); + @override - _i12.Future fetchComputedSettings(_i7.Set? workoutSet) => (super.noSuchMethod( + _i12.Future fetchComputedSettings(_i7.Set? workoutSet) => + (super.noSuchMethod( Invocation.method( #fetchComputedSettings, [workoutSet], @@ -436,6 +476,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv returnValue: _i12.Future.value(), returnValueForMissingStub: _i12.Future.value(), ) as _i12.Future); + @override _i12.Future fetchSmartText( _i7.Set? workoutSet, @@ -451,6 +492,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv ), returnValue: _i12.Future.value(''), ) as _i12.Future); + @override _i12.Future deleteSet(_i7.Set? workoutSet) => (super.noSuchMethod( Invocation.method( @@ -460,8 +502,10 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv returnValue: _i12.Future.value(), returnValueForMissingStub: _i12.Future.value(), ) as _i12.Future); + @override - _i12.Future<_i8.Setting> addSetting(_i8.Setting? workoutSetting) => (super.noSuchMethod( + _i12.Future<_i8.Setting> addSetting(_i8.Setting? workoutSetting) => + (super.noSuchMethod( Invocation.method( #addSetting, [workoutSetting], @@ -474,6 +518,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv ), )), ) as _i12.Future<_i8.Setting>); + @override _i12.Future fetchSessionData() => (super.noSuchMethod( Invocation.method( @@ -482,13 +527,16 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv ), returnValue: _i12.Future.value(), ) as _i12.Future); + @override - _i12.Future<_i9.WorkoutSession> addSession(_i9.WorkoutSession? session) => (super.noSuchMethod( + _i12.Future<_i9.WorkoutSession> addSession(_i9.WorkoutSession? session) => + (super.noSuchMethod( Invocation.method( #addSession, [session], ), - returnValue: _i12.Future<_i9.WorkoutSession>.value(_FakeWorkoutSession_7( + returnValue: + _i12.Future<_i9.WorkoutSession>.value(_FakeWorkoutSession_7( this, Invocation.method( #addSession, @@ -496,6 +544,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv ), )), ) as _i12.Future<_i9.WorkoutSession>); + @override _i12.Future<_i10.Log> addLog(_i10.Log? log) => (super.noSuchMethod( Invocation.method( @@ -510,6 +559,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv ), )), ) as _i12.Future<_i10.Log>); + @override _i12.Future deleteLog(_i10.Log? log) => (super.noSuchMethod( Invocation.method( @@ -519,6 +569,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv returnValue: _i12.Future.value(), returnValueForMissingStub: _i12.Future.value(), ) as _i12.Future); + @override void addListener(_i15.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -527,6 +578,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv ), returnValueForMissingStub: null, ); + @override void removeListener(_i15.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -535,6 +587,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv ), returnValueForMissingStub: null, ); + @override void dispose() => super.noSuchMethod( Invocation.method( @@ -543,6 +596,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv ), returnValueForMissingStub: null, ); + @override void notifyListeners() => super.noSuchMethod( Invocation.method( diff --git a/test/workout/workout_form_test.mocks.dart b/test/workout/workout_form_test.mocks.dart index 6eda30254..a61e2a921 100644 --- a/test/workout/workout_form_test.mocks.dart +++ b/test/workout/workout_form_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.4.0 from annotations +// Mocks generated by Mockito 5.4.2 from annotations // in wger/test/workout/workout_form_test.dart. // Do not manually edit this file. @@ -31,7 +31,8 @@ import 'package:wger/providers/workout_plans.dart' as _i11; // ignore_for_file: camel_case_types // ignore_for_file: subtype_of_sealed_class -class _FakeWgerBaseProvider_0 extends _i1.SmartFake implements _i2.WgerBaseProvider { +class _FakeWgerBaseProvider_0 extends _i1.SmartFake + implements _i2.WgerBaseProvider { _FakeWgerBaseProvider_0( Object parent, Invocation parentInvocation, @@ -51,7 +52,8 @@ class _FakeWeightUnit_1 extends _i1.SmartFake implements _i3.WeightUnit { ); } -class _FakeRepetitionUnit_2 extends _i1.SmartFake implements _i4.RepetitionUnit { +class _FakeRepetitionUnit_2 extends _i1.SmartFake + implements _i4.RepetitionUnit { _FakeRepetitionUnit_2( Object parent, Invocation parentInvocation, @@ -101,7 +103,8 @@ class _FakeSetting_6 extends _i1.SmartFake implements _i8.Setting { ); } -class _FakeWorkoutSession_7 extends _i1.SmartFake implements _i9.WorkoutSession { +class _FakeWorkoutSession_7 extends _i1.SmartFake + implements _i9.WorkoutSession { _FakeWorkoutSession_7( Object parent, Invocation parentInvocation, @@ -124,7 +127,8 @@ class _FakeLog_8 extends _i1.SmartFake implements _i10.Log { /// A class which mocks [WorkoutPlansProvider]. /// /// See the documentation for Mockito's code generation for more information. -class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProvider { +class MockWorkoutPlansProvider extends _i1.Mock + implements _i11.WorkoutPlansProvider { MockWorkoutPlansProvider() { _i1.throwOnMissingStub(this); } @@ -137,16 +141,19 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv Invocation.getter(#baseProvider), ), ) as _i2.WgerBaseProvider); + @override List<_i5.WorkoutPlan> get items => (super.noSuchMethod( Invocation.getter(#items), returnValue: <_i5.WorkoutPlan>[], ) as List<_i5.WorkoutPlan>); + @override List<_i3.WeightUnit> get weightUnits => (super.noSuchMethod( Invocation.getter(#weightUnits), returnValue: <_i3.WeightUnit>[], ) as List<_i3.WeightUnit>); + @override _i3.WeightUnit get defaultWeightUnit => (super.noSuchMethod( Invocation.getter(#defaultWeightUnit), @@ -155,11 +162,13 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv Invocation.getter(#defaultWeightUnit), ), ) as _i3.WeightUnit); + @override List<_i4.RepetitionUnit> get repetitionUnits => (super.noSuchMethod( Invocation.getter(#repetitionUnits), returnValue: <_i4.RepetitionUnit>[], ) as List<_i4.RepetitionUnit>); + @override _i4.RepetitionUnit get defaultRepetitionUnit => (super.noSuchMethod( Invocation.getter(#defaultRepetitionUnit), @@ -168,11 +177,13 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv Invocation.getter(#defaultRepetitionUnit), ), ) as _i4.RepetitionUnit); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); + @override void clear() => super.noSuchMethod( Invocation.method( @@ -181,6 +192,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv ), returnValueForMissingStub: null, ); + @override List<_i5.WorkoutPlan> getPlans() => (super.noSuchMethod( Invocation.method( @@ -189,6 +201,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv ), returnValue: <_i5.WorkoutPlan>[], ) as List<_i5.WorkoutPlan>); + @override _i5.WorkoutPlan findById(int? id) => (super.noSuchMethod( Invocation.method( @@ -203,6 +216,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv ), ), ) as _i5.WorkoutPlan); + @override int findIndexById(int? id) => (super.noSuchMethod( Invocation.method( @@ -211,6 +225,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv ), returnValue: 0, ) as int); + @override void setCurrentPlan(int? id) => super.noSuchMethod( Invocation.method( @@ -219,6 +234,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv ), returnValueForMissingStub: null, ); + @override void resetCurrentPlan() => super.noSuchMethod( Invocation.method( @@ -227,6 +243,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv ), returnValueForMissingStub: null, ); + @override _i12.Future fetchAndSetAllPlansFull() => (super.noSuchMethod( Invocation.method( @@ -236,6 +253,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv returnValue: _i12.Future.value(), returnValueForMissingStub: _i12.Future.value(), ) as _i12.Future); + @override _i12.Future fetchAndSetAllPlansSparse() => (super.noSuchMethod( Invocation.method( @@ -245,8 +263,10 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv returnValue: _i12.Future.value(), returnValueForMissingStub: _i12.Future.value(), ) as _i12.Future); + @override - _i12.Future<_i5.WorkoutPlan> fetchAndSetPlanSparse(int? planId) => (super.noSuchMethod( + _i12.Future<_i5.WorkoutPlan> fetchAndSetPlanSparse(int? planId) => + (super.noSuchMethod( Invocation.method( #fetchAndSetPlanSparse, [planId], @@ -259,8 +279,10 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv ), )), ) as _i12.Future<_i5.WorkoutPlan>); + @override - _i12.Future<_i5.WorkoutPlan> fetchAndSetWorkoutPlanFull(int? workoutId) => (super.noSuchMethod( + _i12.Future<_i5.WorkoutPlan> fetchAndSetWorkoutPlanFull(int? workoutId) => + (super.noSuchMethod( Invocation.method( #fetchAndSetWorkoutPlanFull, [workoutId], @@ -273,8 +295,10 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv ), )), ) as _i12.Future<_i5.WorkoutPlan>); + @override - _i12.Future<_i5.WorkoutPlan> addWorkout(_i5.WorkoutPlan? workout) => (super.noSuchMethod( + _i12.Future<_i5.WorkoutPlan> addWorkout(_i5.WorkoutPlan? workout) => + (super.noSuchMethod( Invocation.method( #addWorkout, [workout], @@ -287,8 +311,10 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv ), )), ) as _i12.Future<_i5.WorkoutPlan>); + @override - _i12.Future editWorkout(_i5.WorkoutPlan? workout) => (super.noSuchMethod( + _i12.Future editWorkout(_i5.WorkoutPlan? workout) => + (super.noSuchMethod( Invocation.method( #editWorkout, [workout], @@ -296,6 +322,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv returnValue: _i12.Future.value(), returnValueForMissingStub: _i12.Future.value(), ) as _i12.Future); + @override _i12.Future deleteWorkout(int? id) => (super.noSuchMethod( Invocation.method( @@ -305,6 +332,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv returnValue: _i12.Future.value(), returnValueForMissingStub: _i12.Future.value(), ) as _i12.Future); + @override _i12.Future> fetchLogData( _i5.WorkoutPlan? workout, @@ -318,8 +346,10 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv base, ], ), - returnValue: _i12.Future>.value({}), + returnValue: + _i12.Future>.value({}), ) as _i12.Future>); + @override _i12.Future fetchAndSetRepetitionUnits() => (super.noSuchMethod( Invocation.method( @@ -329,6 +359,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv returnValue: _i12.Future.value(), returnValueForMissingStub: _i12.Future.value(), ) as _i12.Future); + @override _i12.Future fetchAndSetWeightUnits() => (super.noSuchMethod( Invocation.method( @@ -338,6 +369,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv returnValue: _i12.Future.value(), returnValueForMissingStub: _i12.Future.value(), ) as _i12.Future); + @override _i12.Future fetchAndSetUnits() => (super.noSuchMethod( Invocation.method( @@ -347,6 +379,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv returnValue: _i12.Future.value(), returnValueForMissingStub: _i12.Future.value(), ) as _i12.Future); + @override _i12.Future<_i6.Day> addDay( _i6.Day? day, @@ -371,6 +404,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv ), )), ) as _i12.Future<_i6.Day>); + @override _i12.Future editDay(_i6.Day? day) => (super.noSuchMethod( Invocation.method( @@ -380,6 +414,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv returnValue: _i12.Future.value(), returnValueForMissingStub: _i12.Future.value(), ) as _i12.Future); + @override _i12.Future deleteDay(_i6.Day? day) => (super.noSuchMethod( Invocation.method( @@ -389,6 +424,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv returnValue: _i12.Future.value(), returnValueForMissingStub: _i12.Future.value(), ) as _i12.Future); + @override _i12.Future<_i7.Set> addSet(_i7.Set? workoutSet) => (super.noSuchMethod( Invocation.method( @@ -403,6 +439,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv ), )), ) as _i12.Future<_i7.Set>); + @override _i12.Future editSet(_i7.Set? workoutSet) => (super.noSuchMethod( Invocation.method( @@ -412,6 +449,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv returnValue: _i12.Future.value(), returnValueForMissingStub: _i12.Future.value(), ) as _i12.Future); + @override _i12.Future> reorderSets( List<_i7.Set>? sets, @@ -427,8 +465,10 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv ), returnValue: _i12.Future>.value(<_i7.Set>[]), ) as _i12.Future>); + @override - _i12.Future fetchComputedSettings(_i7.Set? workoutSet) => (super.noSuchMethod( + _i12.Future fetchComputedSettings(_i7.Set? workoutSet) => + (super.noSuchMethod( Invocation.method( #fetchComputedSettings, [workoutSet], @@ -436,6 +476,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv returnValue: _i12.Future.value(), returnValueForMissingStub: _i12.Future.value(), ) as _i12.Future); + @override _i12.Future fetchSmartText( _i7.Set? workoutSet, @@ -451,6 +492,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv ), returnValue: _i12.Future.value(''), ) as _i12.Future); + @override _i12.Future deleteSet(_i7.Set? workoutSet) => (super.noSuchMethod( Invocation.method( @@ -460,8 +502,10 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv returnValue: _i12.Future.value(), returnValueForMissingStub: _i12.Future.value(), ) as _i12.Future); + @override - _i12.Future<_i8.Setting> addSetting(_i8.Setting? workoutSetting) => (super.noSuchMethod( + _i12.Future<_i8.Setting> addSetting(_i8.Setting? workoutSetting) => + (super.noSuchMethod( Invocation.method( #addSetting, [workoutSetting], @@ -474,6 +518,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv ), )), ) as _i12.Future<_i8.Setting>); + @override _i12.Future fetchSessionData() => (super.noSuchMethod( Invocation.method( @@ -482,13 +527,16 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv ), returnValue: _i12.Future.value(), ) as _i12.Future); + @override - _i12.Future<_i9.WorkoutSession> addSession(_i9.WorkoutSession? session) => (super.noSuchMethod( + _i12.Future<_i9.WorkoutSession> addSession(_i9.WorkoutSession? session) => + (super.noSuchMethod( Invocation.method( #addSession, [session], ), - returnValue: _i12.Future<_i9.WorkoutSession>.value(_FakeWorkoutSession_7( + returnValue: + _i12.Future<_i9.WorkoutSession>.value(_FakeWorkoutSession_7( this, Invocation.method( #addSession, @@ -496,6 +544,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv ), )), ) as _i12.Future<_i9.WorkoutSession>); + @override _i12.Future<_i10.Log> addLog(_i10.Log? log) => (super.noSuchMethod( Invocation.method( @@ -510,6 +559,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv ), )), ) as _i12.Future<_i10.Log>); + @override _i12.Future deleteLog(_i10.Log? log) => (super.noSuchMethod( Invocation.method( @@ -519,6 +569,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv returnValue: _i12.Future.value(), returnValueForMissingStub: _i12.Future.value(), ) as _i12.Future); + @override void addListener(_i15.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -527,6 +578,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv ), returnValueForMissingStub: null, ); + @override void removeListener(_i15.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -535,6 +587,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv ), returnValueForMissingStub: null, ); + @override void dispose() => super.noSuchMethod( Invocation.method( @@ -543,6 +596,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i11.WorkoutPlansProv ), returnValueForMissingStub: null, ); + @override void notifyListeners() => super.noSuchMethod( Invocation.method( diff --git a/test/workout/workout_plan_screen_test.mocks.dart b/test/workout/workout_plan_screen_test.mocks.dart index 3ddba8094..03f2be6fa 100644 --- a/test/workout/workout_plan_screen_test.mocks.dart +++ b/test/workout/workout_plan_screen_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.4.0 from annotations +// Mocks generated by Mockito 5.4.2 from annotations // in wger/test/workout/workout_plan_screen_test.dart. // Do not manually edit this file. @@ -77,6 +77,7 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { Invocation.getter(#auth), ), ) as _i2.AuthProvider); + @override set auth(_i2.AuthProvider? _auth) => super.noSuchMethod( Invocation.setter( @@ -85,6 +86,7 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { ), returnValueForMissingStub: null, ); + @override _i3.Client get client => (super.noSuchMethod( Invocation.getter(#client), @@ -93,6 +95,7 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { Invocation.getter(#client), ), ) as _i3.Client); + @override set client(_i3.Client? _client) => super.noSuchMethod( Invocation.setter( @@ -101,8 +104,10 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { ), returnValueForMissingStub: null, ); + @override - Map getDefaultHeaders({dynamic includeAuth = false}) => (super.noSuchMethod( + Map getDefaultHeaders({dynamic includeAuth = false}) => + (super.noSuchMethod( Invocation.method( #getDefaultHeaders, [], @@ -110,6 +115,7 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { ), returnValue: {}, ) as Map); + @override Uri makeUrl( String? path, { @@ -140,14 +146,17 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { ), ), ) as Uri); + @override _i5.Future> fetch(Uri? uri) => (super.noSuchMethod( Invocation.method( #fetch, [uri], ), - returnValue: _i5.Future>.value({}), + returnValue: + _i5.Future>.value({}), ) as _i5.Future>); + @override _i5.Future> fetchPaginated(Uri? uri) => (super.noSuchMethod( Invocation.method( @@ -156,6 +165,7 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { ), returnValue: _i5.Future>.value([]), ) as _i5.Future>); + @override _i5.Future> post( Map? data, @@ -169,8 +179,10 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { uri, ], ), - returnValue: _i5.Future>.value({}), + returnValue: + _i5.Future>.value({}), ) as _i5.Future>); + @override _i5.Future> patch( Map? data, @@ -184,8 +196,10 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { uri, ], ), - returnValue: _i5.Future>.value({}), + returnValue: + _i5.Future>.value({}), ) as _i5.Future>); + @override _i5.Future<_i3.Response> deleteRequest( String? url, diff --git a/test/workout/workout_plans_screen_test.mocks.dart b/test/workout/workout_plans_screen_test.mocks.dart index ef4354646..cdf74da5f 100644 --- a/test/workout/workout_plans_screen_test.mocks.dart +++ b/test/workout/workout_plans_screen_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.4.0 from annotations +// Mocks generated by Mockito 5.4.2 from annotations // in wger/test/workout/workout_plans_screen_test.dart. // Do not manually edit this file. @@ -77,6 +77,7 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { Invocation.getter(#auth), ), ) as _i2.AuthProvider); + @override set auth(_i2.AuthProvider? _auth) => super.noSuchMethod( Invocation.setter( @@ -85,6 +86,7 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { ), returnValueForMissingStub: null, ); + @override _i3.Client get client => (super.noSuchMethod( Invocation.getter(#client), @@ -93,6 +95,7 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { Invocation.getter(#client), ), ) as _i3.Client); + @override set client(_i3.Client? _client) => super.noSuchMethod( Invocation.setter( @@ -101,8 +104,10 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { ), returnValueForMissingStub: null, ); + @override - Map getDefaultHeaders({dynamic includeAuth = false}) => (super.noSuchMethod( + Map getDefaultHeaders({dynamic includeAuth = false}) => + (super.noSuchMethod( Invocation.method( #getDefaultHeaders, [], @@ -110,6 +115,7 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { ), returnValue: {}, ) as Map); + @override Uri makeUrl( String? path, { @@ -140,14 +146,17 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { ), ), ) as Uri); + @override _i5.Future> fetch(Uri? uri) => (super.noSuchMethod( Invocation.method( #fetch, [uri], ), - returnValue: _i5.Future>.value({}), + returnValue: + _i5.Future>.value({}), ) as _i5.Future>); + @override _i5.Future> fetchPaginated(Uri? uri) => (super.noSuchMethod( Invocation.method( @@ -156,6 +165,7 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { ), returnValue: _i5.Future>.value([]), ) as _i5.Future>); + @override _i5.Future> post( Map? data, @@ -169,8 +179,10 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { uri, ], ), - returnValue: _i5.Future>.value({}), + returnValue: + _i5.Future>.value({}), ) as _i5.Future>); + @override _i5.Future> patch( Map? data, @@ -184,8 +196,10 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { uri, ], ), - returnValue: _i5.Future>.value({}), + returnValue: + _i5.Future>.value({}), ) as _i5.Future>); + @override _i5.Future<_i3.Response> deleteRequest( String? url, diff --git a/test/workout/workout_provider_test.mocks.dart b/test/workout/workout_provider_test.mocks.dart index a42145cb9..a89a913f4 100644 --- a/test/workout/workout_provider_test.mocks.dart +++ b/test/workout/workout_provider_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.4.0 from annotations +// Mocks generated by Mockito 5.4.2 from annotations // in wger/test/workout/workout_provider_test.dart. // Do not manually edit this file. @@ -77,6 +77,7 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { Invocation.getter(#auth), ), ) as _i2.AuthProvider); + @override set auth(_i2.AuthProvider? _auth) => super.noSuchMethod( Invocation.setter( @@ -85,6 +86,7 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { ), returnValueForMissingStub: null, ); + @override _i3.Client get client => (super.noSuchMethod( Invocation.getter(#client), @@ -93,6 +95,7 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { Invocation.getter(#client), ), ) as _i3.Client); + @override set client(_i3.Client? _client) => super.noSuchMethod( Invocation.setter( @@ -101,8 +104,10 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { ), returnValueForMissingStub: null, ); + @override - Map getDefaultHeaders({dynamic includeAuth = false}) => (super.noSuchMethod( + Map getDefaultHeaders({dynamic includeAuth = false}) => + (super.noSuchMethod( Invocation.method( #getDefaultHeaders, [], @@ -110,6 +115,7 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { ), returnValue: {}, ) as Map); + @override Uri makeUrl( String? path, { @@ -140,14 +146,17 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { ), ), ) as Uri); + @override _i5.Future> fetch(Uri? uri) => (super.noSuchMethod( Invocation.method( #fetch, [uri], ), - returnValue: _i5.Future>.value({}), + returnValue: + _i5.Future>.value({}), ) as _i5.Future>); + @override _i5.Future> fetchPaginated(Uri? uri) => (super.noSuchMethod( Invocation.method( @@ -156,6 +165,7 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { ), returnValue: _i5.Future>.value([]), ) as _i5.Future>); + @override _i5.Future> post( Map? data, @@ -169,8 +179,10 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { uri, ], ), - returnValue: _i5.Future>.value({}), + returnValue: + _i5.Future>.value({}), ) as _i5.Future>); + @override _i5.Future> patch( Map? data, @@ -184,8 +196,10 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { uri, ], ), - returnValue: _i5.Future>.value({}), + returnValue: + _i5.Future>.value({}), ) as _i5.Future>); + @override _i5.Future<_i3.Response> deleteRequest( String? url, diff --git a/test/workout/workout_set_form_test.mocks.dart b/test/workout/workout_set_form_test.mocks.dart index 3eb80a05e..c319ed775 100644 --- a/test/workout/workout_set_form_test.mocks.dart +++ b/test/workout/workout_set_form_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.4.0 from annotations +// Mocks generated by Mockito 5.4.2 from annotations // in wger/test/workout/workout_set_form_test.dart. // Do not manually edit this file. @@ -38,7 +38,8 @@ import 'package:wger/providers/workout_plans.dart' as _i21; // ignore_for_file: camel_case_types // ignore_for_file: subtype_of_sealed_class -class _FakeWgerBaseProvider_0 extends _i1.SmartFake implements _i2.WgerBaseProvider { +class _FakeWgerBaseProvider_0 extends _i1.SmartFake + implements _i2.WgerBaseProvider { _FakeWgerBaseProvider_0( Object parent, Invocation parentInvocation, @@ -58,7 +59,8 @@ class _FakeExerciseBase_1 extends _i1.SmartFake implements _i3.ExerciseBase { ); } -class _FakeExerciseCategory_2 extends _i1.SmartFake implements _i4.ExerciseCategory { +class _FakeExerciseCategory_2 extends _i1.SmartFake + implements _i4.ExerciseCategory { _FakeExerciseCategory_2( Object parent, Invocation parentInvocation, @@ -148,7 +150,8 @@ class _FakeWeightUnit_10 extends _i1.SmartFake implements _i10.WeightUnit { ); } -class _FakeRepetitionUnit_11 extends _i1.SmartFake implements _i11.RepetitionUnit { +class _FakeRepetitionUnit_11 extends _i1.SmartFake + implements _i11.RepetitionUnit { _FakeRepetitionUnit_11( Object parent, Invocation parentInvocation, @@ -198,7 +201,8 @@ class _FakeSetting_15 extends _i1.SmartFake implements _i15.Setting { ); } -class _FakeWorkoutSession_16 extends _i1.SmartFake implements _i16.WorkoutSession { +class _FakeWorkoutSession_16 extends _i1.SmartFake + implements _i16.WorkoutSession { _FakeWorkoutSession_16( Object parent, Invocation parentInvocation, @@ -234,57 +238,70 @@ class MockExercisesProvider extends _i1.Mock implements _i18.ExercisesProvider { Invocation.getter(#baseProvider), ), ) as _i2.WgerBaseProvider); + @override - set exerciseBases(List<_i3.ExerciseBase>? exercisesBases) => super.noSuchMethod( + set exerciseBases(List<_i3.ExerciseBase>? exercisesBases) => + super.noSuchMethod( Invocation.setter( #exerciseBases, exercisesBases, ), returnValueForMissingStub: null, ); + @override List<_i3.ExerciseBase> get filteredExerciseBases => (super.noSuchMethod( Invocation.getter(#filteredExerciseBases), returnValue: <_i3.ExerciseBase>[], ) as List<_i3.ExerciseBase>); + @override - set filteredExerciseBases(List<_i3.ExerciseBase>? newFilteredExercises) => super.noSuchMethod( + set filteredExerciseBases(List<_i3.ExerciseBase>? newFilteredExercises) => + super.noSuchMethod( Invocation.setter( #filteredExerciseBases, newFilteredExercises, ), returnValueForMissingStub: null, ); + @override - Map> get exerciseBasesByVariation => (super.noSuchMethod( + Map> get exerciseBasesByVariation => + (super.noSuchMethod( Invocation.getter(#exerciseBasesByVariation), returnValue: >{}, ) as Map>); + @override List<_i3.ExerciseBase> get bases => (super.noSuchMethod( Invocation.getter(#bases), returnValue: <_i3.ExerciseBase>[], ) as List<_i3.ExerciseBase>); + @override List<_i4.ExerciseCategory> get categories => (super.noSuchMethod( Invocation.getter(#categories), returnValue: <_i4.ExerciseCategory>[], ) as List<_i4.ExerciseCategory>); + @override List<_i6.Muscle> get muscles => (super.noSuchMethod( Invocation.getter(#muscles), returnValue: <_i6.Muscle>[], ) as List<_i6.Muscle>); + @override List<_i5.Equipment> get equipment => (super.noSuchMethod( Invocation.getter(#equipment), returnValue: <_i5.Equipment>[], ) as List<_i5.Equipment>); + @override List<_i7.Language> get languages => (super.noSuchMethod( Invocation.getter(#languages), returnValue: <_i7.Language>[], ) as List<_i7.Language>); + @override set languages(List<_i7.Language>? languages) => super.noSuchMethod( Invocation.setter( @@ -293,11 +310,13 @@ class MockExercisesProvider extends _i1.Mock implements _i18.ExercisesProvider { ), returnValueForMissingStub: null, ); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); + @override _i19.Future setFilters(_i18.Filters? newFilters) => (super.noSuchMethod( Invocation.method( @@ -307,6 +326,7 @@ class MockExercisesProvider extends _i1.Mock implements _i18.ExercisesProvider { returnValue: _i19.Future.value(), returnValueForMissingStub: _i19.Future.value(), ) as _i19.Future); + @override _i19.Future findByFilters() => (super.noSuchMethod( Invocation.method( @@ -316,6 +336,7 @@ class MockExercisesProvider extends _i1.Mock implements _i18.ExercisesProvider { returnValue: _i19.Future.value(), returnValueForMissingStub: _i19.Future.value(), ) as _i19.Future); + @override void clear() => super.noSuchMethod( Invocation.method( @@ -324,6 +345,7 @@ class MockExercisesProvider extends _i1.Mock implements _i18.ExercisesProvider { ), returnValueForMissingStub: null, ); + @override _i3.ExerciseBase findExerciseBaseById(int? id) => (super.noSuchMethod( Invocation.method( @@ -338,6 +360,7 @@ class MockExercisesProvider extends _i1.Mock implements _i18.ExercisesProvider { ), ), ) as _i3.ExerciseBase); + @override List<_i3.ExerciseBase> findExerciseBasesByVariationId( int? id, { @@ -351,6 +374,7 @@ class MockExercisesProvider extends _i1.Mock implements _i18.ExercisesProvider { ), returnValue: <_i3.ExerciseBase>[], ) as List<_i3.ExerciseBase>); + @override _i4.ExerciseCategory findCategoryById(int? id) => (super.noSuchMethod( Invocation.method( @@ -365,6 +389,7 @@ class MockExercisesProvider extends _i1.Mock implements _i18.ExercisesProvider { ), ), ) as _i4.ExerciseCategory); + @override _i5.Equipment findEquipmentById(int? id) => (super.noSuchMethod( Invocation.method( @@ -379,6 +404,7 @@ class MockExercisesProvider extends _i1.Mock implements _i18.ExercisesProvider { ), ), ) as _i5.Equipment); + @override _i6.Muscle findMuscleById(int? id) => (super.noSuchMethod( Invocation.method( @@ -393,6 +419,7 @@ class MockExercisesProvider extends _i1.Mock implements _i18.ExercisesProvider { ), ), ) as _i6.Muscle); + @override _i7.Language findLanguageById(int? id) => (super.noSuchMethod( Invocation.method( @@ -407,6 +434,7 @@ class MockExercisesProvider extends _i1.Mock implements _i18.ExercisesProvider { ), ), ) as _i7.Language); + @override _i19.Future fetchAndSetCategories() => (super.noSuchMethod( Invocation.method( @@ -416,6 +444,7 @@ class MockExercisesProvider extends _i1.Mock implements _i18.ExercisesProvider { returnValue: _i19.Future.value(), returnValueForMissingStub: _i19.Future.value(), ) as _i19.Future); + @override _i19.Future fetchAndSetVariations() => (super.noSuchMethod( Invocation.method( @@ -425,6 +454,7 @@ class MockExercisesProvider extends _i1.Mock implements _i18.ExercisesProvider { returnValue: _i19.Future.value(), returnValueForMissingStub: _i19.Future.value(), ) as _i19.Future); + @override _i19.Future fetchAndSetMuscles() => (super.noSuchMethod( Invocation.method( @@ -434,6 +464,7 @@ class MockExercisesProvider extends _i1.Mock implements _i18.ExercisesProvider { returnValue: _i19.Future.value(), returnValueForMissingStub: _i19.Future.value(), ) as _i19.Future); + @override _i19.Future fetchAndSetEquipment() => (super.noSuchMethod( Invocation.method( @@ -443,6 +474,7 @@ class MockExercisesProvider extends _i1.Mock implements _i18.ExercisesProvider { returnValue: _i19.Future.value(), returnValueForMissingStub: _i19.Future.value(), ) as _i19.Future); + @override _i19.Future fetchAndSetLanguages() => (super.noSuchMethod( Invocation.method( @@ -452,8 +484,10 @@ class MockExercisesProvider extends _i1.Mock implements _i18.ExercisesProvider { returnValue: _i19.Future.value(), returnValueForMissingStub: _i19.Future.value(), ) as _i19.Future); + @override - _i19.Future<_i3.ExerciseBase> fetchAndSetExerciseBase(int? exerciseBaseId) => (super.noSuchMethod( + _i19.Future<_i3.ExerciseBase> fetchAndSetExerciseBase(int? exerciseBaseId) => + (super.noSuchMethod( Invocation.method( #fetchAndSetExerciseBase, [exerciseBaseId], @@ -466,8 +500,10 @@ class MockExercisesProvider extends _i1.Mock implements _i18.ExercisesProvider { ), )), ) as _i19.Future<_i3.ExerciseBase>); + @override - _i3.ExerciseBase readExerciseBaseFromBaseInfo(dynamic baseData) => (super.noSuchMethod( + _i3.ExerciseBase readExerciseBaseFromBaseInfo(dynamic baseData) => + (super.noSuchMethod( Invocation.method( #readExerciseBaseFromBaseInfo, [baseData], @@ -480,6 +516,7 @@ class MockExercisesProvider extends _i1.Mock implements _i18.ExercisesProvider { ), ), ) as _i3.ExerciseBase); + @override _i19.Future checkExerciseCacheVersion() => (super.noSuchMethod( Invocation.method( @@ -489,6 +526,7 @@ class MockExercisesProvider extends _i1.Mock implements _i18.ExercisesProvider { returnValue: _i19.Future.value(), returnValueForMissingStub: _i19.Future.value(), ) as _i19.Future); + @override _i19.Future fetchAndSetExercises() => (super.noSuchMethod( Invocation.method( @@ -498,6 +536,7 @@ class MockExercisesProvider extends _i1.Mock implements _i18.ExercisesProvider { returnValue: _i19.Future.value(), returnValueForMissingStub: _i19.Future.value(), ) as _i19.Future); + @override _i19.Future> searchExercise( String? name, { @@ -513,8 +552,10 @@ class MockExercisesProvider extends _i1.Mock implements _i18.ExercisesProvider { #searchEnglish: searchEnglish, }, ), - returnValue: _i19.Future>.value(<_i3.ExerciseBase>[]), + returnValue: + _i19.Future>.value(<_i3.ExerciseBase>[]), ) as _i19.Future>); + @override void addListener(_i20.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -523,6 +564,7 @@ class MockExercisesProvider extends _i1.Mock implements _i18.ExercisesProvider { ), returnValueForMissingStub: null, ); + @override void removeListener(_i20.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -531,6 +573,7 @@ class MockExercisesProvider extends _i1.Mock implements _i18.ExercisesProvider { ), returnValueForMissingStub: null, ); + @override void dispose() => super.noSuchMethod( Invocation.method( @@ -539,6 +582,7 @@ class MockExercisesProvider extends _i1.Mock implements _i18.ExercisesProvider { ), returnValueForMissingStub: null, ); + @override void notifyListeners() => super.noSuchMethod( Invocation.method( @@ -565,6 +609,7 @@ class MockWgerBaseProvider extends _i1.Mock implements _i2.WgerBaseProvider { Invocation.getter(#auth), ), ) as _i8.AuthProvider); + @override set auth(_i8.AuthProvider? _auth) => super.noSuchMethod( Invocation.setter( @@ -573,6 +618,7 @@ class MockWgerBaseProvider extends _i1.Mock implements _i2.WgerBaseProvider { ), returnValueForMissingStub: null, ); + @override _i9.Client get client => (super.noSuchMethod( Invocation.getter(#client), @@ -581,6 +627,7 @@ class MockWgerBaseProvider extends _i1.Mock implements _i2.WgerBaseProvider { Invocation.getter(#client), ), ) as _i9.Client); + @override set client(_i9.Client? _client) => super.noSuchMethod( Invocation.setter( @@ -589,8 +636,10 @@ class MockWgerBaseProvider extends _i1.Mock implements _i2.WgerBaseProvider { ), returnValueForMissingStub: null, ); + @override - Map getDefaultHeaders({dynamic includeAuth = false}) => (super.noSuchMethod( + Map getDefaultHeaders({dynamic includeAuth = false}) => + (super.noSuchMethod( Invocation.method( #getDefaultHeaders, [], @@ -598,6 +647,7 @@ class MockWgerBaseProvider extends _i1.Mock implements _i2.WgerBaseProvider { ), returnValue: {}, ) as Map); + @override Uri makeUrl( String? path, { @@ -628,14 +678,17 @@ class MockWgerBaseProvider extends _i1.Mock implements _i2.WgerBaseProvider { ), ), ) as Uri); + @override _i19.Future> fetch(Uri? uri) => (super.noSuchMethod( Invocation.method( #fetch, [uri], ), - returnValue: _i19.Future>.value({}), + returnValue: + _i19.Future>.value({}), ) as _i19.Future>); + @override _i19.Future> fetchPaginated(Uri? uri) => (super.noSuchMethod( Invocation.method( @@ -644,6 +697,7 @@ class MockWgerBaseProvider extends _i1.Mock implements _i2.WgerBaseProvider { ), returnValue: _i19.Future>.value([]), ) as _i19.Future>); + @override _i19.Future> post( Map? data, @@ -657,8 +711,10 @@ class MockWgerBaseProvider extends _i1.Mock implements _i2.WgerBaseProvider { uri, ], ), - returnValue: _i19.Future>.value({}), + returnValue: + _i19.Future>.value({}), ) as _i19.Future>); + @override _i19.Future> patch( Map? data, @@ -672,8 +728,10 @@ class MockWgerBaseProvider extends _i1.Mock implements _i2.WgerBaseProvider { uri, ], ), - returnValue: _i19.Future>.value({}), + returnValue: + _i19.Future>.value({}), ) as _i19.Future>); + @override _i19.Future<_i9.Response> deleteRequest( String? url, @@ -703,7 +761,8 @@ class MockWgerBaseProvider extends _i1.Mock implements _i2.WgerBaseProvider { /// A class which mocks [WorkoutPlansProvider]. /// /// See the documentation for Mockito's code generation for more information. -class MockWorkoutPlansProvider extends _i1.Mock implements _i21.WorkoutPlansProvider { +class MockWorkoutPlansProvider extends _i1.Mock + implements _i21.WorkoutPlansProvider { MockWorkoutPlansProvider() { _i1.throwOnMissingStub(this); } @@ -716,16 +775,19 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i21.WorkoutPlansProv Invocation.getter(#baseProvider), ), ) as _i2.WgerBaseProvider); + @override List<_i12.WorkoutPlan> get items => (super.noSuchMethod( Invocation.getter(#items), returnValue: <_i12.WorkoutPlan>[], ) as List<_i12.WorkoutPlan>); + @override List<_i10.WeightUnit> get weightUnits => (super.noSuchMethod( Invocation.getter(#weightUnits), returnValue: <_i10.WeightUnit>[], ) as List<_i10.WeightUnit>); + @override _i10.WeightUnit get defaultWeightUnit => (super.noSuchMethod( Invocation.getter(#defaultWeightUnit), @@ -734,11 +796,13 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i21.WorkoutPlansProv Invocation.getter(#defaultWeightUnit), ), ) as _i10.WeightUnit); + @override List<_i11.RepetitionUnit> get repetitionUnits => (super.noSuchMethod( Invocation.getter(#repetitionUnits), returnValue: <_i11.RepetitionUnit>[], ) as List<_i11.RepetitionUnit>); + @override _i11.RepetitionUnit get defaultRepetitionUnit => (super.noSuchMethod( Invocation.getter(#defaultRepetitionUnit), @@ -747,11 +811,13 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i21.WorkoutPlansProv Invocation.getter(#defaultRepetitionUnit), ), ) as _i11.RepetitionUnit); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); + @override void clear() => super.noSuchMethod( Invocation.method( @@ -760,6 +826,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i21.WorkoutPlansProv ), returnValueForMissingStub: null, ); + @override List<_i12.WorkoutPlan> getPlans() => (super.noSuchMethod( Invocation.method( @@ -768,6 +835,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i21.WorkoutPlansProv ), returnValue: <_i12.WorkoutPlan>[], ) as List<_i12.WorkoutPlan>); + @override _i12.WorkoutPlan findById(int? id) => (super.noSuchMethod( Invocation.method( @@ -782,6 +850,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i21.WorkoutPlansProv ), ), ) as _i12.WorkoutPlan); + @override int findIndexById(int? id) => (super.noSuchMethod( Invocation.method( @@ -790,6 +859,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i21.WorkoutPlansProv ), returnValue: 0, ) as int); + @override void setCurrentPlan(int? id) => super.noSuchMethod( Invocation.method( @@ -798,6 +868,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i21.WorkoutPlansProv ), returnValueForMissingStub: null, ); + @override void resetCurrentPlan() => super.noSuchMethod( Invocation.method( @@ -806,6 +877,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i21.WorkoutPlansProv ), returnValueForMissingStub: null, ); + @override _i19.Future fetchAndSetAllPlansFull() => (super.noSuchMethod( Invocation.method( @@ -815,6 +887,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i21.WorkoutPlansProv returnValue: _i19.Future.value(), returnValueForMissingStub: _i19.Future.value(), ) as _i19.Future); + @override _i19.Future fetchAndSetAllPlansSparse() => (super.noSuchMethod( Invocation.method( @@ -824,8 +897,10 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i21.WorkoutPlansProv returnValue: _i19.Future.value(), returnValueForMissingStub: _i19.Future.value(), ) as _i19.Future); + @override - _i19.Future<_i12.WorkoutPlan> fetchAndSetPlanSparse(int? planId) => (super.noSuchMethod( + _i19.Future<_i12.WorkoutPlan> fetchAndSetPlanSparse(int? planId) => + (super.noSuchMethod( Invocation.method( #fetchAndSetPlanSparse, [planId], @@ -838,8 +913,10 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i21.WorkoutPlansProv ), )), ) as _i19.Future<_i12.WorkoutPlan>); + @override - _i19.Future<_i12.WorkoutPlan> fetchAndSetWorkoutPlanFull(int? workoutId) => (super.noSuchMethod( + _i19.Future<_i12.WorkoutPlan> fetchAndSetWorkoutPlanFull(int? workoutId) => + (super.noSuchMethod( Invocation.method( #fetchAndSetWorkoutPlanFull, [workoutId], @@ -852,8 +929,10 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i21.WorkoutPlansProv ), )), ) as _i19.Future<_i12.WorkoutPlan>); + @override - _i19.Future<_i12.WorkoutPlan> addWorkout(_i12.WorkoutPlan? workout) => (super.noSuchMethod( + _i19.Future<_i12.WorkoutPlan> addWorkout(_i12.WorkoutPlan? workout) => + (super.noSuchMethod( Invocation.method( #addWorkout, [workout], @@ -866,8 +945,10 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i21.WorkoutPlansProv ), )), ) as _i19.Future<_i12.WorkoutPlan>); + @override - _i19.Future editWorkout(_i12.WorkoutPlan? workout) => (super.noSuchMethod( + _i19.Future editWorkout(_i12.WorkoutPlan? workout) => + (super.noSuchMethod( Invocation.method( #editWorkout, [workout], @@ -875,6 +956,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i21.WorkoutPlansProv returnValue: _i19.Future.value(), returnValueForMissingStub: _i19.Future.value(), ) as _i19.Future); + @override _i19.Future deleteWorkout(int? id) => (super.noSuchMethod( Invocation.method( @@ -884,6 +966,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i21.WorkoutPlansProv returnValue: _i19.Future.value(), returnValueForMissingStub: _i19.Future.value(), ) as _i19.Future); + @override _i19.Future> fetchLogData( _i12.WorkoutPlan? workout, @@ -897,8 +980,10 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i21.WorkoutPlansProv base, ], ), - returnValue: _i19.Future>.value({}), + returnValue: + _i19.Future>.value({}), ) as _i19.Future>); + @override _i19.Future fetchAndSetRepetitionUnits() => (super.noSuchMethod( Invocation.method( @@ -908,6 +993,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i21.WorkoutPlansProv returnValue: _i19.Future.value(), returnValueForMissingStub: _i19.Future.value(), ) as _i19.Future); + @override _i19.Future fetchAndSetWeightUnits() => (super.noSuchMethod( Invocation.method( @@ -917,6 +1003,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i21.WorkoutPlansProv returnValue: _i19.Future.value(), returnValueForMissingStub: _i19.Future.value(), ) as _i19.Future); + @override _i19.Future fetchAndSetUnits() => (super.noSuchMethod( Invocation.method( @@ -926,6 +1013,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i21.WorkoutPlansProv returnValue: _i19.Future.value(), returnValueForMissingStub: _i19.Future.value(), ) as _i19.Future); + @override _i19.Future<_i13.Day> addDay( _i13.Day? day, @@ -950,6 +1038,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i21.WorkoutPlansProv ), )), ) as _i19.Future<_i13.Day>); + @override _i19.Future editDay(_i13.Day? day) => (super.noSuchMethod( Invocation.method( @@ -959,6 +1048,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i21.WorkoutPlansProv returnValue: _i19.Future.value(), returnValueForMissingStub: _i19.Future.value(), ) as _i19.Future); + @override _i19.Future deleteDay(_i13.Day? day) => (super.noSuchMethod( Invocation.method( @@ -968,6 +1058,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i21.WorkoutPlansProv returnValue: _i19.Future.value(), returnValueForMissingStub: _i19.Future.value(), ) as _i19.Future); + @override _i19.Future<_i14.Set> addSet(_i14.Set? workoutSet) => (super.noSuchMethod( Invocation.method( @@ -982,6 +1073,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i21.WorkoutPlansProv ), )), ) as _i19.Future<_i14.Set>); + @override _i19.Future editSet(_i14.Set? workoutSet) => (super.noSuchMethod( Invocation.method( @@ -991,6 +1083,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i21.WorkoutPlansProv returnValue: _i19.Future.value(), returnValueForMissingStub: _i19.Future.value(), ) as _i19.Future); + @override _i19.Future> reorderSets( List<_i14.Set>? sets, @@ -1006,8 +1099,10 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i21.WorkoutPlansProv ), returnValue: _i19.Future>.value(<_i14.Set>[]), ) as _i19.Future>); + @override - _i19.Future fetchComputedSettings(_i14.Set? workoutSet) => (super.noSuchMethod( + _i19.Future fetchComputedSettings(_i14.Set? workoutSet) => + (super.noSuchMethod( Invocation.method( #fetchComputedSettings, [workoutSet], @@ -1015,6 +1110,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i21.WorkoutPlansProv returnValue: _i19.Future.value(), returnValueForMissingStub: _i19.Future.value(), ) as _i19.Future); + @override _i19.Future fetchSmartText( _i14.Set? workoutSet, @@ -1030,6 +1126,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i21.WorkoutPlansProv ), returnValue: _i19.Future.value(''), ) as _i19.Future); + @override _i19.Future deleteSet(_i14.Set? workoutSet) => (super.noSuchMethod( Invocation.method( @@ -1039,8 +1136,10 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i21.WorkoutPlansProv returnValue: _i19.Future.value(), returnValueForMissingStub: _i19.Future.value(), ) as _i19.Future); + @override - _i19.Future<_i15.Setting> addSetting(_i15.Setting? workoutSetting) => (super.noSuchMethod( + _i19.Future<_i15.Setting> addSetting(_i15.Setting? workoutSetting) => + (super.noSuchMethod( Invocation.method( #addSetting, [workoutSetting], @@ -1053,6 +1152,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i21.WorkoutPlansProv ), )), ) as _i19.Future<_i15.Setting>); + @override _i19.Future fetchSessionData() => (super.noSuchMethod( Invocation.method( @@ -1061,13 +1161,16 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i21.WorkoutPlansProv ), returnValue: _i19.Future.value(), ) as _i19.Future); + @override - _i19.Future<_i16.WorkoutSession> addSession(_i16.WorkoutSession? session) => (super.noSuchMethod( + _i19.Future<_i16.WorkoutSession> addSession(_i16.WorkoutSession? session) => + (super.noSuchMethod( Invocation.method( #addSession, [session], ), - returnValue: _i19.Future<_i16.WorkoutSession>.value(_FakeWorkoutSession_16( + returnValue: + _i19.Future<_i16.WorkoutSession>.value(_FakeWorkoutSession_16( this, Invocation.method( #addSession, @@ -1075,6 +1178,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i21.WorkoutPlansProv ), )), ) as _i19.Future<_i16.WorkoutSession>); + @override _i19.Future<_i17.Log> addLog(_i17.Log? log) => (super.noSuchMethod( Invocation.method( @@ -1089,6 +1193,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i21.WorkoutPlansProv ), )), ) as _i19.Future<_i17.Log>); + @override _i19.Future deleteLog(_i17.Log? log) => (super.noSuchMethod( Invocation.method( @@ -1098,6 +1203,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i21.WorkoutPlansProv returnValue: _i19.Future.value(), returnValueForMissingStub: _i19.Future.value(), ) as _i19.Future); + @override void addListener(_i20.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -1106,6 +1212,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i21.WorkoutPlansProv ), returnValueForMissingStub: null, ); + @override void removeListener(_i20.VoidCallback? listener) => super.noSuchMethod( Invocation.method( @@ -1114,6 +1221,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i21.WorkoutPlansProv ), returnValueForMissingStub: null, ); + @override void dispose() => super.noSuchMethod( Invocation.method( @@ -1122,6 +1230,7 @@ class MockWorkoutPlansProvider extends _i1.Mock implements _i21.WorkoutPlansProv ), returnValueForMissingStub: null, ); + @override void notifyListeners() => super.noSuchMethod( Invocation.method(