mirror of
https://github.com/wger-project/flutter.git
synced 2026-02-18 00:17:48 +01:00
Update contribute_exercise_test.mocks.dart
This commit is contained in:
@@ -40,50 +40,60 @@ import 'package:wger/providers/user.dart' as _i17;
|
||||
// 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)
|
||||
: super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeVariation_1 extends _i1.SmartFake implements _i3.Variation {
|
||||
_FakeVariation_1(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
_FakeVariation_1(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeSharedPreferencesAsync_2 extends _i1.SmartFake implements _i4.SharedPreferencesAsync {
|
||||
class _FakeSharedPreferencesAsync_2 extends _i1.SmartFake
|
||||
implements _i4.SharedPreferencesAsync {
|
||||
_FakeSharedPreferencesAsync_2(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeExerciseDatabase_3 extends _i1.SmartFake implements _i5.ExerciseDatabase {
|
||||
class _FakeExerciseDatabase_3 extends _i1.SmartFake
|
||||
implements _i5.ExerciseDatabase {
|
||||
_FakeExerciseDatabase_3(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeExercise_4 extends _i1.SmartFake implements _i6.Exercise {
|
||||
_FakeExercise_4(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
_FakeExercise_4(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeExerciseCategory_5 extends _i1.SmartFake implements _i7.ExerciseCategory {
|
||||
class _FakeExerciseCategory_5 extends _i1.SmartFake
|
||||
implements _i7.ExerciseCategory {
|
||||
_FakeExerciseCategory_5(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeEquipment_6 extends _i1.SmartFake implements _i8.Equipment {
|
||||
_FakeEquipment_6(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
_FakeEquipment_6(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeMuscle_7 extends _i1.SmartFake implements _i9.Muscle {
|
||||
_FakeMuscle_7(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
_FakeMuscle_7(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
class _FakeLanguage_8 extends _i1.SmartFake implements _i10.Language {
|
||||
_FakeLanguage_8(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
_FakeLanguage_8(Object parent, Invocation parentInvocation)
|
||||
: super(parent, parentInvocation);
|
||||
}
|
||||
|
||||
/// A class which mocks [AddExerciseProvider].
|
||||
///
|
||||
/// See the documentation for Mockito's code generation for more information.
|
||||
class MockAddExerciseProvider extends _i1.Mock implements _i11.AddExerciseProvider {
|
||||
class MockAddExerciseProvider extends _i1.Mock
|
||||
implements _i11.AddExerciseProvider {
|
||||
MockAddExerciseProvider() {
|
||||
_i1.throwOnMissingStub(this);
|
||||
}
|
||||
@@ -92,33 +102,49 @@ class MockAddExerciseProvider extends _i1.Mock implements _i11.AddExerciseProvid
|
||||
_i2.WgerBaseProvider get baseProvider =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.getter(#baseProvider),
|
||||
returnValue: _FakeWgerBaseProvider_0(this, Invocation.getter(#baseProvider)),
|
||||
returnValue: _FakeWgerBaseProvider_0(
|
||||
this,
|
||||
Invocation.getter(#baseProvider),
|
||||
),
|
||||
)
|
||||
as _i2.WgerBaseProvider);
|
||||
|
||||
@override
|
||||
List<_i12.File> get exerciseImages =>
|
||||
(super.noSuchMethod(Invocation.getter(#exerciseImages), returnValue: <_i12.File>[])
|
||||
(super.noSuchMethod(
|
||||
Invocation.getter(#exerciseImages),
|
||||
returnValue: <_i12.File>[],
|
||||
)
|
||||
as List<_i12.File>);
|
||||
|
||||
@override
|
||||
List<String> get alternateNamesEn =>
|
||||
(super.noSuchMethod(Invocation.getter(#alternateNamesEn), returnValue: <String>[])
|
||||
(super.noSuchMethod(
|
||||
Invocation.getter(#alternateNamesEn),
|
||||
returnValue: <String>[],
|
||||
)
|
||||
as List<String>);
|
||||
|
||||
@override
|
||||
List<String> get alternateNamesTrans =>
|
||||
(super.noSuchMethod(Invocation.getter(#alternateNamesTrans), returnValue: <String>[])
|
||||
(super.noSuchMethod(
|
||||
Invocation.getter(#alternateNamesTrans),
|
||||
returnValue: <String>[],
|
||||
)
|
||||
as List<String>);
|
||||
|
||||
@override
|
||||
List<_i8.Equipment> get equipment =>
|
||||
(super.noSuchMethod(Invocation.getter(#equipment), returnValue: <_i8.Equipment>[])
|
||||
(super.noSuchMethod(
|
||||
Invocation.getter(#equipment),
|
||||
returnValue: <_i8.Equipment>[],
|
||||
)
|
||||
as List<_i8.Equipment>);
|
||||
|
||||
@override
|
||||
bool get newVariation =>
|
||||
(super.noSuchMethod(Invocation.getter(#newVariation), returnValue: false) as bool);
|
||||
(super.noSuchMethod(Invocation.getter(#newVariation), returnValue: false)
|
||||
as bool);
|
||||
|
||||
@override
|
||||
_i3.Variation get variation =>
|
||||
@@ -130,12 +156,18 @@ class MockAddExerciseProvider extends _i1.Mock implements _i11.AddExerciseProvid
|
||||
|
||||
@override
|
||||
List<_i9.Muscle> get primaryMuscles =>
|
||||
(super.noSuchMethod(Invocation.getter(#primaryMuscles), returnValue: <_i9.Muscle>[])
|
||||
(super.noSuchMethod(
|
||||
Invocation.getter(#primaryMuscles),
|
||||
returnValue: <_i9.Muscle>[],
|
||||
)
|
||||
as List<_i9.Muscle>);
|
||||
|
||||
@override
|
||||
List<_i9.Muscle> get secondaryMuscles =>
|
||||
(super.noSuchMethod(Invocation.getter(#secondaryMuscles), returnValue: <_i9.Muscle>[])
|
||||
(super.noSuchMethod(
|
||||
Invocation.getter(#secondaryMuscles),
|
||||
returnValue: <_i9.Muscle>[],
|
||||
)
|
||||
as List<_i9.Muscle>);
|
||||
|
||||
@override
|
||||
@@ -162,8 +194,10 @@ class MockAddExerciseProvider extends _i1.Mock implements _i11.AddExerciseProvid
|
||||
);
|
||||
|
||||
@override
|
||||
set descriptionEn(String? value) =>
|
||||
super.noSuchMethod(Invocation.setter(#descriptionEn, value), returnValueForMissingStub: null);
|
||||
set descriptionEn(String? value) => super.noSuchMethod(
|
||||
Invocation.setter(#descriptionEn, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set descriptionTrans(String? value) => super.noSuchMethod(
|
||||
@@ -172,8 +206,10 @@ class MockAddExerciseProvider extends _i1.Mock implements _i11.AddExerciseProvid
|
||||
);
|
||||
|
||||
@override
|
||||
set languageEn(_i10.Language? value) =>
|
||||
super.noSuchMethod(Invocation.setter(#languageEn, value), returnValueForMissingStub: null);
|
||||
set languageEn(_i10.Language? value) => super.noSuchMethod(
|
||||
Invocation.setter(#languageEn, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set languageTranslation(_i10.Language? value) => super.noSuchMethod(
|
||||
@@ -194,12 +230,16 @@ class MockAddExerciseProvider extends _i1.Mock implements _i11.AddExerciseProvid
|
||||
);
|
||||
|
||||
@override
|
||||
set category(_i7.ExerciseCategory? value) =>
|
||||
super.noSuchMethod(Invocation.setter(#category, value), returnValueForMissingStub: null);
|
||||
set category(_i7.ExerciseCategory? value) => super.noSuchMethod(
|
||||
Invocation.setter(#category, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set equipment(List<_i8.Equipment>? equipment) =>
|
||||
super.noSuchMethod(Invocation.setter(#equipment, equipment), returnValueForMissingStub: null);
|
||||
set equipment(List<_i8.Equipment>? equipment) => super.noSuchMethod(
|
||||
Invocation.setter(#equipment, equipment),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set variationConnectToExercise(int? value) => super.noSuchMethod(
|
||||
@@ -227,11 +267,14 @@ class MockAddExerciseProvider extends _i1.Mock implements _i11.AddExerciseProvid
|
||||
|
||||
@override
|
||||
bool get hasListeners =>
|
||||
(super.noSuchMethod(Invocation.getter(#hasListeners), returnValue: false) as bool);
|
||||
(super.noSuchMethod(Invocation.getter(#hasListeners), returnValue: false)
|
||||
as bool);
|
||||
|
||||
@override
|
||||
void clear() =>
|
||||
super.noSuchMethod(Invocation.method(#clear, []), returnValueForMissingStub: null);
|
||||
void clear() => super.noSuchMethod(
|
||||
Invocation.method(#clear, []),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void addExerciseImages(
|
||||
@@ -310,12 +353,16 @@ class MockAddExerciseProvider extends _i1.Mock implements _i11.AddExerciseProvid
|
||||
);
|
||||
|
||||
@override
|
||||
void dispose() =>
|
||||
super.noSuchMethod(Invocation.method(#dispose, []), returnValueForMissingStub: null);
|
||||
void dispose() => super.noSuchMethod(
|
||||
Invocation.method(#dispose, []),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void notifyListeners() =>
|
||||
super.noSuchMethod(Invocation.method(#notifyListeners, []), returnValueForMissingStub: null);
|
||||
void notifyListeners() => super.noSuchMethod(
|
||||
Invocation.method(#notifyListeners, []),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
}
|
||||
|
||||
/// A class which mocks [UserProvider].
|
||||
@@ -328,14 +375,20 @@ class MockUserProvider extends _i1.Mock implements _i17.UserProvider {
|
||||
|
||||
@override
|
||||
_i18.ThemeMode get themeMode =>
|
||||
(super.noSuchMethod(Invocation.getter(#themeMode), returnValue: _i18.ThemeMode.system)
|
||||
(super.noSuchMethod(
|
||||
Invocation.getter(#themeMode),
|
||||
returnValue: _i18.ThemeMode.system,
|
||||
)
|
||||
as _i18.ThemeMode);
|
||||
|
||||
@override
|
||||
_i2.WgerBaseProvider get baseProvider =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.getter(#baseProvider),
|
||||
returnValue: _FakeWgerBaseProvider_0(this, Invocation.getter(#baseProvider)),
|
||||
returnValue: _FakeWgerBaseProvider_0(
|
||||
this,
|
||||
Invocation.getter(#baseProvider),
|
||||
),
|
||||
)
|
||||
as _i2.WgerBaseProvider);
|
||||
|
||||
@@ -343,33 +396,47 @@ class MockUserProvider extends _i1.Mock implements _i17.UserProvider {
|
||||
_i4.SharedPreferencesAsync get prefs =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.getter(#prefs),
|
||||
returnValue: _FakeSharedPreferencesAsync_2(this, Invocation.getter(#prefs)),
|
||||
returnValue: _FakeSharedPreferencesAsync_2(
|
||||
this,
|
||||
Invocation.getter(#prefs),
|
||||
),
|
||||
)
|
||||
as _i4.SharedPreferencesAsync);
|
||||
|
||||
@override
|
||||
set themeMode(_i18.ThemeMode? value) =>
|
||||
super.noSuchMethod(Invocation.setter(#themeMode, value), returnValueForMissingStub: null);
|
||||
set themeMode(_i18.ThemeMode? value) => super.noSuchMethod(
|
||||
Invocation.setter(#themeMode, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set prefs(_i4.SharedPreferencesAsync? value) =>
|
||||
super.noSuchMethod(Invocation.setter(#prefs, value), returnValueForMissingStub: null);
|
||||
set prefs(_i4.SharedPreferencesAsync? value) => super.noSuchMethod(
|
||||
Invocation.setter(#prefs, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set profile(_i19.Profile? value) =>
|
||||
super.noSuchMethod(Invocation.setter(#profile, value), returnValueForMissingStub: null);
|
||||
set profile(_i19.Profile? value) => super.noSuchMethod(
|
||||
Invocation.setter(#profile, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get hasListeners =>
|
||||
(super.noSuchMethod(Invocation.getter(#hasListeners), returnValue: false) as bool);
|
||||
(super.noSuchMethod(Invocation.getter(#hasListeners), returnValue: false)
|
||||
as bool);
|
||||
|
||||
@override
|
||||
void clear() =>
|
||||
super.noSuchMethod(Invocation.method(#clear, []), returnValueForMissingStub: null);
|
||||
void clear() => super.noSuchMethod(
|
||||
Invocation.method(#clear, []),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void setThemeMode(_i18.ThemeMode? mode) =>
|
||||
super.noSuchMethod(Invocation.method(#setThemeMode, [mode]), returnValueForMissingStub: null);
|
||||
void setThemeMode(_i18.ThemeMode? mode) => super.noSuchMethod(
|
||||
Invocation.method(#setThemeMode, [mode]),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
_i15.Future<void> fetchAndSetProfile() =>
|
||||
@@ -411,12 +478,16 @@ class MockUserProvider extends _i1.Mock implements _i17.UserProvider {
|
||||
);
|
||||
|
||||
@override
|
||||
void dispose() =>
|
||||
super.noSuchMethod(Invocation.method(#dispose, []), returnValueForMissingStub: null);
|
||||
void dispose() => super.noSuchMethod(
|
||||
Invocation.method(#dispose, []),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void notifyListeners() =>
|
||||
super.noSuchMethod(Invocation.method(#notifyListeners, []), returnValueForMissingStub: null);
|
||||
void notifyListeners() => super.noSuchMethod(
|
||||
Invocation.method(#notifyListeners, []),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
}
|
||||
|
||||
/// A class which mocks [ExercisesProvider].
|
||||
@@ -431,7 +502,10 @@ class MockExercisesProvider extends _i1.Mock implements _i20.ExercisesProvider {
|
||||
_i2.WgerBaseProvider get baseProvider =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.getter(#baseProvider),
|
||||
returnValue: _FakeWgerBaseProvider_0(this, Invocation.getter(#baseProvider)),
|
||||
returnValue: _FakeWgerBaseProvider_0(
|
||||
this,
|
||||
Invocation.getter(#baseProvider),
|
||||
),
|
||||
)
|
||||
as _i2.WgerBaseProvider);
|
||||
|
||||
@@ -439,18 +513,27 @@ class MockExercisesProvider extends _i1.Mock implements _i20.ExercisesProvider {
|
||||
_i5.ExerciseDatabase get database =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.getter(#database),
|
||||
returnValue: _FakeExerciseDatabase_3(this, Invocation.getter(#database)),
|
||||
returnValue: _FakeExerciseDatabase_3(
|
||||
this,
|
||||
Invocation.getter(#database),
|
||||
),
|
||||
)
|
||||
as _i5.ExerciseDatabase);
|
||||
|
||||
@override
|
||||
List<_i6.Exercise> get exercises =>
|
||||
(super.noSuchMethod(Invocation.getter(#exercises), returnValue: <_i6.Exercise>[])
|
||||
(super.noSuchMethod(
|
||||
Invocation.getter(#exercises),
|
||||
returnValue: <_i6.Exercise>[],
|
||||
)
|
||||
as List<_i6.Exercise>);
|
||||
|
||||
@override
|
||||
List<_i6.Exercise> get filteredExercises =>
|
||||
(super.noSuchMethod(Invocation.getter(#filteredExercises), returnValue: <_i6.Exercise>[])
|
||||
(super.noSuchMethod(
|
||||
Invocation.getter(#filteredExercises),
|
||||
returnValue: <_i6.Exercise>[],
|
||||
)
|
||||
as List<_i6.Exercise>);
|
||||
|
||||
@override
|
||||
@@ -463,45 +546,65 @@ class MockExercisesProvider extends _i1.Mock implements _i20.ExercisesProvider {
|
||||
|
||||
@override
|
||||
List<_i7.ExerciseCategory> get categories =>
|
||||
(super.noSuchMethod(Invocation.getter(#categories), returnValue: <_i7.ExerciseCategory>[])
|
||||
(super.noSuchMethod(
|
||||
Invocation.getter(#categories),
|
||||
returnValue: <_i7.ExerciseCategory>[],
|
||||
)
|
||||
as List<_i7.ExerciseCategory>);
|
||||
|
||||
@override
|
||||
List<_i9.Muscle> get muscles =>
|
||||
(super.noSuchMethod(Invocation.getter(#muscles), returnValue: <_i9.Muscle>[])
|
||||
(super.noSuchMethod(
|
||||
Invocation.getter(#muscles),
|
||||
returnValue: <_i9.Muscle>[],
|
||||
)
|
||||
as List<_i9.Muscle>);
|
||||
|
||||
@override
|
||||
List<_i8.Equipment> get equipment =>
|
||||
(super.noSuchMethod(Invocation.getter(#equipment), returnValue: <_i8.Equipment>[])
|
||||
(super.noSuchMethod(
|
||||
Invocation.getter(#equipment),
|
||||
returnValue: <_i8.Equipment>[],
|
||||
)
|
||||
as List<_i8.Equipment>);
|
||||
|
||||
@override
|
||||
List<_i10.Language> get languages =>
|
||||
(super.noSuchMethod(Invocation.getter(#languages), returnValue: <_i10.Language>[])
|
||||
(super.noSuchMethod(
|
||||
Invocation.getter(#languages),
|
||||
returnValue: <_i10.Language>[],
|
||||
)
|
||||
as List<_i10.Language>);
|
||||
|
||||
@override
|
||||
set database(_i5.ExerciseDatabase? value) =>
|
||||
super.noSuchMethod(Invocation.setter(#database, value), returnValueForMissingStub: null);
|
||||
|
||||
@override
|
||||
set exercises(List<_i6.Exercise>? value) =>
|
||||
super.noSuchMethod(Invocation.setter(#exercises, value), returnValueForMissingStub: null);
|
||||
|
||||
@override
|
||||
set filteredExercises(List<_i6.Exercise>? newFilteredExercises) => super.noSuchMethod(
|
||||
Invocation.setter(#filteredExercises, newFilteredExercises),
|
||||
set database(_i5.ExerciseDatabase? value) => super.noSuchMethod(
|
||||
Invocation.setter(#database, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set languages(List<_i10.Language>? languages) =>
|
||||
super.noSuchMethod(Invocation.setter(#languages, languages), returnValueForMissingStub: null);
|
||||
set exercises(List<_i6.Exercise>? value) => super.noSuchMethod(
|
||||
Invocation.setter(#exercises, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set filteredExercises(List<_i6.Exercise>? newFilteredExercises) =>
|
||||
super.noSuchMethod(
|
||||
Invocation.setter(#filteredExercises, newFilteredExercises),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set languages(List<_i10.Language>? languages) => super.noSuchMethod(
|
||||
Invocation.setter(#languages, languages),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get hasListeners =>
|
||||
(super.noSuchMethod(Invocation.getter(#hasListeners), returnValue: false) as bool);
|
||||
(super.noSuchMethod(Invocation.getter(#hasListeners), returnValue: false)
|
||||
as bool);
|
||||
|
||||
@override
|
||||
_i15.Future<void> setFilters(_i20.Filters? newFilters) =>
|
||||
@@ -513,8 +616,10 @@ class MockExercisesProvider extends _i1.Mock implements _i20.ExercisesProvider {
|
||||
as _i15.Future<void>);
|
||||
|
||||
@override
|
||||
void initFilters() =>
|
||||
super.noSuchMethod(Invocation.method(#initFilters, []), returnValueForMissingStub: null);
|
||||
void initFilters() => super.noSuchMethod(
|
||||
Invocation.method(#initFilters, []),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
_i15.Future<void> findByFilters() =>
|
||||
@@ -526,19 +631,27 @@ class MockExercisesProvider extends _i1.Mock implements _i20.ExercisesProvider {
|
||||
as _i15.Future<void>);
|
||||
|
||||
@override
|
||||
void clear() =>
|
||||
super.noSuchMethod(Invocation.method(#clear, []), returnValueForMissingStub: null);
|
||||
void clear() => super.noSuchMethod(
|
||||
Invocation.method(#clear, []),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
_i6.Exercise findExerciseById(int? id) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(#findExerciseById, [id]),
|
||||
returnValue: _FakeExercise_4(this, Invocation.method(#findExerciseById, [id])),
|
||||
returnValue: _FakeExercise_4(
|
||||
this,
|
||||
Invocation.method(#findExerciseById, [id]),
|
||||
),
|
||||
)
|
||||
as _i6.Exercise);
|
||||
|
||||
@override
|
||||
List<_i6.Exercise> findExercisesByVariationId(int? variationId, {int? exerciseIdToExclude}) =>
|
||||
List<_i6.Exercise> findExercisesByVariationId(
|
||||
int? variationId, {
|
||||
int? exerciseIdToExclude,
|
||||
}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#findExercisesByVariationId,
|
||||
@@ -553,7 +666,10 @@ class MockExercisesProvider extends _i1.Mock implements _i20.ExercisesProvider {
|
||||
_i7.ExerciseCategory findCategoryById(int? id) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(#findCategoryById, [id]),
|
||||
returnValue: _FakeExerciseCategory_5(this, Invocation.method(#findCategoryById, [id])),
|
||||
returnValue: _FakeExerciseCategory_5(
|
||||
this,
|
||||
Invocation.method(#findCategoryById, [id]),
|
||||
),
|
||||
)
|
||||
as _i7.ExerciseCategory);
|
||||
|
||||
@@ -561,7 +677,10 @@ class MockExercisesProvider extends _i1.Mock implements _i20.ExercisesProvider {
|
||||
_i8.Equipment findEquipmentById(int? id) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(#findEquipmentById, [id]),
|
||||
returnValue: _FakeEquipment_6(this, Invocation.method(#findEquipmentById, [id])),
|
||||
returnValue: _FakeEquipment_6(
|
||||
this,
|
||||
Invocation.method(#findEquipmentById, [id]),
|
||||
),
|
||||
)
|
||||
as _i8.Equipment);
|
||||
|
||||
@@ -569,7 +688,10 @@ class MockExercisesProvider extends _i1.Mock implements _i20.ExercisesProvider {
|
||||
_i9.Muscle findMuscleById(int? id) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(#findMuscleById, [id]),
|
||||
returnValue: _FakeMuscle_7(this, Invocation.method(#findMuscleById, [id])),
|
||||
returnValue: _FakeMuscle_7(
|
||||
this,
|
||||
Invocation.method(#findMuscleById, [id]),
|
||||
),
|
||||
)
|
||||
as _i9.Muscle);
|
||||
|
||||
@@ -577,7 +699,10 @@ class MockExercisesProvider extends _i1.Mock implements _i20.ExercisesProvider {
|
||||
_i10.Language findLanguageById(int? id) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(#findLanguageById, [id]),
|
||||
returnValue: _FakeLanguage_8(this, Invocation.method(#findLanguageById, [id])),
|
||||
returnValue: _FakeLanguage_8(
|
||||
this,
|
||||
Invocation.method(#findLanguageById, [id]),
|
||||
),
|
||||
)
|
||||
as _i10.Language);
|
||||
|
||||
@@ -640,11 +765,17 @@ class MockExercisesProvider extends _i1.Mock implements _i20.ExercisesProvider {
|
||||
int? exerciseId,
|
||||
) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(#handleUpdateExerciseFromApi, [database, exerciseId]),
|
||||
Invocation.method(#handleUpdateExerciseFromApi, [
|
||||
database,
|
||||
exerciseId,
|
||||
]),
|
||||
returnValue: _i15.Future<_i6.Exercise>.value(
|
||||
_FakeExercise_4(
|
||||
this,
|
||||
Invocation.method(#handleUpdateExerciseFromApi, [database, exerciseId]),
|
||||
Invocation.method(#handleUpdateExerciseFromApi, [
|
||||
database,
|
||||
exerciseId,
|
||||
]),
|
||||
),
|
||||
),
|
||||
)
|
||||
@@ -653,7 +784,9 @@ class MockExercisesProvider extends _i1.Mock implements _i20.ExercisesProvider {
|
||||
@override
|
||||
_i15.Future<void> initCacheTimesLocalPrefs({dynamic forceInit = false}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(#initCacheTimesLocalPrefs, [], {#forceInit: forceInit}),
|
||||
Invocation.method(#initCacheTimesLocalPrefs, [], {
|
||||
#forceInit: forceInit,
|
||||
}),
|
||||
returnValue: _i15.Future<void>.value(),
|
||||
returnValueForMissingStub: _i15.Future<void>.value(),
|
||||
)
|
||||
@@ -750,7 +883,9 @@ class MockExercisesProvider extends _i1.Mock implements _i20.ExercisesProvider {
|
||||
[name],
|
||||
{#languageCode: languageCode, #searchEnglish: searchEnglish},
|
||||
),
|
||||
returnValue: _i15.Future<List<_i6.Exercise>>.value(<_i6.Exercise>[]),
|
||||
returnValue: _i15.Future<List<_i6.Exercise>>.value(
|
||||
<_i6.Exercise>[],
|
||||
),
|
||||
)
|
||||
as _i15.Future<List<_i6.Exercise>>);
|
||||
|
||||
@@ -767,10 +902,14 @@ class MockExercisesProvider extends _i1.Mock implements _i20.ExercisesProvider {
|
||||
);
|
||||
|
||||
@override
|
||||
void dispose() =>
|
||||
super.noSuchMethod(Invocation.method(#dispose, []), returnValueForMissingStub: null);
|
||||
void dispose() => super.noSuchMethod(
|
||||
Invocation.method(#dispose, []),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void notifyListeners() =>
|
||||
super.noSuchMethod(Invocation.method(#notifyListeners, []), returnValueForMissingStub: null);
|
||||
void notifyListeners() => super.noSuchMethod(
|
||||
Invocation.method(#notifyListeners, []),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user