mirror of
https://github.com/wger-project/flutter.git
synced 2026-11-29 09:20:56 +01:00
823 lines
26 KiB
Dart
823 lines
26 KiB
Dart
// Mocks generated by Mockito 5.4.6 from annotations
|
|
// in wger/test/core/settings_test.dart.
|
|
// Do not manually edit this file.
|
|
|
|
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
|
import 'dart:async' as _i12;
|
|
import 'dart:ui' as _i13;
|
|
|
|
import 'package:flutter/material.dart' as _i15;
|
|
import 'package:http/http.dart' as _i10;
|
|
import 'package:mockito/mockito.dart' as _i1;
|
|
import 'package:shared_preferences/shared_preferences.dart' as _i8;
|
|
import 'package:wger/database/ingredients/ingredients_database.dart' as _i3;
|
|
import 'package:wger/models/nutrition/ingredient.dart' as _i7;
|
|
import 'package:wger/models/nutrition/meal.dart' as _i5;
|
|
import 'package:wger/models/nutrition/meal_item.dart' as _i6;
|
|
import 'package:wger/models/nutrition/nutritional_plan.dart' as _i4;
|
|
import 'package:wger/models/user/profile.dart' as _i16;
|
|
import 'package:wger/providers/auth.dart' as _i9;
|
|
import 'package:wger/providers/base_provider.dart' as _i2;
|
|
import 'package:wger/providers/nutrition.dart' as _i11;
|
|
import 'package:wger/providers/user.dart' as _i14;
|
|
|
|
// ignore_for_file: type=lint
|
|
// ignore_for_file: avoid_redundant_argument_values
|
|
// ignore_for_file: avoid_setters_without_getters
|
|
// ignore_for_file: comment_references
|
|
// ignore_for_file: deprecated_member_use
|
|
// ignore_for_file: deprecated_member_use_from_same_package
|
|
// ignore_for_file: implementation_imports
|
|
// ignore_for_file: invalid_use_of_visible_for_testing_member
|
|
// ignore_for_file: must_be_immutable
|
|
// ignore_for_file: prefer_const_constructors
|
|
// ignore_for_file: unnecessary_parenthesis
|
|
// ignore_for_file: camel_case_types
|
|
// ignore_for_file: subtype_of_sealed_class
|
|
|
|
class _FakeWgerBaseProvider_0 extends _i1.SmartFake implements _i2.WgerBaseProvider {
|
|
_FakeWgerBaseProvider_0(Object parent, Invocation parentInvocation)
|
|
: super(parent, parentInvocation);
|
|
}
|
|
|
|
class _FakeIngredientDatabase_1 extends _i1.SmartFake implements _i3.IngredientDatabase {
|
|
_FakeIngredientDatabase_1(Object parent, Invocation parentInvocation)
|
|
: super(parent, parentInvocation);
|
|
}
|
|
|
|
class _FakeNutritionalPlan_2 extends _i1.SmartFake implements _i4.NutritionalPlan {
|
|
_FakeNutritionalPlan_2(Object parent, Invocation parentInvocation)
|
|
: super(parent, parentInvocation);
|
|
}
|
|
|
|
class _FakeMeal_3 extends _i1.SmartFake implements _i5.Meal {
|
|
_FakeMeal_3(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
|
}
|
|
|
|
class _FakeMealItem_4 extends _i1.SmartFake implements _i6.MealItem {
|
|
_FakeMealItem_4(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
|
}
|
|
|
|
class _FakeIngredient_5 extends _i1.SmartFake implements _i7.Ingredient {
|
|
_FakeIngredient_5(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
|
}
|
|
|
|
class _FakeSharedPreferencesAsync_6 extends _i1.SmartFake implements _i8.SharedPreferencesAsync {
|
|
_FakeSharedPreferencesAsync_6(Object parent, Invocation parentInvocation)
|
|
: super(parent, parentInvocation);
|
|
}
|
|
|
|
class _FakeAuthProvider_7 extends _i1.SmartFake implements _i9.AuthProvider {
|
|
_FakeAuthProvider_7(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
|
}
|
|
|
|
class _FakeClient_8 extends _i1.SmartFake implements _i10.Client {
|
|
_FakeClient_8(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
|
}
|
|
|
|
class _FakeUri_9 extends _i1.SmartFake implements Uri {
|
|
_FakeUri_9(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
|
}
|
|
|
|
class _FakeResponse_10 extends _i1.SmartFake implements _i10.Response {
|
|
_FakeResponse_10(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
|
}
|
|
|
|
/// A class which mocks [NutritionPlansProvider].
|
|
///
|
|
/// See the documentation for Mockito's code generation for more information.
|
|
class MockNutritionPlansProvider extends _i1.Mock implements _i11.NutritionPlansProvider {
|
|
MockNutritionPlansProvider() {
|
|
_i1.throwOnMissingStub(this);
|
|
}
|
|
|
|
@override
|
|
_i2.WgerBaseProvider get baseProvider =>
|
|
(super.noSuchMethod(
|
|
Invocation.getter(#baseProvider),
|
|
returnValue: _FakeWgerBaseProvider_0(
|
|
this,
|
|
Invocation.getter(#baseProvider),
|
|
),
|
|
)
|
|
as _i2.WgerBaseProvider);
|
|
|
|
@override
|
|
_i3.IngredientDatabase get database =>
|
|
(super.noSuchMethod(
|
|
Invocation.getter(#database),
|
|
returnValue: _FakeIngredientDatabase_1(
|
|
this,
|
|
Invocation.getter(#database),
|
|
),
|
|
)
|
|
as _i3.IngredientDatabase);
|
|
|
|
@override
|
|
List<_i7.Ingredient> get ingredients =>
|
|
(super.noSuchMethod(
|
|
Invocation.getter(#ingredients),
|
|
returnValue: <_i7.Ingredient>[],
|
|
)
|
|
as List<_i7.Ingredient>);
|
|
|
|
@override
|
|
List<_i4.NutritionalPlan> get items =>
|
|
(super.noSuchMethod(
|
|
Invocation.getter(#items),
|
|
returnValue: <_i4.NutritionalPlan>[],
|
|
)
|
|
as List<_i4.NutritionalPlan>);
|
|
|
|
@override
|
|
set database(_i3.IngredientDatabase? _database) => super.noSuchMethod(
|
|
Invocation.setter(#database, _database),
|
|
returnValueForMissingStub: null,
|
|
);
|
|
|
|
@override
|
|
set ingredients(List<_i7.Ingredient>? _ingredients) => super.noSuchMethod(
|
|
Invocation.setter(#ingredients, _ingredients),
|
|
returnValueForMissingStub: null,
|
|
);
|
|
|
|
@override
|
|
bool get hasListeners =>
|
|
(super.noSuchMethod(Invocation.getter(#hasListeners), returnValue: false) as bool);
|
|
|
|
@override
|
|
void clear() => super.noSuchMethod(
|
|
Invocation.method(#clear, []),
|
|
returnValueForMissingStub: null,
|
|
);
|
|
|
|
@override
|
|
_i4.NutritionalPlan findById(int? id) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(#findById, [id]),
|
|
returnValue: _FakeNutritionalPlan_2(
|
|
this,
|
|
Invocation.method(#findById, [id]),
|
|
),
|
|
)
|
|
as _i4.NutritionalPlan);
|
|
|
|
@override
|
|
_i5.Meal? findMealById(int? id) =>
|
|
(super.noSuchMethod(Invocation.method(#findMealById, [id])) as _i5.Meal?);
|
|
|
|
@override
|
|
_i12.Future<void> fetchAndSetAllPlansSparse() =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(#fetchAndSetAllPlansSparse, []),
|
|
returnValue: _i12.Future<void>.value(),
|
|
returnValueForMissingStub: _i12.Future<void>.value(),
|
|
)
|
|
as _i12.Future<void>);
|
|
|
|
@override
|
|
_i12.Future<void> fetchAndSetAllPlansFull() =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(#fetchAndSetAllPlansFull, []),
|
|
returnValue: _i12.Future<void>.value(),
|
|
returnValueForMissingStub: _i12.Future<void>.value(),
|
|
)
|
|
as _i12.Future<void>);
|
|
|
|
@override
|
|
_i12.Future<_i4.NutritionalPlan> fetchAndSetPlanSparse(int? planId) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(#fetchAndSetPlanSparse, [planId]),
|
|
returnValue: _i12.Future<_i4.NutritionalPlan>.value(
|
|
_FakeNutritionalPlan_2(
|
|
this,
|
|
Invocation.method(#fetchAndSetPlanSparse, [planId]),
|
|
),
|
|
),
|
|
)
|
|
as _i12.Future<_i4.NutritionalPlan>);
|
|
|
|
@override
|
|
_i12.Future<_i4.NutritionalPlan> fetchAndSetPlanFull(int? planId) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(#fetchAndSetPlanFull, [planId]),
|
|
returnValue: _i12.Future<_i4.NutritionalPlan>.value(
|
|
_FakeNutritionalPlan_2(
|
|
this,
|
|
Invocation.method(#fetchAndSetPlanFull, [planId]),
|
|
),
|
|
),
|
|
)
|
|
as _i12.Future<_i4.NutritionalPlan>);
|
|
|
|
@override
|
|
_i12.Future<_i4.NutritionalPlan> addPlan(_i4.NutritionalPlan? planData) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(#addPlan, [planData]),
|
|
returnValue: _i12.Future<_i4.NutritionalPlan>.value(
|
|
_FakeNutritionalPlan_2(
|
|
this,
|
|
Invocation.method(#addPlan, [planData]),
|
|
),
|
|
),
|
|
)
|
|
as _i12.Future<_i4.NutritionalPlan>);
|
|
|
|
@override
|
|
_i12.Future<void> editPlan(_i4.NutritionalPlan? plan) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(#editPlan, [plan]),
|
|
returnValue: _i12.Future<void>.value(),
|
|
returnValueForMissingStub: _i12.Future<void>.value(),
|
|
)
|
|
as _i12.Future<void>);
|
|
|
|
@override
|
|
_i12.Future<void> deletePlan(int? id) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(#deletePlan, [id]),
|
|
returnValue: _i12.Future<void>.value(),
|
|
returnValueForMissingStub: _i12.Future<void>.value(),
|
|
)
|
|
as _i12.Future<void>);
|
|
|
|
@override
|
|
_i12.Future<_i5.Meal> addMeal(_i5.Meal? meal, int? planId) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(#addMeal, [meal, planId]),
|
|
returnValue: _i12.Future<_i5.Meal>.value(
|
|
_FakeMeal_3(this, Invocation.method(#addMeal, [meal, planId])),
|
|
),
|
|
)
|
|
as _i12.Future<_i5.Meal>);
|
|
|
|
@override
|
|
_i12.Future<_i5.Meal> editMeal(_i5.Meal? meal) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(#editMeal, [meal]),
|
|
returnValue: _i12.Future<_i5.Meal>.value(
|
|
_FakeMeal_3(this, Invocation.method(#editMeal, [meal])),
|
|
),
|
|
)
|
|
as _i12.Future<_i5.Meal>);
|
|
|
|
@override
|
|
_i12.Future<void> deleteMeal(_i5.Meal? meal) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(#deleteMeal, [meal]),
|
|
returnValue: _i12.Future<void>.value(),
|
|
returnValueForMissingStub: _i12.Future<void>.value(),
|
|
)
|
|
as _i12.Future<void>);
|
|
|
|
@override
|
|
_i12.Future<_i6.MealItem> addMealItem(
|
|
_i6.MealItem? mealItem,
|
|
_i5.Meal? meal,
|
|
) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(#addMealItem, [mealItem, meal]),
|
|
returnValue: _i12.Future<_i6.MealItem>.value(
|
|
_FakeMealItem_4(
|
|
this,
|
|
Invocation.method(#addMealItem, [mealItem, meal]),
|
|
),
|
|
),
|
|
)
|
|
as _i12.Future<_i6.MealItem>);
|
|
|
|
@override
|
|
_i12.Future<void> deleteMealItem(_i6.MealItem? mealItem) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(#deleteMealItem, [mealItem]),
|
|
returnValue: _i12.Future<void>.value(),
|
|
returnValueForMissingStub: _i12.Future<void>.value(),
|
|
)
|
|
as _i12.Future<void>);
|
|
|
|
@override
|
|
_i12.Future<void> clearIngredientCache() =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(#clearIngredientCache, []),
|
|
returnValue: _i12.Future<void>.value(),
|
|
returnValueForMissingStub: _i12.Future<void>.value(),
|
|
)
|
|
as _i12.Future<void>);
|
|
|
|
@override
|
|
_i12.Future<_i7.Ingredient> fetchIngredient(
|
|
int? ingredientId, {
|
|
_i3.IngredientDatabase? database,
|
|
}) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#fetchIngredient,
|
|
[ingredientId],
|
|
{#database: database},
|
|
),
|
|
returnValue: _i12.Future<_i7.Ingredient>.value(
|
|
_FakeIngredient_5(
|
|
this,
|
|
Invocation.method(
|
|
#fetchIngredient,
|
|
[ingredientId],
|
|
{#database: database},
|
|
),
|
|
),
|
|
),
|
|
)
|
|
as _i12.Future<_i7.Ingredient>);
|
|
|
|
@override
|
|
_i12.Future<void> fetchIngredientsFromCache() =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(#fetchIngredientsFromCache, []),
|
|
returnValue: _i12.Future<void>.value(),
|
|
returnValueForMissingStub: _i12.Future<void>.value(),
|
|
)
|
|
as _i12.Future<void>);
|
|
|
|
@override
|
|
_i12.Future<List<_i7.Ingredient>> searchIngredient(
|
|
String? name, {
|
|
String? languageCode = 'en',
|
|
bool? searchEnglish = false,
|
|
}) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#searchIngredient,
|
|
[name],
|
|
{#languageCode: languageCode, #searchEnglish: searchEnglish},
|
|
),
|
|
returnValue: _i12.Future<List<_i7.Ingredient>>.value(
|
|
<_i7.Ingredient>[],
|
|
),
|
|
)
|
|
as _i12.Future<List<_i7.Ingredient>>);
|
|
|
|
@override
|
|
_i12.Future<_i7.Ingredient?> searchIngredientWithBarcode(String? barcode) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(#searchIngredientWithBarcode, [barcode]),
|
|
returnValue: _i12.Future<_i7.Ingredient?>.value(),
|
|
)
|
|
as _i12.Future<_i7.Ingredient?>);
|
|
|
|
@override
|
|
_i12.Future<void> logMealToDiary(_i5.Meal? meal, DateTime? mealDateTime) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(#logMealToDiary, [meal, mealDateTime]),
|
|
returnValue: _i12.Future<void>.value(),
|
|
returnValueForMissingStub: _i12.Future<void>.value(),
|
|
)
|
|
as _i12.Future<void>);
|
|
|
|
@override
|
|
_i12.Future<void> logIngredientToDiary(
|
|
_i6.MealItem? mealItem,
|
|
int? planId, [
|
|
DateTime? dateTime,
|
|
]) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(#logIngredientToDiary, [
|
|
mealItem,
|
|
planId,
|
|
dateTime,
|
|
]),
|
|
returnValue: _i12.Future<void>.value(),
|
|
returnValueForMissingStub: _i12.Future<void>.value(),
|
|
)
|
|
as _i12.Future<void>);
|
|
|
|
@override
|
|
_i12.Future<void> deleteLog(int? logId, int? planId) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(#deleteLog, [logId, planId]),
|
|
returnValue: _i12.Future<void>.value(),
|
|
returnValueForMissingStub: _i12.Future<void>.value(),
|
|
)
|
|
as _i12.Future<void>);
|
|
|
|
@override
|
|
_i12.Future<void> fetchAndSetLogs(_i4.NutritionalPlan? plan) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(#fetchAndSetLogs, [plan]),
|
|
returnValue: _i12.Future<void>.value(),
|
|
returnValueForMissingStub: _i12.Future<void>.value(),
|
|
)
|
|
as _i12.Future<void>);
|
|
|
|
@override
|
|
void addListener(_i13.VoidCallback? listener) => super.noSuchMethod(
|
|
Invocation.method(#addListener, [listener]),
|
|
returnValueForMissingStub: null,
|
|
);
|
|
|
|
@override
|
|
void removeListener(_i13.VoidCallback? listener) => super.noSuchMethod(
|
|
Invocation.method(#removeListener, [listener]),
|
|
returnValueForMissingStub: null,
|
|
);
|
|
|
|
@override
|
|
void dispose() => super.noSuchMethod(
|
|
Invocation.method(#dispose, []),
|
|
returnValueForMissingStub: null,
|
|
);
|
|
|
|
@override
|
|
void notifyListeners() => super.noSuchMethod(
|
|
Invocation.method(#notifyListeners, []),
|
|
returnValueForMissingStub: null,
|
|
);
|
|
}
|
|
|
|
/// A class which mocks [UserProvider].
|
|
///
|
|
/// See the documentation for Mockito's code generation for more information.
|
|
class MockUserProvider extends _i1.Mock implements _i14.UserProvider {
|
|
MockUserProvider() {
|
|
_i1.throwOnMissingStub(this);
|
|
}
|
|
|
|
@override
|
|
_i15.ThemeMode get themeMode =>
|
|
(super.noSuchMethod(
|
|
Invocation.getter(#themeMode),
|
|
returnValue: _i15.ThemeMode.system,
|
|
)
|
|
as _i15.ThemeMode);
|
|
|
|
@override
|
|
_i2.WgerBaseProvider get baseProvider =>
|
|
(super.noSuchMethod(
|
|
Invocation.getter(#baseProvider),
|
|
returnValue: _FakeWgerBaseProvider_0(
|
|
this,
|
|
Invocation.getter(#baseProvider),
|
|
),
|
|
)
|
|
as _i2.WgerBaseProvider);
|
|
|
|
@override
|
|
_i8.SharedPreferencesAsync get prefs =>
|
|
(super.noSuchMethod(
|
|
Invocation.getter(#prefs),
|
|
returnValue: _FakeSharedPreferencesAsync_6(
|
|
this,
|
|
Invocation.getter(#prefs),
|
|
),
|
|
)
|
|
as _i8.SharedPreferencesAsync);
|
|
|
|
@override
|
|
set themeMode(_i15.ThemeMode? _themeMode) => super.noSuchMethod(
|
|
Invocation.setter(#themeMode, _themeMode),
|
|
returnValueForMissingStub: null,
|
|
);
|
|
|
|
@override
|
|
set prefs(_i8.SharedPreferencesAsync? _prefs) => super.noSuchMethod(
|
|
Invocation.setter(#prefs, _prefs),
|
|
returnValueForMissingStub: null,
|
|
);
|
|
|
|
@override
|
|
set profile(_i16.Profile? _profile) => super.noSuchMethod(
|
|
Invocation.setter(#profile, _profile),
|
|
returnValueForMissingStub: null,
|
|
);
|
|
|
|
@override
|
|
bool get hasListeners =>
|
|
(super.noSuchMethod(Invocation.getter(#hasListeners), returnValue: false) as bool);
|
|
|
|
@override
|
|
void clear() => super.noSuchMethod(
|
|
Invocation.method(#clear, []),
|
|
returnValueForMissingStub: null,
|
|
);
|
|
|
|
@override
|
|
void setThemeMode(_i15.ThemeMode? mode) => super.noSuchMethod(
|
|
Invocation.method(#setThemeMode, [mode]),
|
|
returnValueForMissingStub: null,
|
|
);
|
|
|
|
@override
|
|
_i12.Future<void> fetchAndSetProfile() =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(#fetchAndSetProfile, []),
|
|
returnValue: _i12.Future<void>.value(),
|
|
returnValueForMissingStub: _i12.Future<void>.value(),
|
|
)
|
|
as _i12.Future<void>);
|
|
|
|
@override
|
|
_i12.Future<void> saveProfile() =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(#saveProfile, []),
|
|
returnValue: _i12.Future<void>.value(),
|
|
returnValueForMissingStub: _i12.Future<void>.value(),
|
|
)
|
|
as _i12.Future<void>);
|
|
|
|
@override
|
|
_i12.Future<void> verifyEmail() =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(#verifyEmail, []),
|
|
returnValue: _i12.Future<void>.value(),
|
|
returnValueForMissingStub: _i12.Future<void>.value(),
|
|
)
|
|
as _i12.Future<void>);
|
|
|
|
@override
|
|
void addListener(_i13.VoidCallback? listener) => super.noSuchMethod(
|
|
Invocation.method(#addListener, [listener]),
|
|
returnValueForMissingStub: null,
|
|
);
|
|
|
|
@override
|
|
void removeListener(_i13.VoidCallback? listener) => super.noSuchMethod(
|
|
Invocation.method(#removeListener, [listener]),
|
|
returnValueForMissingStub: null,
|
|
);
|
|
|
|
@override
|
|
void dispose() => super.noSuchMethod(
|
|
Invocation.method(#dispose, []),
|
|
returnValueForMissingStub: null,
|
|
);
|
|
|
|
@override
|
|
void notifyListeners() => super.noSuchMethod(
|
|
Invocation.method(#notifyListeners, []),
|
|
returnValueForMissingStub: null,
|
|
);
|
|
}
|
|
|
|
/// A class which mocks [WgerBaseProvider].
|
|
///
|
|
/// See the documentation for Mockito's code generation for more information.
|
|
class MockWgerBaseProvider extends _i1.Mock implements _i2.WgerBaseProvider {
|
|
MockWgerBaseProvider() {
|
|
_i1.throwOnMissingStub(this);
|
|
}
|
|
|
|
@override
|
|
_i9.AuthProvider get auth =>
|
|
(super.noSuchMethod(
|
|
Invocation.getter(#auth),
|
|
returnValue: _FakeAuthProvider_7(this, Invocation.getter(#auth)),
|
|
)
|
|
as _i9.AuthProvider);
|
|
|
|
@override
|
|
_i10.Client get client =>
|
|
(super.noSuchMethod(
|
|
Invocation.getter(#client),
|
|
returnValue: _FakeClient_8(this, Invocation.getter(#client)),
|
|
)
|
|
as _i10.Client);
|
|
|
|
@override
|
|
set auth(_i9.AuthProvider? _auth) => super.noSuchMethod(
|
|
Invocation.setter(#auth, _auth),
|
|
returnValueForMissingStub: null,
|
|
);
|
|
|
|
@override
|
|
set client(_i10.Client? _client) => super.noSuchMethod(
|
|
Invocation.setter(#client, _client),
|
|
returnValueForMissingStub: null,
|
|
);
|
|
|
|
@override
|
|
Map<String, String> getDefaultHeaders({bool? includeAuth = false}) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(#getDefaultHeaders, [], {
|
|
#includeAuth: includeAuth,
|
|
}),
|
|
returnValue: <String, String>{},
|
|
)
|
|
as Map<String, String>);
|
|
|
|
@override
|
|
Uri makeUrl(
|
|
String? path, {
|
|
int? id,
|
|
String? objectMethod,
|
|
Map<String, dynamic>? query,
|
|
}) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#makeUrl,
|
|
[path],
|
|
{#id: id, #objectMethod: objectMethod, #query: query},
|
|
),
|
|
returnValue: _FakeUri_9(
|
|
this,
|
|
Invocation.method(
|
|
#makeUrl,
|
|
[path],
|
|
{#id: id, #objectMethod: objectMethod, #query: query},
|
|
),
|
|
),
|
|
)
|
|
as Uri);
|
|
|
|
@override
|
|
_i12.Future<dynamic> fetch(Uri? uri) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(#fetch, [uri]),
|
|
returnValue: _i12.Future<dynamic>.value(),
|
|
)
|
|
as _i12.Future<dynamic>);
|
|
|
|
@override
|
|
_i12.Future<List<dynamic>> fetchPaginated(Uri? uri) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(#fetchPaginated, [uri]),
|
|
returnValue: _i12.Future<List<dynamic>>.value(<dynamic>[]),
|
|
)
|
|
as _i12.Future<List<dynamic>>);
|
|
|
|
@override
|
|
_i12.Future<Map<String, dynamic>> post(
|
|
Map<String, dynamic>? data,
|
|
Uri? uri,
|
|
) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(#post, [data, uri]),
|
|
returnValue: _i12.Future<Map<String, dynamic>>.value(
|
|
<String, dynamic>{},
|
|
),
|
|
)
|
|
as _i12.Future<Map<String, dynamic>>);
|
|
|
|
@override
|
|
_i12.Future<Map<String, dynamic>> patch(
|
|
Map<String, dynamic>? data,
|
|
Uri? uri,
|
|
) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(#patch, [data, uri]),
|
|
returnValue: _i12.Future<Map<String, dynamic>>.value(
|
|
<String, dynamic>{},
|
|
),
|
|
)
|
|
as _i12.Future<Map<String, dynamic>>);
|
|
|
|
@override
|
|
_i12.Future<_i10.Response> deleteRequest(String? url, int? id) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(#deleteRequest, [url, id]),
|
|
returnValue: _i12.Future<_i10.Response>.value(
|
|
_FakeResponse_10(
|
|
this,
|
|
Invocation.method(#deleteRequest, [url, id]),
|
|
),
|
|
),
|
|
)
|
|
as _i12.Future<_i10.Response>);
|
|
}
|
|
|
|
/// A class which mocks [SharedPreferencesAsync].
|
|
///
|
|
/// See the documentation for Mockito's code generation for more information.
|
|
// ignore: must_be_immutable
|
|
class MockSharedPreferencesAsync extends _i1.Mock implements _i8.SharedPreferencesAsync {
|
|
MockSharedPreferencesAsync() {
|
|
_i1.throwOnMissingStub(this);
|
|
}
|
|
|
|
@override
|
|
_i12.Future<Set<String>> getKeys({Set<String>? allowList}) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(#getKeys, [], {#allowList: allowList}),
|
|
returnValue: _i12.Future<Set<String>>.value(<String>{}),
|
|
)
|
|
as _i12.Future<Set<String>>);
|
|
|
|
@override
|
|
_i12.Future<Map<String, Object?>> getAll({Set<String>? allowList}) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(#getAll, [], {#allowList: allowList}),
|
|
returnValue: _i12.Future<Map<String, Object?>>.value(
|
|
<String, Object?>{},
|
|
),
|
|
)
|
|
as _i12.Future<Map<String, Object?>>);
|
|
|
|
@override
|
|
_i12.Future<bool?> getBool(String? key) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(#getBool, [key]),
|
|
returnValue: _i12.Future<bool?>.value(),
|
|
)
|
|
as _i12.Future<bool?>);
|
|
|
|
@override
|
|
_i12.Future<int?> getInt(String? key) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(#getInt, [key]),
|
|
returnValue: _i12.Future<int?>.value(),
|
|
)
|
|
as _i12.Future<int?>);
|
|
|
|
@override
|
|
_i12.Future<double?> getDouble(String? key) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(#getDouble, [key]),
|
|
returnValue: _i12.Future<double?>.value(),
|
|
)
|
|
as _i12.Future<double?>);
|
|
|
|
@override
|
|
_i12.Future<String?> getString(String? key) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(#getString, [key]),
|
|
returnValue: _i12.Future<String?>.value(),
|
|
)
|
|
as _i12.Future<String?>);
|
|
|
|
@override
|
|
_i12.Future<List<String>?> getStringList(String? key) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(#getStringList, [key]),
|
|
returnValue: _i12.Future<List<String>?>.value(),
|
|
)
|
|
as _i12.Future<List<String>?>);
|
|
|
|
@override
|
|
_i12.Future<bool> containsKey(String? key) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(#containsKey, [key]),
|
|
returnValue: _i12.Future<bool>.value(false),
|
|
)
|
|
as _i12.Future<bool>);
|
|
|
|
@override
|
|
_i12.Future<void> setBool(String? key, bool? value) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(#setBool, [key, value]),
|
|
returnValue: _i12.Future<void>.value(),
|
|
returnValueForMissingStub: _i12.Future<void>.value(),
|
|
)
|
|
as _i12.Future<void>);
|
|
|
|
@override
|
|
_i12.Future<void> setInt(String? key, int? value) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(#setInt, [key, value]),
|
|
returnValue: _i12.Future<void>.value(),
|
|
returnValueForMissingStub: _i12.Future<void>.value(),
|
|
)
|
|
as _i12.Future<void>);
|
|
|
|
@override
|
|
_i12.Future<void> setDouble(String? key, double? value) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(#setDouble, [key, value]),
|
|
returnValue: _i12.Future<void>.value(),
|
|
returnValueForMissingStub: _i12.Future<void>.value(),
|
|
)
|
|
as _i12.Future<void>);
|
|
|
|
@override
|
|
_i12.Future<void> setString(String? key, String? value) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(#setString, [key, value]),
|
|
returnValue: _i12.Future<void>.value(),
|
|
returnValueForMissingStub: _i12.Future<void>.value(),
|
|
)
|
|
as _i12.Future<void>);
|
|
|
|
@override
|
|
_i12.Future<void> setStringList(String? key, List<String>? value) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(#setStringList, [key, value]),
|
|
returnValue: _i12.Future<void>.value(),
|
|
returnValueForMissingStub: _i12.Future<void>.value(),
|
|
)
|
|
as _i12.Future<void>);
|
|
|
|
@override
|
|
_i12.Future<void> remove(String? key) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(#remove, [key]),
|
|
returnValue: _i12.Future<void>.value(),
|
|
returnValueForMissingStub: _i12.Future<void>.value(),
|
|
)
|
|
as _i12.Future<void>);
|
|
|
|
@override
|
|
_i12.Future<void> clear({Set<String>? allowList}) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(#clear, [], {#allowList: allowList}),
|
|
returnValue: _i12.Future<void>.value(),
|
|
returnValueForMissingStub: _i12.Future<void>.value(),
|
|
)
|
|
as _i12.Future<void>);
|
|
}
|