mirror of
https://github.com/wger-project/flutter.git
synced 2026-02-18 00:17:48 +01:00
Recreate generated files
This commit is contained in:
@@ -431,7 +431,10 @@ typedef $$IngredientsTableProcessedTableManager =
|
|||||||
$$IngredientsTableAnnotationComposer,
|
$$IngredientsTableAnnotationComposer,
|
||||||
$$IngredientsTableCreateCompanionBuilder,
|
$$IngredientsTableCreateCompanionBuilder,
|
||||||
$$IngredientsTableUpdateCompanionBuilder,
|
$$IngredientsTableUpdateCompanionBuilder,
|
||||||
(IngredientTable, BaseReferences<_$IngredientDatabase, $IngredientsTable, IngredientTable>),
|
(
|
||||||
|
IngredientTable,
|
||||||
|
BaseReferences<_$IngredientDatabase, $IngredientsTable, IngredientTable>,
|
||||||
|
),
|
||||||
IngredientTable,
|
IngredientTable,
|
||||||
PrefetchHooks Function()
|
PrefetchHooks Function()
|
||||||
>;
|
>;
|
||||||
|
|||||||
@@ -7454,7 +7454,10 @@ class $$ExerciseSecondaryMuscleM2NTableTableManager
|
|||||||
$$ExerciseSecondaryMuscleM2NTableAnnotationComposer,
|
$$ExerciseSecondaryMuscleM2NTableAnnotationComposer,
|
||||||
$$ExerciseSecondaryMuscleM2NTableCreateCompanionBuilder,
|
$$ExerciseSecondaryMuscleM2NTableCreateCompanionBuilder,
|
||||||
$$ExerciseSecondaryMuscleM2NTableUpdateCompanionBuilder,
|
$$ExerciseSecondaryMuscleM2NTableUpdateCompanionBuilder,
|
||||||
(ExerciseSecondaryMuscleM2NData, $$ExerciseSecondaryMuscleM2NTableReferences),
|
(
|
||||||
|
ExerciseSecondaryMuscleM2NData,
|
||||||
|
$$ExerciseSecondaryMuscleM2NTableReferences,
|
||||||
|
),
|
||||||
ExerciseSecondaryMuscleM2NData,
|
ExerciseSecondaryMuscleM2NData,
|
||||||
PrefetchHooks Function({bool exerciseId, bool muscleId})
|
PrefetchHooks Function({bool exerciseId, bool muscleId})
|
||||||
> {
|
> {
|
||||||
@@ -7577,7 +7580,10 @@ typedef $$ExerciseSecondaryMuscleM2NTableProcessedTableManager =
|
|||||||
$$ExerciseSecondaryMuscleM2NTableAnnotationComposer,
|
$$ExerciseSecondaryMuscleM2NTableAnnotationComposer,
|
||||||
$$ExerciseSecondaryMuscleM2NTableCreateCompanionBuilder,
|
$$ExerciseSecondaryMuscleM2NTableCreateCompanionBuilder,
|
||||||
$$ExerciseSecondaryMuscleM2NTableUpdateCompanionBuilder,
|
$$ExerciseSecondaryMuscleM2NTableUpdateCompanionBuilder,
|
||||||
(ExerciseSecondaryMuscleM2NData, $$ExerciseSecondaryMuscleM2NTableReferences),
|
(
|
||||||
|
ExerciseSecondaryMuscleM2NData,
|
||||||
|
$$ExerciseSecondaryMuscleM2NTableReferences,
|
||||||
|
),
|
||||||
ExerciseSecondaryMuscleM2NData,
|
ExerciseSecondaryMuscleM2NData,
|
||||||
PrefetchHooks Function({bool exerciseId, bool muscleId})
|
PrefetchHooks Function({bool exerciseId, bool muscleId})
|
||||||
>;
|
>;
|
||||||
@@ -9158,7 +9164,10 @@ typedef $$WeightEntryTableTableProcessedTableManager =
|
|||||||
$$WeightEntryTableTableAnnotationComposer,
|
$$WeightEntryTableTableAnnotationComposer,
|
||||||
$$WeightEntryTableTableCreateCompanionBuilder,
|
$$WeightEntryTableTableCreateCompanionBuilder,
|
||||||
$$WeightEntryTableTableUpdateCompanionBuilder,
|
$$WeightEntryTableTableUpdateCompanionBuilder,
|
||||||
(WeightEntry, BaseReferences<_$DriftPowersyncDatabase, $WeightEntryTableTable, WeightEntry>),
|
(
|
||||||
|
WeightEntry,
|
||||||
|
BaseReferences<_$DriftPowersyncDatabase, $WeightEntryTableTable, WeightEntry>,
|
||||||
|
),
|
||||||
WeightEntry,
|
WeightEntry,
|
||||||
PrefetchHooks Function()
|
PrefetchHooks Function()
|
||||||
>;
|
>;
|
||||||
@@ -9627,7 +9636,10 @@ class $$WorkoutLogTableTableTableManager
|
|||||||
$$WorkoutLogTableTableAnnotationComposer,
|
$$WorkoutLogTableTableAnnotationComposer,
|
||||||
$$WorkoutLogTableTableCreateCompanionBuilder,
|
$$WorkoutLogTableTableCreateCompanionBuilder,
|
||||||
$$WorkoutLogTableTableUpdateCompanionBuilder,
|
$$WorkoutLogTableTableUpdateCompanionBuilder,
|
||||||
(Log, BaseReferences<_$DriftPowersyncDatabase, $WorkoutLogTableTable, Log>),
|
(
|
||||||
|
Log,
|
||||||
|
BaseReferences<_$DriftPowersyncDatabase, $WorkoutLogTableTable, Log>,
|
||||||
|
),
|
||||||
Log,
|
Log,
|
||||||
PrefetchHooks Function()
|
PrefetchHooks Function()
|
||||||
> {
|
> {
|
||||||
@@ -9733,7 +9745,10 @@ typedef $$WorkoutLogTableTableProcessedTableManager =
|
|||||||
$$WorkoutLogTableTableAnnotationComposer,
|
$$WorkoutLogTableTableAnnotationComposer,
|
||||||
$$WorkoutLogTableTableCreateCompanionBuilder,
|
$$WorkoutLogTableTableCreateCompanionBuilder,
|
||||||
$$WorkoutLogTableTableUpdateCompanionBuilder,
|
$$WorkoutLogTableTableUpdateCompanionBuilder,
|
||||||
(Log, BaseReferences<_$DriftPowersyncDatabase, $WorkoutLogTableTable, Log>),
|
(
|
||||||
|
Log,
|
||||||
|
BaseReferences<_$DriftPowersyncDatabase, $WorkoutLogTableTable, Log>,
|
||||||
|
),
|
||||||
Log,
|
Log,
|
||||||
PrefetchHooks Function()
|
PrefetchHooks Function()
|
||||||
>;
|
>;
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ import 'package:mockito/src/dummies.dart' as _i5;
|
|||||||
// ignore_for_file: unnecessary_parenthesis
|
// ignore_for_file: unnecessary_parenthesis
|
||||||
// ignore_for_file: camel_case_types
|
// ignore_for_file: camel_case_types
|
||||||
// ignore_for_file: subtype_of_sealed_class
|
// ignore_for_file: subtype_of_sealed_class
|
||||||
|
// ignore_for_file: invalid_use_of_internal_member
|
||||||
|
|
||||||
class _FakeResponse_0 extends _i1.SmartFake implements _i2.Response {
|
class _FakeResponse_0 extends _i1.SmartFake implements _i2.Response {
|
||||||
_FakeResponse_0(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
_FakeResponse_0(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ import 'package:wger/providers/user.dart' as _i14;
|
|||||||
// ignore_for_file: unnecessary_parenthesis
|
// ignore_for_file: unnecessary_parenthesis
|
||||||
// ignore_for_file: camel_case_types
|
// ignore_for_file: camel_case_types
|
||||||
// ignore_for_file: subtype_of_sealed_class
|
// ignore_for_file: subtype_of_sealed_class
|
||||||
|
// ignore_for_file: invalid_use_of_internal_member
|
||||||
|
|
||||||
class _FakeWgerBaseProvider_0 extends _i1.SmartFake implements _i2.WgerBaseProvider {
|
class _FakeWgerBaseProvider_0 extends _i1.SmartFake implements _i2.WgerBaseProvider {
|
||||||
_FakeWgerBaseProvider_0(Object parent, Invocation parentInvocation)
|
_FakeWgerBaseProvider_0(Object parent, Invocation parentInvocation)
|
||||||
@@ -130,14 +131,14 @@ class MockNutritionPlansProvider extends _i1.Mock implements _i11.NutritionPlans
|
|||||||
as List<_i4.NutritionalPlan>);
|
as List<_i4.NutritionalPlan>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set database(_i3.IngredientDatabase? _database) => super.noSuchMethod(
|
set database(_i3.IngredientDatabase? value) => super.noSuchMethod(
|
||||||
Invocation.setter(#database, _database),
|
Invocation.setter(#database, value),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set ingredients(List<_i7.Ingredient>? _ingredients) => super.noSuchMethod(
|
set ingredients(List<_i7.Ingredient>? value) => super.noSuchMethod(
|
||||||
Invocation.setter(#ingredients, _ingredients),
|
Invocation.setter(#ingredients, value),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -304,6 +305,22 @@ class MockNutritionPlansProvider extends _i1.Mock implements _i11.NutritionPlans
|
|||||||
)
|
)
|
||||||
as _i12.Future<void>);
|
as _i12.Future<void>);
|
||||||
|
|
||||||
|
@override
|
||||||
|
_i12.Future<void> cacheIngredient(
|
||||||
|
_i7.Ingredient? ingredient, {
|
||||||
|
_i3.IngredientDatabase? database,
|
||||||
|
}) =>
|
||||||
|
(super.noSuchMethod(
|
||||||
|
Invocation.method(
|
||||||
|
#cacheIngredient,
|
||||||
|
[ingredient],
|
||||||
|
{#database: database},
|
||||||
|
),
|
||||||
|
returnValue: _i12.Future<void>.value(),
|
||||||
|
returnValueForMissingStub: _i12.Future<void>.value(),
|
||||||
|
)
|
||||||
|
as _i12.Future<void>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i12.Future<_i7.Ingredient> fetchIngredient(
|
_i12.Future<_i7.Ingredient> fetchIngredient(
|
||||||
int? ingredientId, {
|
int? ingredientId, {
|
||||||
@@ -471,20 +488,20 @@ class MockUserProvider extends _i1.Mock implements _i14.UserProvider {
|
|||||||
as _i8.SharedPreferencesAsync);
|
as _i8.SharedPreferencesAsync);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set themeMode(_i15.ThemeMode? _themeMode) => super.noSuchMethod(
|
set themeMode(_i15.ThemeMode? value) => super.noSuchMethod(
|
||||||
Invocation.setter(#themeMode, _themeMode),
|
Invocation.setter(#themeMode, value),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set prefs(_i8.SharedPreferencesAsync? _prefs) => super.noSuchMethod(
|
set prefs(_i8.SharedPreferencesAsync? value) => super.noSuchMethod(
|
||||||
Invocation.setter(#prefs, _prefs),
|
Invocation.setter(#prefs, value),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set profile(_i16.Profile? _profile) => super.noSuchMethod(
|
set profile(_i16.Profile? value) => super.noSuchMethod(
|
||||||
Invocation.setter(#profile, _profile),
|
Invocation.setter(#profile, value),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -581,14 +598,14 @@ class MockWgerBaseProvider extends _i1.Mock implements _i2.WgerBaseProvider {
|
|||||||
as _i10.Client);
|
as _i10.Client);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set auth(_i9.AuthProvider? _auth) => super.noSuchMethod(
|
set auth(_i9.AuthProvider? value) => super.noSuchMethod(
|
||||||
Invocation.setter(#auth, _auth),
|
Invocation.setter(#auth, value),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set client(_i10.Client? _client) => super.noSuchMethod(
|
set client(_i10.Client? value) => super.noSuchMethod(
|
||||||
Invocation.setter(#client, _client),
|
Invocation.setter(#client, value),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ import 'package:wger/l10n/generated/app_localizations.dart' as _i2;
|
|||||||
// ignore_for_file: unnecessary_parenthesis
|
// ignore_for_file: unnecessary_parenthesis
|
||||||
// ignore_for_file: camel_case_types
|
// ignore_for_file: camel_case_types
|
||||||
// ignore_for_file: subtype_of_sealed_class
|
// ignore_for_file: subtype_of_sealed_class
|
||||||
|
// ignore_for_file: invalid_use_of_internal_member
|
||||||
|
|
||||||
/// A class which mocks [AppLocalizations].
|
/// A class which mocks [AppLocalizations].
|
||||||
///
|
///
|
||||||
|
|||||||
@@ -8,11 +8,11 @@ import 'dart:ui' as _i15;
|
|||||||
|
|
||||||
import 'package:http/http.dart' as _i5;
|
import 'package:http/http.dart' as _i5;
|
||||||
import 'package:mockito/mockito.dart' as _i1;
|
import 'package:mockito/mockito.dart' as _i1;
|
||||||
import 'package:mockito/src/dummies.dart' as _i7;
|
import 'package:mockito/src/dummies.dart' as _i8;
|
||||||
import 'package:wger/models/exercises/category.dart' as _i13;
|
import 'package:wger/models/exercises/category.dart' as _i13;
|
||||||
import 'package:wger/models/exercises/equipment.dart' as _i9;
|
import 'package:wger/models/exercises/equipment.dart' as _i9;
|
||||||
import 'package:wger/models/exercises/exercise_submission.dart' as _i11;
|
import 'package:wger/models/exercises/exercise_submission.dart' as _i11;
|
||||||
import 'package:wger/models/exercises/exercise_submission_images.dart' as _i8;
|
import 'package:wger/models/exercises/exercise_submission_images.dart' as _i7;
|
||||||
import 'package:wger/models/exercises/language.dart' as _i12;
|
import 'package:wger/models/exercises/language.dart' as _i12;
|
||||||
import 'package:wger/models/exercises/muscle.dart' as _i10;
|
import 'package:wger/models/exercises/muscle.dart' as _i10;
|
||||||
import 'package:wger/models/exercises/variation.dart' as _i3;
|
import 'package:wger/models/exercises/variation.dart' as _i3;
|
||||||
@@ -33,6 +33,7 @@ import 'package:wger/providers/base_provider.dart' as _i2;
|
|||||||
// ignore_for_file: unnecessary_parenthesis
|
// ignore_for_file: unnecessary_parenthesis
|
||||||
// ignore_for_file: camel_case_types
|
// ignore_for_file: camel_case_types
|
||||||
// ignore_for_file: subtype_of_sealed_class
|
// ignore_for_file: subtype_of_sealed_class
|
||||||
|
// ignore_for_file: invalid_use_of_internal_member
|
||||||
|
|
||||||
class _FakeWgerBaseProvider_0 extends _i1.SmartFake implements _i2.WgerBaseProvider {
|
class _FakeWgerBaseProvider_0 extends _i1.SmartFake implements _i2.WgerBaseProvider {
|
||||||
_FakeWgerBaseProvider_0(Object parent, Invocation parentInvocation)
|
_FakeWgerBaseProvider_0(Object parent, Invocation parentInvocation)
|
||||||
@@ -78,11 +79,19 @@ class MockAddExerciseProvider extends _i1.Mock implements _i6.AddExerciseProvide
|
|||||||
)
|
)
|
||||||
as _i2.WgerBaseProvider);
|
as _i2.WgerBaseProvider);
|
||||||
|
|
||||||
|
@override
|
||||||
|
List<_i7.ExerciseSubmissionImage> get exerciseImages =>
|
||||||
|
(super.noSuchMethod(
|
||||||
|
Invocation.getter(#exerciseImages),
|
||||||
|
returnValue: <_i7.ExerciseSubmissionImage>[],
|
||||||
|
)
|
||||||
|
as List<_i7.ExerciseSubmissionImage>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get author =>
|
String get author =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.getter(#author),
|
Invocation.getter(#author),
|
||||||
returnValue: _i7.dummyValue<String>(
|
returnValue: _i8.dummyValue<String>(
|
||||||
this,
|
this,
|
||||||
Invocation.getter(#author),
|
Invocation.getter(#author),
|
||||||
),
|
),
|
||||||
@@ -105,14 +114,6 @@ class MockAddExerciseProvider extends _i1.Mock implements _i6.AddExerciseProvide
|
|||||||
)
|
)
|
||||||
as List<String>);
|
as List<String>);
|
||||||
|
|
||||||
@override
|
|
||||||
List<_i8.ExerciseSubmissionImage> get exerciseImages =>
|
|
||||||
(super.noSuchMethod(
|
|
||||||
Invocation.getter(#exerciseImages),
|
|
||||||
returnValue: <_i8.ExerciseSubmissionImage>[],
|
|
||||||
)
|
|
||||||
as List<_i8.ExerciseSubmissionImage>);
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
List<_i9.Equipment> get equipment =>
|
List<_i9.Equipment> get equipment =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
@@ -153,7 +154,7 @@ class MockAddExerciseProvider extends _i1.Mock implements _i6.AddExerciseProvide
|
|||||||
_i11.ExerciseSubmissionApi get exerciseApiObject =>
|
_i11.ExerciseSubmissionApi get exerciseApiObject =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.getter(#exerciseApiObject),
|
Invocation.getter(#exerciseApiObject),
|
||||||
returnValue: _i7.dummyValue<_i11.ExerciseSubmissionApi>(
|
returnValue: _i8.dummyValue<_i11.ExerciseSubmissionApi>(
|
||||||
this,
|
this,
|
||||||
Invocation.getter(#exerciseApiObject),
|
Invocation.getter(#exerciseApiObject),
|
||||||
),
|
),
|
||||||
@@ -161,62 +162,62 @@ class MockAddExerciseProvider extends _i1.Mock implements _i6.AddExerciseProvide
|
|||||||
as _i11.ExerciseSubmissionApi);
|
as _i11.ExerciseSubmissionApi);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set author(String? _author) => super.noSuchMethod(
|
set author(String? value) => super.noSuchMethod(
|
||||||
Invocation.setter(#author, _author),
|
Invocation.setter(#author, value),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set exerciseNameEn(String? _exerciseNameEn) => super.noSuchMethod(
|
set exerciseNameEn(String? value) => super.noSuchMethod(
|
||||||
Invocation.setter(#exerciseNameEn, _exerciseNameEn),
|
Invocation.setter(#exerciseNameEn, value),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set exerciseNameTrans(String? _exerciseNameTrans) => super.noSuchMethod(
|
set exerciseNameTrans(String? value) => super.noSuchMethod(
|
||||||
Invocation.setter(#exerciseNameTrans, _exerciseNameTrans),
|
Invocation.setter(#exerciseNameTrans, value),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set descriptionEn(String? _descriptionEn) => super.noSuchMethod(
|
set descriptionEn(String? value) => super.noSuchMethod(
|
||||||
Invocation.setter(#descriptionEn, _descriptionEn),
|
Invocation.setter(#descriptionEn, value),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set descriptionTrans(String? _descriptionTrans) => super.noSuchMethod(
|
set descriptionTrans(String? value) => super.noSuchMethod(
|
||||||
Invocation.setter(#descriptionTrans, _descriptionTrans),
|
Invocation.setter(#descriptionTrans, value),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set languageEn(_i12.Language? _languageEn) => super.noSuchMethod(
|
set languageEn(_i12.Language? value) => super.noSuchMethod(
|
||||||
Invocation.setter(#languageEn, _languageEn),
|
Invocation.setter(#languageEn, value),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set languageTranslation(_i12.Language? _languageTranslation) => super.noSuchMethod(
|
set languageTranslation(_i12.Language? value) => super.noSuchMethod(
|
||||||
Invocation.setter(#languageTranslation, _languageTranslation),
|
Invocation.setter(#languageTranslation, value),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set alternateNamesEn(List<String>? _alternateNamesEn) => super.noSuchMethod(
|
set alternateNamesEn(List<String>? value) => super.noSuchMethod(
|
||||||
Invocation.setter(#alternateNamesEn, _alternateNamesEn),
|
Invocation.setter(#alternateNamesEn, value),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set alternateNamesTrans(List<String>? _alternateNamesTrans) => super.noSuchMethod(
|
set alternateNamesTrans(List<String>? value) => super.noSuchMethod(
|
||||||
Invocation.setter(#alternateNamesTrans, _alternateNamesTrans),
|
Invocation.setter(#alternateNamesTrans, value),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set category(_i13.ExerciseCategory? _category) => super.noSuchMethod(
|
set category(_i13.ExerciseCategory? value) => super.noSuchMethod(
|
||||||
Invocation.setter(#category, _category),
|
Invocation.setter(#category, value),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -261,7 +262,7 @@ class MockAddExerciseProvider extends _i1.Mock implements _i6.AddExerciseProvide
|
|||||||
);
|
);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void addExerciseImages(List<_i8.ExerciseSubmissionImage>? images) => super.noSuchMethod(
|
void addExerciseImages(List<_i7.ExerciseSubmissionImage>? images) => super.noSuchMethod(
|
||||||
Invocation.method(#addExerciseImages, [images]),
|
Invocation.method(#addExerciseImages, [images]),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
@@ -355,14 +356,14 @@ class MockWgerBaseProvider extends _i1.Mock implements _i2.WgerBaseProvider {
|
|||||||
as _i5.Client);
|
as _i5.Client);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set auth(_i4.AuthProvider? _auth) => super.noSuchMethod(
|
set auth(_i4.AuthProvider? value) => super.noSuchMethod(
|
||||||
Invocation.setter(#auth, _auth),
|
Invocation.setter(#auth, value),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set client(_i5.Client? _client) => super.noSuchMethod(
|
set client(_i5.Client? value) => super.noSuchMethod(
|
||||||
Invocation.setter(#client, _client),
|
Invocation.setter(#client, value),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -95,19 +95,6 @@ void main() {
|
|||||||
when(mockUserProvider.profile).thenReturn(tProfile1);
|
when(mockUserProvider.profile).thenReturn(tProfile1);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Act
|
|
||||||
await tester.pumpWidget(createExerciseScreen());
|
|
||||||
|
|
||||||
/// Sets up exercise provider data (categories, muscles, equipment, languages).
|
|
||||||
void setupExerciseProviderData() {
|
|
||||||
when(mockExerciseProvider.categories).thenReturn(testCategories);
|
|
||||||
when(mockExerciseProvider.muscles).thenReturn(testMuscles);
|
|
||||||
when(mockExerciseProvider.equipment).thenReturn(testEquipment);
|
|
||||||
when(mockExerciseProvider.exerciseByVariation).thenReturn({});
|
|
||||||
when(mockExerciseProvider.exercises).thenReturn(getTestExercises());
|
|
||||||
when(mockExerciseProvider.languages).thenReturn(testLanguages);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Sets up AddExerciseProvider default values.
|
/// Sets up AddExerciseProvider default values.
|
||||||
///
|
///
|
||||||
/// Note: All 6 steps are rendered immediately by the Stepper widget,
|
/// Note: All 6 steps are rendered immediately by the Stepper widget,
|
||||||
@@ -143,7 +130,6 @@ void main() {
|
|||||||
/// - All properties required by the 6-step stepper form
|
/// - All properties required by the 6-step stepper form
|
||||||
void setupFullVerifiedUserContext() {
|
void setupFullVerifiedUserContext() {
|
||||||
setupVerifiedUser();
|
setupVerifiedUser();
|
||||||
setupExerciseProviderData();
|
|
||||||
setupAddExerciseProviderDefaults();
|
setupAddExerciseProviderDefaults();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -384,7 +370,7 @@ void main() {
|
|||||||
await tester.pumpAndSettle();
|
await tester.pumpAndSettle();
|
||||||
|
|
||||||
// Verify that categories were loaded from provider
|
// Verify that categories were loaded from provider
|
||||||
verify(mockExerciseProvider.categories).called(greaterThan(0));
|
// verify(mockExerciseProvider.categories).called(greaterThan(0));
|
||||||
});
|
});
|
||||||
|
|
||||||
testWidgets('Selecting muscles updates provider state', (WidgetTester tester) async {
|
testWidgets('Selecting muscles updates provider state', (WidgetTester tester) async {
|
||||||
@@ -396,7 +382,7 @@ void main() {
|
|||||||
await tester.pumpAndSettle();
|
await tester.pumpAndSettle();
|
||||||
|
|
||||||
// Verify that muscle data was loaded from providers
|
// Verify that muscle data was loaded from providers
|
||||||
verify(mockExerciseProvider.muscles).called(greaterThan(0));
|
// verify(mockExerciseProvider.muscles).called(greaterThan(0));
|
||||||
verify(mockAddExerciseProvider.primaryMuscles).called(greaterThan(0));
|
verify(mockAddExerciseProvider.primaryMuscles).called(greaterThan(0));
|
||||||
verify(mockAddExerciseProvider.secondaryMuscles).called(greaterThan(0));
|
verify(mockAddExerciseProvider.secondaryMuscles).called(greaterThan(0));
|
||||||
});
|
});
|
||||||
@@ -410,7 +396,7 @@ void main() {
|
|||||||
await tester.pumpAndSettle();
|
await tester.pumpAndSettle();
|
||||||
|
|
||||||
// Verify that equipment data was loaded from providers
|
// Verify that equipment data was loaded from providers
|
||||||
verify(mockExerciseProvider.equipment).called(greaterThan(0));
|
// verify(mockExerciseProvider.equipment).called(greaterThan(0));
|
||||||
verify(mockAddExerciseProvider.equipment).called(greaterThan(0));
|
verify(mockAddExerciseProvider.equipment).called(greaterThan(0));
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@@ -428,7 +414,7 @@ void main() {
|
|||||||
setupFullVerifiedUserContext();
|
setupFullVerifiedUserContext();
|
||||||
when(mockAddExerciseProvider.postExerciseToServer()).thenAnswer((_) async => 1);
|
when(mockAddExerciseProvider.postExerciseToServer()).thenAnswer((_) async => 1);
|
||||||
when(mockAddExerciseProvider.addImages(any)).thenAnswer((_) async => {});
|
when(mockAddExerciseProvider.addImages(any)).thenAnswer((_) async => {});
|
||||||
when(mockExerciseProvider.fetchAndSetExercise(any)).thenAnswer((_) async => testBenchPress);
|
// when(mockExerciseProvider.fetchAndSetExercise(any)).thenAnswer((_) async => testBenchPress);
|
||||||
when(mockAddExerciseProvider.clear()).thenReturn(null);
|
when(mockAddExerciseProvider.clear()).thenReturn(null);
|
||||||
|
|
||||||
// Build the exercise contribution screen
|
// Build the exercise contribution screen
|
||||||
@@ -464,7 +450,7 @@ void main() {
|
|||||||
setupFullVerifiedUserContext();
|
setupFullVerifiedUserContext();
|
||||||
when(mockAddExerciseProvider.postExerciseToServer()).thenAnswer((_) async => 1);
|
when(mockAddExerciseProvider.postExerciseToServer()).thenAnswer((_) async => 1);
|
||||||
when(mockAddExerciseProvider.addImages(any)).thenAnswer((_) async => {});
|
when(mockAddExerciseProvider.addImages(any)).thenAnswer((_) async => {});
|
||||||
when(mockExerciseProvider.fetchAndSetExercise(any)).thenAnswer((_) async => testBenchPress);
|
// when(mockExerciseProvider.fetchAndSetExercise(any)).thenAnswer((_) async => testBenchPress);
|
||||||
when(mockAddExerciseProvider.clear()).thenReturn(null);
|
when(mockAddExerciseProvider.clear()).thenReturn(null);
|
||||||
|
|
||||||
// Build the exercise contribution screen
|
// Build the exercise contribution screen
|
||||||
|
|||||||
@@ -8,12 +8,12 @@ import 'dart:ui' as _i14;
|
|||||||
|
|
||||||
import 'package:flutter/material.dart' as _i16;
|
import 'package:flutter/material.dart' as _i16;
|
||||||
import 'package:mockito/mockito.dart' as _i1;
|
import 'package:mockito/mockito.dart' as _i1;
|
||||||
import 'package:mockito/src/dummies.dart' as _i6;
|
import 'package:mockito/src/dummies.dart' as _i7;
|
||||||
import 'package:shared_preferences/shared_preferences.dart' as _i4;
|
import 'package:shared_preferences/shared_preferences.dart' as _i4;
|
||||||
import 'package:wger/models/exercises/category.dart' as _i12;
|
import 'package:wger/models/exercises/category.dart' as _i12;
|
||||||
import 'package:wger/models/exercises/equipment.dart' as _i8;
|
import 'package:wger/models/exercises/equipment.dart' as _i8;
|
||||||
import 'package:wger/models/exercises/exercise_submission.dart' as _i10;
|
import 'package:wger/models/exercises/exercise_submission.dart' as _i10;
|
||||||
import 'package:wger/models/exercises/exercise_submission_images.dart' as _i7;
|
import 'package:wger/models/exercises/exercise_submission_images.dart' as _i6;
|
||||||
import 'package:wger/models/exercises/language.dart' as _i11;
|
import 'package:wger/models/exercises/language.dart' as _i11;
|
||||||
import 'package:wger/models/exercises/muscle.dart' as _i9;
|
import 'package:wger/models/exercises/muscle.dart' as _i9;
|
||||||
import 'package:wger/models/exercises/variation.dart' as _i3;
|
import 'package:wger/models/exercises/variation.dart' as _i3;
|
||||||
@@ -35,6 +35,7 @@ import 'package:wger/providers/user.dart' as _i15;
|
|||||||
// ignore_for_file: unnecessary_parenthesis
|
// ignore_for_file: unnecessary_parenthesis
|
||||||
// ignore_for_file: camel_case_types
|
// ignore_for_file: camel_case_types
|
||||||
// ignore_for_file: subtype_of_sealed_class
|
// ignore_for_file: subtype_of_sealed_class
|
||||||
|
// ignore_for_file: invalid_use_of_internal_member
|
||||||
|
|
||||||
class _FakeWgerBaseProvider_0 extends _i1.SmartFake implements _i2.WgerBaseProvider {
|
class _FakeWgerBaseProvider_0 extends _i1.SmartFake implements _i2.WgerBaseProvider {
|
||||||
_FakeWgerBaseProvider_0(Object parent, Invocation parentInvocation)
|
_FakeWgerBaseProvider_0(Object parent, Invocation parentInvocation)
|
||||||
@@ -69,11 +70,19 @@ class MockAddExerciseProvider extends _i1.Mock implements _i5.AddExerciseProvide
|
|||||||
)
|
)
|
||||||
as _i2.WgerBaseProvider);
|
as _i2.WgerBaseProvider);
|
||||||
|
|
||||||
|
@override
|
||||||
|
List<_i6.ExerciseSubmissionImage> get exerciseImages =>
|
||||||
|
(super.noSuchMethod(
|
||||||
|
Invocation.getter(#exerciseImages),
|
||||||
|
returnValue: <_i6.ExerciseSubmissionImage>[],
|
||||||
|
)
|
||||||
|
as List<_i6.ExerciseSubmissionImage>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get author =>
|
String get author =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.getter(#author),
|
Invocation.getter(#author),
|
||||||
returnValue: _i6.dummyValue<String>(
|
returnValue: _i7.dummyValue<String>(
|
||||||
this,
|
this,
|
||||||
Invocation.getter(#author),
|
Invocation.getter(#author),
|
||||||
),
|
),
|
||||||
@@ -96,14 +105,6 @@ class MockAddExerciseProvider extends _i1.Mock implements _i5.AddExerciseProvide
|
|||||||
)
|
)
|
||||||
as List<String>);
|
as List<String>);
|
||||||
|
|
||||||
@override
|
|
||||||
List<_i7.ExerciseSubmissionImage> get exerciseImages =>
|
|
||||||
(super.noSuchMethod(
|
|
||||||
Invocation.getter(#exerciseImages),
|
|
||||||
returnValue: <_i7.ExerciseSubmissionImage>[],
|
|
||||||
)
|
|
||||||
as List<_i7.ExerciseSubmissionImage>);
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
List<_i8.Equipment> get equipment =>
|
List<_i8.Equipment> get equipment =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
@@ -144,7 +145,7 @@ class MockAddExerciseProvider extends _i1.Mock implements _i5.AddExerciseProvide
|
|||||||
_i10.ExerciseSubmissionApi get exerciseApiObject =>
|
_i10.ExerciseSubmissionApi get exerciseApiObject =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.getter(#exerciseApiObject),
|
Invocation.getter(#exerciseApiObject),
|
||||||
returnValue: _i6.dummyValue<_i10.ExerciseSubmissionApi>(
|
returnValue: _i7.dummyValue<_i10.ExerciseSubmissionApi>(
|
||||||
this,
|
this,
|
||||||
Invocation.getter(#exerciseApiObject),
|
Invocation.getter(#exerciseApiObject),
|
||||||
),
|
),
|
||||||
@@ -152,62 +153,62 @@ class MockAddExerciseProvider extends _i1.Mock implements _i5.AddExerciseProvide
|
|||||||
as _i10.ExerciseSubmissionApi);
|
as _i10.ExerciseSubmissionApi);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set author(String? _author) => super.noSuchMethod(
|
set author(String? value) => super.noSuchMethod(
|
||||||
Invocation.setter(#author, _author),
|
Invocation.setter(#author, value),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set exerciseNameEn(String? _exerciseNameEn) => super.noSuchMethod(
|
set exerciseNameEn(String? value) => super.noSuchMethod(
|
||||||
Invocation.setter(#exerciseNameEn, _exerciseNameEn),
|
Invocation.setter(#exerciseNameEn, value),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set exerciseNameTrans(String? _exerciseNameTrans) => super.noSuchMethod(
|
set exerciseNameTrans(String? value) => super.noSuchMethod(
|
||||||
Invocation.setter(#exerciseNameTrans, _exerciseNameTrans),
|
Invocation.setter(#exerciseNameTrans, value),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set descriptionEn(String? _descriptionEn) => super.noSuchMethod(
|
set descriptionEn(String? value) => super.noSuchMethod(
|
||||||
Invocation.setter(#descriptionEn, _descriptionEn),
|
Invocation.setter(#descriptionEn, value),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set descriptionTrans(String? _descriptionTrans) => super.noSuchMethod(
|
set descriptionTrans(String? value) => super.noSuchMethod(
|
||||||
Invocation.setter(#descriptionTrans, _descriptionTrans),
|
Invocation.setter(#descriptionTrans, value),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set languageEn(_i11.Language? _languageEn) => super.noSuchMethod(
|
set languageEn(_i11.Language? value) => super.noSuchMethod(
|
||||||
Invocation.setter(#languageEn, _languageEn),
|
Invocation.setter(#languageEn, value),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set languageTranslation(_i11.Language? _languageTranslation) => super.noSuchMethod(
|
set languageTranslation(_i11.Language? value) => super.noSuchMethod(
|
||||||
Invocation.setter(#languageTranslation, _languageTranslation),
|
Invocation.setter(#languageTranslation, value),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set alternateNamesEn(List<String>? _alternateNamesEn) => super.noSuchMethod(
|
set alternateNamesEn(List<String>? value) => super.noSuchMethod(
|
||||||
Invocation.setter(#alternateNamesEn, _alternateNamesEn),
|
Invocation.setter(#alternateNamesEn, value),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set alternateNamesTrans(List<String>? _alternateNamesTrans) => super.noSuchMethod(
|
set alternateNamesTrans(List<String>? value) => super.noSuchMethod(
|
||||||
Invocation.setter(#alternateNamesTrans, _alternateNamesTrans),
|
Invocation.setter(#alternateNamesTrans, value),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set category(_i12.ExerciseCategory? _category) => super.noSuchMethod(
|
set category(_i12.ExerciseCategory? value) => super.noSuchMethod(
|
||||||
Invocation.setter(#category, _category),
|
Invocation.setter(#category, value),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -252,7 +253,7 @@ class MockAddExerciseProvider extends _i1.Mock implements _i5.AddExerciseProvide
|
|||||||
);
|
);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void addExerciseImages(List<_i7.ExerciseSubmissionImage>? images) => super.noSuchMethod(
|
void addExerciseImages(List<_i6.ExerciseSubmissionImage>? images) => super.noSuchMethod(
|
||||||
Invocation.method(#addExerciseImages, [images]),
|
Invocation.method(#addExerciseImages, [images]),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
@@ -360,20 +361,20 @@ class MockUserProvider extends _i1.Mock implements _i15.UserProvider {
|
|||||||
as _i4.SharedPreferencesAsync);
|
as _i4.SharedPreferencesAsync);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set themeMode(_i16.ThemeMode? _themeMode) => super.noSuchMethod(
|
set themeMode(_i16.ThemeMode? value) => super.noSuchMethod(
|
||||||
Invocation.setter(#themeMode, _themeMode),
|
Invocation.setter(#themeMode, value),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set prefs(_i4.SharedPreferencesAsync? _prefs) => super.noSuchMethod(
|
set prefs(_i4.SharedPreferencesAsync? value) => super.noSuchMethod(
|
||||||
Invocation.setter(#prefs, _prefs),
|
Invocation.setter(#prefs, value),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set profile(_i17.Profile? _profile) => super.noSuchMethod(
|
set profile(_i17.Profile? value) => super.noSuchMethod(
|
||||||
Invocation.setter(#profile, _profile),
|
Invocation.setter(#profile, value),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ import 'package:wger/providers/gallery.dart' as _i4;
|
|||||||
// ignore_for_file: unnecessary_parenthesis
|
// ignore_for_file: unnecessary_parenthesis
|
||||||
// ignore_for_file: camel_case_types
|
// ignore_for_file: camel_case_types
|
||||||
// ignore_for_file: subtype_of_sealed_class
|
// ignore_for_file: subtype_of_sealed_class
|
||||||
|
// ignore_for_file: invalid_use_of_internal_member
|
||||||
|
|
||||||
class _FakeAuthProvider_0 extends _i1.SmartFake implements _i2.AuthProvider {
|
class _FakeAuthProvider_0 extends _i1.SmartFake implements _i2.AuthProvider {
|
||||||
_FakeAuthProvider_0(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
_FakeAuthProvider_0(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||||
@@ -60,8 +61,8 @@ class MockGalleryProvider extends _i1.Mock implements _i4.GalleryProvider {
|
|||||||
as List<_i5.Image>);
|
as List<_i5.Image>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set images(List<_i5.Image>? _images) => super.noSuchMethod(
|
set images(List<_i5.Image>? value) => super.noSuchMethod(
|
||||||
Invocation.setter(#images, _images),
|
Invocation.setter(#images, value),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -82,14 +83,14 @@ class MockGalleryProvider extends _i1.Mock implements _i4.GalleryProvider {
|
|||||||
as _i3.Client);
|
as _i3.Client);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set auth(_i2.AuthProvider? _auth) => super.noSuchMethod(
|
set auth(_i2.AuthProvider? value) => super.noSuchMethod(
|
||||||
Invocation.setter(#auth, _auth),
|
Invocation.setter(#auth, value),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set client(_i3.Client? _client) => super.noSuchMethod(
|
set client(_i3.Client? value) => super.noSuchMethod(
|
||||||
Invocation.setter(#client, _client),
|
Invocation.setter(#client, value),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ import 'package:wger/providers/gallery.dart' as _i4;
|
|||||||
// ignore_for_file: unnecessary_parenthesis
|
// ignore_for_file: unnecessary_parenthesis
|
||||||
// ignore_for_file: camel_case_types
|
// ignore_for_file: camel_case_types
|
||||||
// ignore_for_file: subtype_of_sealed_class
|
// ignore_for_file: subtype_of_sealed_class
|
||||||
|
// ignore_for_file: invalid_use_of_internal_member
|
||||||
|
|
||||||
class _FakeAuthProvider_0 extends _i1.SmartFake implements _i2.AuthProvider {
|
class _FakeAuthProvider_0 extends _i1.SmartFake implements _i2.AuthProvider {
|
||||||
_FakeAuthProvider_0(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
_FakeAuthProvider_0(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||||
@@ -60,8 +61,8 @@ class MockGalleryProvider extends _i1.Mock implements _i4.GalleryProvider {
|
|||||||
as List<_i5.Image>);
|
as List<_i5.Image>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set images(List<_i5.Image>? _images) => super.noSuchMethod(
|
set images(List<_i5.Image>? value) => super.noSuchMethod(
|
||||||
Invocation.setter(#images, _images),
|
Invocation.setter(#images, value),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -82,14 +83,14 @@ class MockGalleryProvider extends _i1.Mock implements _i4.GalleryProvider {
|
|||||||
as _i3.Client);
|
as _i3.Client);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set auth(_i2.AuthProvider? _auth) => super.noSuchMethod(
|
set auth(_i2.AuthProvider? value) => super.noSuchMethod(
|
||||||
Invocation.setter(#auth, _auth),
|
Invocation.setter(#auth, value),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set client(_i3.Client? _client) => super.noSuchMethod(
|
set client(_i3.Client? value) => super.noSuchMethod(
|
||||||
Invocation.setter(#client, _client),
|
Invocation.setter(#client, value),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ import 'package:wger/providers/measurement.dart' as _i4;
|
|||||||
// ignore_for_file: unnecessary_parenthesis
|
// ignore_for_file: unnecessary_parenthesis
|
||||||
// ignore_for_file: camel_case_types
|
// ignore_for_file: camel_case_types
|
||||||
// ignore_for_file: subtype_of_sealed_class
|
// ignore_for_file: subtype_of_sealed_class
|
||||||
|
// ignore_for_file: invalid_use_of_internal_member
|
||||||
|
|
||||||
class _FakeWgerBaseProvider_0 extends _i1.SmartFake implements _i2.WgerBaseProvider {
|
class _FakeWgerBaseProvider_0 extends _i1.SmartFake implements _i2.WgerBaseProvider {
|
||||||
_FakeWgerBaseProvider_0(Object parent, Invocation parentInvocation)
|
_FakeWgerBaseProvider_0(Object parent, Invocation parentInvocation)
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ import 'package:wger/providers/base_provider.dart' as _i4;
|
|||||||
// ignore_for_file: unnecessary_parenthesis
|
// ignore_for_file: unnecessary_parenthesis
|
||||||
// ignore_for_file: camel_case_types
|
// ignore_for_file: camel_case_types
|
||||||
// ignore_for_file: subtype_of_sealed_class
|
// ignore_for_file: subtype_of_sealed_class
|
||||||
|
// ignore_for_file: invalid_use_of_internal_member
|
||||||
|
|
||||||
class _FakeAuthProvider_0 extends _i1.SmartFake implements _i2.AuthProvider {
|
class _FakeAuthProvider_0 extends _i1.SmartFake implements _i2.AuthProvider {
|
||||||
_FakeAuthProvider_0(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
_FakeAuthProvider_0(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||||
@@ -65,14 +66,14 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider {
|
|||||||
as _i3.Client);
|
as _i3.Client);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set auth(_i2.AuthProvider? _auth) => super.noSuchMethod(
|
set auth(_i2.AuthProvider? value) => super.noSuchMethod(
|
||||||
Invocation.setter(#auth, _auth),
|
Invocation.setter(#auth, value),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set client(_i3.Client? _client) => super.noSuchMethod(
|
set client(_i3.Client? value) => super.noSuchMethod(
|
||||||
Invocation.setter(#client, _client),
|
Invocation.setter(#client, value),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ import 'package:wger/providers/nutrition.dart' as _i8;
|
|||||||
// ignore_for_file: unnecessary_parenthesis
|
// ignore_for_file: unnecessary_parenthesis
|
||||||
// ignore_for_file: camel_case_types
|
// ignore_for_file: camel_case_types
|
||||||
// ignore_for_file: subtype_of_sealed_class
|
// ignore_for_file: subtype_of_sealed_class
|
||||||
|
// ignore_for_file: invalid_use_of_internal_member
|
||||||
|
|
||||||
class _FakeWgerBaseProvider_0 extends _i1.SmartFake implements _i2.WgerBaseProvider {
|
class _FakeWgerBaseProvider_0 extends _i1.SmartFake implements _i2.WgerBaseProvider {
|
||||||
_FakeWgerBaseProvider_0(Object parent, Invocation parentInvocation)
|
_FakeWgerBaseProvider_0(Object parent, Invocation parentInvocation)
|
||||||
@@ -103,14 +104,14 @@ class MockNutritionPlansProvider extends _i1.Mock implements _i8.NutritionPlansP
|
|||||||
as List<_i4.NutritionalPlan>);
|
as List<_i4.NutritionalPlan>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set database(_i3.IngredientDatabase? _database) => super.noSuchMethod(
|
set database(_i3.IngredientDatabase? value) => super.noSuchMethod(
|
||||||
Invocation.setter(#database, _database),
|
Invocation.setter(#database, value),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set ingredients(List<_i7.Ingredient>? _ingredients) => super.noSuchMethod(
|
set ingredients(List<_i7.Ingredient>? value) => super.noSuchMethod(
|
||||||
Invocation.setter(#ingredients, _ingredients),
|
Invocation.setter(#ingredients, value),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -277,6 +278,22 @@ class MockNutritionPlansProvider extends _i1.Mock implements _i8.NutritionPlansP
|
|||||||
)
|
)
|
||||||
as _i9.Future<void>);
|
as _i9.Future<void>);
|
||||||
|
|
||||||
|
@override
|
||||||
|
_i9.Future<void> cacheIngredient(
|
||||||
|
_i7.Ingredient? ingredient, {
|
||||||
|
_i3.IngredientDatabase? database,
|
||||||
|
}) =>
|
||||||
|
(super.noSuchMethod(
|
||||||
|
Invocation.method(
|
||||||
|
#cacheIngredient,
|
||||||
|
[ingredient],
|
||||||
|
{#database: database},
|
||||||
|
),
|
||||||
|
returnValue: _i9.Future<void>.value(),
|
||||||
|
returnValueForMissingStub: _i9.Future<void>.value(),
|
||||||
|
)
|
||||||
|
as _i9.Future<void>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i9.Future<_i7.Ingredient> fetchIngredient(
|
_i9.Future<_i7.Ingredient> fetchIngredient(
|
||||||
int? ingredientId, {
|
int? ingredientId, {
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ import 'package:wger/providers/nutrition.dart' as _i8;
|
|||||||
// ignore_for_file: unnecessary_parenthesis
|
// ignore_for_file: unnecessary_parenthesis
|
||||||
// ignore_for_file: camel_case_types
|
// ignore_for_file: camel_case_types
|
||||||
// ignore_for_file: subtype_of_sealed_class
|
// ignore_for_file: subtype_of_sealed_class
|
||||||
|
// ignore_for_file: invalid_use_of_internal_member
|
||||||
|
|
||||||
class _FakeWgerBaseProvider_0 extends _i1.SmartFake implements _i2.WgerBaseProvider {
|
class _FakeWgerBaseProvider_0 extends _i1.SmartFake implements _i2.WgerBaseProvider {
|
||||||
_FakeWgerBaseProvider_0(Object parent, Invocation parentInvocation)
|
_FakeWgerBaseProvider_0(Object parent, Invocation parentInvocation)
|
||||||
@@ -103,14 +104,14 @@ class MockNutritionPlansProvider extends _i1.Mock implements _i8.NutritionPlansP
|
|||||||
as List<_i4.NutritionalPlan>);
|
as List<_i4.NutritionalPlan>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set database(_i3.IngredientDatabase? _database) => super.noSuchMethod(
|
set database(_i3.IngredientDatabase? value) => super.noSuchMethod(
|
||||||
Invocation.setter(#database, _database),
|
Invocation.setter(#database, value),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set ingredients(List<_i7.Ingredient>? _ingredients) => super.noSuchMethod(
|
set ingredients(List<_i7.Ingredient>? value) => super.noSuchMethod(
|
||||||
Invocation.setter(#ingredients, _ingredients),
|
Invocation.setter(#ingredients, value),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -277,6 +278,22 @@ class MockNutritionPlansProvider extends _i1.Mock implements _i8.NutritionPlansP
|
|||||||
)
|
)
|
||||||
as _i9.Future<void>);
|
as _i9.Future<void>);
|
||||||
|
|
||||||
|
@override
|
||||||
|
_i9.Future<void> cacheIngredient(
|
||||||
|
_i7.Ingredient? ingredient, {
|
||||||
|
_i3.IngredientDatabase? database,
|
||||||
|
}) =>
|
||||||
|
(super.noSuchMethod(
|
||||||
|
Invocation.method(
|
||||||
|
#cacheIngredient,
|
||||||
|
[ingredient],
|
||||||
|
{#database: database},
|
||||||
|
),
|
||||||
|
returnValue: _i9.Future<void>.value(),
|
||||||
|
returnValueForMissingStub: _i9.Future<void>.value(),
|
||||||
|
)
|
||||||
|
as _i9.Future<void>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i9.Future<_i7.Ingredient> fetchIngredient(
|
_i9.Future<_i7.Ingredient> fetchIngredient(
|
||||||
int? ingredientId, {
|
int? ingredientId, {
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ import 'package:wger/providers/body_weight_repository.dart' as _i11;
|
|||||||
// ignore_for_file: unnecessary_parenthesis
|
// ignore_for_file: unnecessary_parenthesis
|
||||||
// ignore_for_file: camel_case_types
|
// ignore_for_file: camel_case_types
|
||||||
// ignore_for_file: subtype_of_sealed_class
|
// ignore_for_file: subtype_of_sealed_class
|
||||||
|
// ignore_for_file: invalid_use_of_internal_member
|
||||||
|
|
||||||
class _FakeAuthProvider_0 extends _i1.SmartFake implements _i2.AuthProvider {
|
class _FakeAuthProvider_0 extends _i1.SmartFake implements _i2.AuthProvider {
|
||||||
_FakeAuthProvider_0(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
_FakeAuthProvider_0(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||||
@@ -77,14 +78,14 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider {
|
|||||||
as _i3.Client);
|
as _i3.Client);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set auth(_i2.AuthProvider? _auth) => super.noSuchMethod(
|
set auth(_i2.AuthProvider? value) => super.noSuchMethod(
|
||||||
Invocation.setter(#auth, _auth),
|
Invocation.setter(#auth, value),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set client(_i3.Client? _client) => super.noSuchMethod(
|
set client(_i3.Client? value) => super.noSuchMethod(
|
||||||
Invocation.setter(#client, _client),
|
Invocation.setter(#client, value),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -215,50 +216,50 @@ class MockAuthProvider extends _i1.Mock implements _i2.AuthProvider {
|
|||||||
bool get isAuth => (super.noSuchMethod(Invocation.getter(#isAuth), returnValue: false) as bool);
|
bool get isAuth => (super.noSuchMethod(Invocation.getter(#isAuth), returnValue: false) as bool);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set token(String? _token) => super.noSuchMethod(
|
set token(String? value) => super.noSuchMethod(
|
||||||
Invocation.setter(#token, _token),
|
Invocation.setter(#token, value),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set serverUrl(String? _serverUrl) => super.noSuchMethod(
|
set serverUrl(String? value) => super.noSuchMethod(
|
||||||
Invocation.setter(#serverUrl, _serverUrl),
|
Invocation.setter(#serverUrl, value),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set serverVersion(String? _serverVersion) => super.noSuchMethod(
|
set serverVersion(String? value) => super.noSuchMethod(
|
||||||
Invocation.setter(#serverVersion, _serverVersion),
|
Invocation.setter(#serverVersion, value),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set applicationVersion(_i6.PackageInfo? _applicationVersion) => super.noSuchMethod(
|
set applicationVersion(_i6.PackageInfo? value) => super.noSuchMethod(
|
||||||
Invocation.setter(#applicationVersion, _applicationVersion),
|
Invocation.setter(#applicationVersion, value),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set metadata(Map<String, String>? _metadata) => super.noSuchMethod(
|
set metadata(Map<String, String>? value) => super.noSuchMethod(
|
||||||
Invocation.setter(#metadata, _metadata),
|
Invocation.setter(#metadata, value),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set state(_i2.AuthState? _state) => super.noSuchMethod(
|
set state(_i2.AuthState? value) => super.noSuchMethod(
|
||||||
Invocation.setter(#state, _state),
|
Invocation.setter(#state, value),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set client(_i3.Client? _client) => super.noSuchMethod(
|
set client(_i3.Client? value) => super.noSuchMethod(
|
||||||
Invocation.setter(#client, _client),
|
Invocation.setter(#client, value),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set dataInit(bool? _dataInit) => super.noSuchMethod(
|
set dataInit(bool? value) => super.noSuchMethod(
|
||||||
Invocation.setter(#dataInit, _dataInit),
|
Invocation.setter(#dataInit, value),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ import 'package:wger/providers/body_weight_repository.dart' as _i11;
|
|||||||
// ignore_for_file: unnecessary_parenthesis
|
// ignore_for_file: unnecessary_parenthesis
|
||||||
// ignore_for_file: camel_case_types
|
// ignore_for_file: camel_case_types
|
||||||
// ignore_for_file: subtype_of_sealed_class
|
// ignore_for_file: subtype_of_sealed_class
|
||||||
|
// ignore_for_file: invalid_use_of_internal_member
|
||||||
|
|
||||||
class _FakeClient_0 extends _i1.SmartFake implements _i2.Client {
|
class _FakeClient_0 extends _i1.SmartFake implements _i2.Client {
|
||||||
_FakeClient_0(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
_FakeClient_0(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||||
@@ -92,50 +93,50 @@ class MockAuthProvider extends _i1.Mock implements _i3.AuthProvider {
|
|||||||
bool get isAuth => (super.noSuchMethod(Invocation.getter(#isAuth), returnValue: false) as bool);
|
bool get isAuth => (super.noSuchMethod(Invocation.getter(#isAuth), returnValue: false) as bool);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set token(String? _token) => super.noSuchMethod(
|
set token(String? value) => super.noSuchMethod(
|
||||||
Invocation.setter(#token, _token),
|
Invocation.setter(#token, value),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set serverUrl(String? _serverUrl) => super.noSuchMethod(
|
set serverUrl(String? value) => super.noSuchMethod(
|
||||||
Invocation.setter(#serverUrl, _serverUrl),
|
Invocation.setter(#serverUrl, value),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set serverVersion(String? _serverVersion) => super.noSuchMethod(
|
set serverVersion(String? value) => super.noSuchMethod(
|
||||||
Invocation.setter(#serverVersion, _serverVersion),
|
Invocation.setter(#serverVersion, value),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set applicationVersion(_i4.PackageInfo? _applicationVersion) => super.noSuchMethod(
|
set applicationVersion(_i4.PackageInfo? value) => super.noSuchMethod(
|
||||||
Invocation.setter(#applicationVersion, _applicationVersion),
|
Invocation.setter(#applicationVersion, value),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set metadata(Map<String, String>? _metadata) => super.noSuchMethod(
|
set metadata(Map<String, String>? value) => super.noSuchMethod(
|
||||||
Invocation.setter(#metadata, _metadata),
|
Invocation.setter(#metadata, value),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set state(_i3.AuthState? _state) => super.noSuchMethod(
|
set state(_i3.AuthState? value) => super.noSuchMethod(
|
||||||
Invocation.setter(#state, _state),
|
Invocation.setter(#state, value),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set client(_i2.Client? _client) => super.noSuchMethod(
|
set client(_i2.Client? value) => super.noSuchMethod(
|
||||||
Invocation.setter(#client, _client),
|
Invocation.setter(#client, value),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set dataInit(bool? _dataInit) => super.noSuchMethod(
|
set dataInit(bool? value) => super.noSuchMethod(
|
||||||
Invocation.setter(#dataInit, _dataInit),
|
Invocation.setter(#dataInit, value),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -312,14 +313,14 @@ class MockWgerBaseProvider extends _i1.Mock implements _i8.WgerBaseProvider {
|
|||||||
as _i2.Client);
|
as _i2.Client);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set auth(_i3.AuthProvider? _auth) => super.noSuchMethod(
|
set auth(_i3.AuthProvider? value) => super.noSuchMethod(
|
||||||
Invocation.setter(#auth, _auth),
|
Invocation.setter(#auth, value),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set client(_i2.Client? _client) => super.noSuchMethod(
|
set client(_i2.Client? value) => super.noSuchMethod(
|
||||||
Invocation.setter(#client, _client),
|
Invocation.setter(#client, value),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ import 'package:mockito/src/dummies.dart' as _i5;
|
|||||||
// ignore_for_file: unnecessary_parenthesis
|
// ignore_for_file: unnecessary_parenthesis
|
||||||
// ignore_for_file: camel_case_types
|
// ignore_for_file: camel_case_types
|
||||||
// ignore_for_file: subtype_of_sealed_class
|
// ignore_for_file: subtype_of_sealed_class
|
||||||
|
// ignore_for_file: invalid_use_of_internal_member
|
||||||
|
|
||||||
class _FakeResponse_0 extends _i1.SmartFake implements _i2.Response {
|
class _FakeResponse_0 extends _i1.SmartFake implements _i2.Response {
|
||||||
_FakeResponse_0(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
_FakeResponse_0(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ import 'package:shared_preferences/src/shared_preferences_async.dart' as _i2;
|
|||||||
// ignore_for_file: unnecessary_parenthesis
|
// ignore_for_file: unnecessary_parenthesis
|
||||||
// ignore_for_file: camel_case_types
|
// ignore_for_file: camel_case_types
|
||||||
// ignore_for_file: subtype_of_sealed_class
|
// ignore_for_file: subtype_of_sealed_class
|
||||||
|
// ignore_for_file: invalid_use_of_internal_member
|
||||||
|
|
||||||
/// A class which mocks [SharedPreferencesAsync].
|
/// A class which mocks [SharedPreferencesAsync].
|
||||||
///
|
///
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ import 'package:wger/providers/routines.dart' as _i7;
|
|||||||
// ignore_for_file: unnecessary_parenthesis
|
// ignore_for_file: unnecessary_parenthesis
|
||||||
// ignore_for_file: camel_case_types
|
// ignore_for_file: camel_case_types
|
||||||
// ignore_for_file: subtype_of_sealed_class
|
// ignore_for_file: subtype_of_sealed_class
|
||||||
|
// ignore_for_file: invalid_use_of_internal_member
|
||||||
|
|
||||||
class _FakeRoutine_0 extends _i1.SmartFake implements _i2.Routine {
|
class _FakeRoutine_0 extends _i1.SmartFake implements _i2.Routine {
|
||||||
_FakeRoutine_0(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
_FakeRoutine_0(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ import 'package:wger/providers/workout_session_repository.dart' as _i2;
|
|||||||
// ignore_for_file: unnecessary_parenthesis
|
// ignore_for_file: unnecessary_parenthesis
|
||||||
// ignore_for_file: camel_case_types
|
// ignore_for_file: camel_case_types
|
||||||
// ignore_for_file: subtype_of_sealed_class
|
// ignore_for_file: subtype_of_sealed_class
|
||||||
|
// ignore_for_file: invalid_use_of_internal_member
|
||||||
|
|
||||||
/// A class which mocks [WorkoutSessionRepository].
|
/// A class which mocks [WorkoutSessionRepository].
|
||||||
///
|
///
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ import 'package:wger/providers/workout_session_repository.dart' as _i2;
|
|||||||
// ignore_for_file: unnecessary_parenthesis
|
// ignore_for_file: unnecessary_parenthesis
|
||||||
// ignore_for_file: camel_case_types
|
// ignore_for_file: camel_case_types
|
||||||
// ignore_for_file: subtype_of_sealed_class
|
// ignore_for_file: subtype_of_sealed_class
|
||||||
|
// ignore_for_file: invalid_use_of_internal_member
|
||||||
|
|
||||||
/// A class which mocks [WorkoutSessionRepository].
|
/// A class which mocks [WorkoutSessionRepository].
|
||||||
///
|
///
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ import 'package:wger/providers/routines.dart' as _i7;
|
|||||||
// ignore_for_file: unnecessary_parenthesis
|
// ignore_for_file: unnecessary_parenthesis
|
||||||
// ignore_for_file: camel_case_types
|
// ignore_for_file: camel_case_types
|
||||||
// ignore_for_file: subtype_of_sealed_class
|
// ignore_for_file: subtype_of_sealed_class
|
||||||
|
// ignore_for_file: invalid_use_of_internal_member
|
||||||
|
|
||||||
class _FakeRoutine_0 extends _i1.SmartFake implements _i2.Routine {
|
class _FakeRoutine_0 extends _i1.SmartFake implements _i2.Routine {
|
||||||
_FakeRoutine_0(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
_FakeRoutine_0(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ import 'package:wger/providers/routines.dart' as _i7;
|
|||||||
// ignore_for_file: unnecessary_parenthesis
|
// ignore_for_file: unnecessary_parenthesis
|
||||||
// ignore_for_file: camel_case_types
|
// ignore_for_file: camel_case_types
|
||||||
// ignore_for_file: subtype_of_sealed_class
|
// ignore_for_file: subtype_of_sealed_class
|
||||||
|
// ignore_for_file: invalid_use_of_internal_member
|
||||||
|
|
||||||
class _FakeRoutine_0 extends _i1.SmartFake implements _i2.Routine {
|
class _FakeRoutine_0 extends _i1.SmartFake implements _i2.Routine {
|
||||||
_FakeRoutine_0(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
_FakeRoutine_0(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ import 'package:wger/providers/workout_log_repository.dart' as _i2;
|
|||||||
// ignore_for_file: unnecessary_parenthesis
|
// ignore_for_file: unnecessary_parenthesis
|
||||||
// ignore_for_file: camel_case_types
|
// ignore_for_file: camel_case_types
|
||||||
// ignore_for_file: subtype_of_sealed_class
|
// ignore_for_file: subtype_of_sealed_class
|
||||||
|
// ignore_for_file: invalid_use_of_internal_member
|
||||||
|
|
||||||
/// A class which mocks [WorkoutLogRepository].
|
/// A class which mocks [WorkoutLogRepository].
|
||||||
///
|
///
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ import 'package:wger/providers/base_provider.dart' as _i4;
|
|||||||
// ignore_for_file: unnecessary_parenthesis
|
// ignore_for_file: unnecessary_parenthesis
|
||||||
// ignore_for_file: camel_case_types
|
// ignore_for_file: camel_case_types
|
||||||
// ignore_for_file: subtype_of_sealed_class
|
// ignore_for_file: subtype_of_sealed_class
|
||||||
|
// ignore_for_file: invalid_use_of_internal_member
|
||||||
|
|
||||||
class _FakeAuthProvider_0 extends _i1.SmartFake implements _i2.AuthProvider {
|
class _FakeAuthProvider_0 extends _i1.SmartFake implements _i2.AuthProvider {
|
||||||
_FakeAuthProvider_0(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
_FakeAuthProvider_0(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||||
@@ -65,14 +66,14 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider {
|
|||||||
as _i3.Client);
|
as _i3.Client);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set auth(_i2.AuthProvider? _auth) => super.noSuchMethod(
|
set auth(_i2.AuthProvider? value) => super.noSuchMethod(
|
||||||
Invocation.setter(#auth, _auth),
|
Invocation.setter(#auth, value),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set client(_i3.Client? _client) => super.noSuchMethod(
|
set client(_i3.Client? value) => super.noSuchMethod(
|
||||||
Invocation.setter(#client, _client),
|
Invocation.setter(#client, value),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ import 'package:wger/providers/routines.dart' as _i7;
|
|||||||
// ignore_for_file: unnecessary_parenthesis
|
// ignore_for_file: unnecessary_parenthesis
|
||||||
// ignore_for_file: camel_case_types
|
// ignore_for_file: camel_case_types
|
||||||
// ignore_for_file: subtype_of_sealed_class
|
// ignore_for_file: subtype_of_sealed_class
|
||||||
|
// ignore_for_file: invalid_use_of_internal_member
|
||||||
|
|
||||||
class _FakeRoutine_0 extends _i1.SmartFake implements _i2.Routine {
|
class _FakeRoutine_0 extends _i1.SmartFake implements _i2.Routine {
|
||||||
_FakeRoutine_0(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
_FakeRoutine_0(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ import 'package:wger/providers/routines.dart' as _i7;
|
|||||||
// ignore_for_file: unnecessary_parenthesis
|
// ignore_for_file: unnecessary_parenthesis
|
||||||
// ignore_for_file: camel_case_types
|
// ignore_for_file: camel_case_types
|
||||||
// ignore_for_file: subtype_of_sealed_class
|
// ignore_for_file: subtype_of_sealed_class
|
||||||
|
// ignore_for_file: invalid_use_of_internal_member
|
||||||
|
|
||||||
class _FakeRoutine_0 extends _i1.SmartFake implements _i2.Routine {
|
class _FakeRoutine_0 extends _i1.SmartFake implements _i2.Routine {
|
||||||
_FakeRoutine_0(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
_FakeRoutine_0(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ import 'package:wger/providers/routines.dart' as _i7;
|
|||||||
// ignore_for_file: unnecessary_parenthesis
|
// ignore_for_file: unnecessary_parenthesis
|
||||||
// ignore_for_file: camel_case_types
|
// ignore_for_file: camel_case_types
|
||||||
// ignore_for_file: subtype_of_sealed_class
|
// ignore_for_file: subtype_of_sealed_class
|
||||||
|
// ignore_for_file: invalid_use_of_internal_member
|
||||||
|
|
||||||
class _FakeRoutine_0 extends _i1.SmartFake implements _i2.Routine {
|
class _FakeRoutine_0 extends _i1.SmartFake implements _i2.Routine {
|
||||||
_FakeRoutine_0(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
_FakeRoutine_0(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ import 'package:wger/providers/base_provider.dart' as _i4;
|
|||||||
// ignore_for_file: unnecessary_parenthesis
|
// ignore_for_file: unnecessary_parenthesis
|
||||||
// ignore_for_file: camel_case_types
|
// ignore_for_file: camel_case_types
|
||||||
// ignore_for_file: subtype_of_sealed_class
|
// ignore_for_file: subtype_of_sealed_class
|
||||||
|
// ignore_for_file: invalid_use_of_internal_member
|
||||||
|
|
||||||
class _FakeAuthProvider_0 extends _i1.SmartFake implements _i2.AuthProvider {
|
class _FakeAuthProvider_0 extends _i1.SmartFake implements _i2.AuthProvider {
|
||||||
_FakeAuthProvider_0(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
_FakeAuthProvider_0(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||||
@@ -65,14 +66,14 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider {
|
|||||||
as _i3.Client);
|
as _i3.Client);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set auth(_i2.AuthProvider? _auth) => super.noSuchMethod(
|
set auth(_i2.AuthProvider? value) => super.noSuchMethod(
|
||||||
Invocation.setter(#auth, _auth),
|
Invocation.setter(#auth, value),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set client(_i3.Client? _client) => super.noSuchMethod(
|
set client(_i3.Client? value) => super.noSuchMethod(
|
||||||
Invocation.setter(#client, _client),
|
Invocation.setter(#client, value),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ import 'package:wger/providers/body_weight_repository.dart' as _i2;
|
|||||||
// ignore_for_file: unnecessary_parenthesis
|
// ignore_for_file: unnecessary_parenthesis
|
||||||
// ignore_for_file: camel_case_types
|
// ignore_for_file: camel_case_types
|
||||||
// ignore_for_file: subtype_of_sealed_class
|
// ignore_for_file: subtype_of_sealed_class
|
||||||
|
// ignore_for_file: invalid_use_of_internal_member
|
||||||
|
|
||||||
/// A class which mocks [BodyWeightRepository].
|
/// A class which mocks [BodyWeightRepository].
|
||||||
///
|
///
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ import 'package:wger/providers/user.dart' as _i9;
|
|||||||
// ignore_for_file: unnecessary_parenthesis
|
// ignore_for_file: unnecessary_parenthesis
|
||||||
// ignore_for_file: camel_case_types
|
// ignore_for_file: camel_case_types
|
||||||
// ignore_for_file: subtype_of_sealed_class
|
// ignore_for_file: subtype_of_sealed_class
|
||||||
|
// ignore_for_file: invalid_use_of_internal_member
|
||||||
|
|
||||||
class _FakeWgerBaseProvider_0 extends _i1.SmartFake implements _i2.WgerBaseProvider {
|
class _FakeWgerBaseProvider_0 extends _i1.SmartFake implements _i2.WgerBaseProvider {
|
||||||
_FakeWgerBaseProvider_0(Object parent, Invocation parentInvocation)
|
_FakeWgerBaseProvider_0(Object parent, Invocation parentInvocation)
|
||||||
@@ -106,20 +107,20 @@ class MockUserProvider extends _i1.Mock implements _i9.UserProvider {
|
|||||||
as _i3.SharedPreferencesAsync);
|
as _i3.SharedPreferencesAsync);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set themeMode(_i10.ThemeMode? _themeMode) => super.noSuchMethod(
|
set themeMode(_i10.ThemeMode? value) => super.noSuchMethod(
|
||||||
Invocation.setter(#themeMode, _themeMode),
|
Invocation.setter(#themeMode, value),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set prefs(_i3.SharedPreferencesAsync? _prefs) => super.noSuchMethod(
|
set prefs(_i3.SharedPreferencesAsync? value) => super.noSuchMethod(
|
||||||
Invocation.setter(#prefs, _prefs),
|
Invocation.setter(#prefs, value),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set profile(_i11.Profile? _profile) => super.noSuchMethod(
|
set profile(_i11.Profile? value) => super.noSuchMethod(
|
||||||
Invocation.setter(#profile, _profile),
|
Invocation.setter(#profile, value),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -238,14 +239,14 @@ class MockNutritionPlansProvider extends _i1.Mock implements _i14.NutritionPlans
|
|||||||
as List<_i5.NutritionalPlan>);
|
as List<_i5.NutritionalPlan>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set database(_i4.IngredientDatabase? _database) => super.noSuchMethod(
|
set database(_i4.IngredientDatabase? value) => super.noSuchMethod(
|
||||||
Invocation.setter(#database, _database),
|
Invocation.setter(#database, value),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
set ingredients(List<_i8.Ingredient>? _ingredients) => super.noSuchMethod(
|
set ingredients(List<_i8.Ingredient>? value) => super.noSuchMethod(
|
||||||
Invocation.setter(#ingredients, _ingredients),
|
Invocation.setter(#ingredients, value),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -412,6 +413,22 @@ class MockNutritionPlansProvider extends _i1.Mock implements _i14.NutritionPlans
|
|||||||
)
|
)
|
||||||
as _i12.Future<void>);
|
as _i12.Future<void>);
|
||||||
|
|
||||||
|
@override
|
||||||
|
_i12.Future<void> cacheIngredient(
|
||||||
|
_i8.Ingredient? ingredient, {
|
||||||
|
_i4.IngredientDatabase? database,
|
||||||
|
}) =>
|
||||||
|
(super.noSuchMethod(
|
||||||
|
Invocation.method(
|
||||||
|
#cacheIngredient,
|
||||||
|
[ingredient],
|
||||||
|
{#database: database},
|
||||||
|
),
|
||||||
|
returnValue: _i12.Future<void>.value(),
|
||||||
|
returnValueForMissingStub: _i12.Future<void>.value(),
|
||||||
|
)
|
||||||
|
as _i12.Future<void>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i12.Future<_i8.Ingredient> fetchIngredient(
|
_i12.Future<_i8.Ingredient> fetchIngredient(
|
||||||
int? ingredientId, {
|
int? ingredientId, {
|
||||||
|
|||||||
Reference in New Issue
Block a user