1155 lines
33 KiB
Dart
1155 lines
33 KiB
Dart
// Mocks generated by Mockito 5.4.4 from annotations
|
|
// in yimaru_app/test/helpers/test_helpers.dart.
|
|
// Do not manually edit this file.
|
|
|
|
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
|
import 'dart:async' as _i8;
|
|
import 'dart:ui' as _i9;
|
|
|
|
import 'package:dio/dio.dart' as _i3;
|
|
import 'package:flutter/material.dart' as _i7;
|
|
import 'package:mockito/mockito.dart' as _i1;
|
|
import 'package:mockito/src/dummies.dart' as _i6;
|
|
import 'package:stacked_services/stacked_services.dart' as _i5;
|
|
import 'package:yimaru_app/models/assessment.dart' as _i12;
|
|
import 'package:yimaru_app/models/user_model.dart' as _i2;
|
|
import 'package:yimaru_app/services/api_service.dart' as _i11;
|
|
import 'package:yimaru_app/services/authentication_service.dart' as _i10;
|
|
import 'package:yimaru_app/services/dio_service.dart' as _i13;
|
|
import 'package:yimaru_app/services/secure_storage_service.dart' as _i4;
|
|
import 'package:yimaru_app/services/status_checker_service.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: prefer_const_constructors
|
|
// ignore_for_file: unnecessary_parenthesis
|
|
// ignore_for_file: camel_case_types
|
|
// ignore_for_file: subtype_of_sealed_class
|
|
|
|
class _FakeUserModel_0 extends _i1.SmartFake implements _i2.UserModel {
|
|
_FakeUserModel_0(
|
|
Object parent,
|
|
Invocation parentInvocation,
|
|
) : super(
|
|
parent,
|
|
parentInvocation,
|
|
);
|
|
}
|
|
|
|
class _FakeDio_1 extends _i1.SmartFake implements _i3.Dio {
|
|
_FakeDio_1(
|
|
Object parent,
|
|
Invocation parentInvocation,
|
|
) : super(
|
|
parent,
|
|
parentInvocation,
|
|
);
|
|
}
|
|
|
|
class _FakeSecureStorageService_2 extends _i1.SmartFake
|
|
implements _i4.SecureStorageService {
|
|
_FakeSecureStorageService_2(
|
|
Object parent,
|
|
Invocation parentInvocation,
|
|
) : super(
|
|
parent,
|
|
parentInvocation,
|
|
);
|
|
}
|
|
|
|
/// A class which mocks [NavigationService].
|
|
///
|
|
/// See the documentation for Mockito's code generation for more information.
|
|
class MockNavigationService extends _i1.Mock implements _i5.NavigationService {
|
|
@override
|
|
String get previousRoute => (super.noSuchMethod(
|
|
Invocation.getter(#previousRoute),
|
|
returnValue: _i6.dummyValue<String>(
|
|
this,
|
|
Invocation.getter(#previousRoute),
|
|
),
|
|
returnValueForMissingStub: _i6.dummyValue<String>(
|
|
this,
|
|
Invocation.getter(#previousRoute),
|
|
),
|
|
) as String);
|
|
|
|
@override
|
|
String get currentRoute => (super.noSuchMethod(
|
|
Invocation.getter(#currentRoute),
|
|
returnValue: _i6.dummyValue<String>(
|
|
this,
|
|
Invocation.getter(#currentRoute),
|
|
),
|
|
returnValueForMissingStub: _i6.dummyValue<String>(
|
|
this,
|
|
Invocation.getter(#currentRoute),
|
|
),
|
|
) as String);
|
|
|
|
@override
|
|
_i7.GlobalKey<_i7.NavigatorState>? nestedNavigationKey(int? index) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#nestedNavigationKey,
|
|
[index],
|
|
),
|
|
returnValueForMissingStub: null,
|
|
) as _i7.GlobalKey<_i7.NavigatorState>?);
|
|
|
|
@override
|
|
void config({
|
|
bool? enableLog,
|
|
bool? defaultPopGesture,
|
|
bool? defaultOpaqueRoute,
|
|
Duration? defaultDurationTransition,
|
|
bool? defaultGlobalState,
|
|
_i5.Transition? defaultTransitionStyle,
|
|
String? defaultTransition,
|
|
}) =>
|
|
super.noSuchMethod(
|
|
Invocation.method(
|
|
#config,
|
|
[],
|
|
{
|
|
#enableLog: enableLog,
|
|
#defaultPopGesture: defaultPopGesture,
|
|
#defaultOpaqueRoute: defaultOpaqueRoute,
|
|
#defaultDurationTransition: defaultDurationTransition,
|
|
#defaultGlobalState: defaultGlobalState,
|
|
#defaultTransitionStyle: defaultTransitionStyle,
|
|
#defaultTransition: defaultTransition,
|
|
},
|
|
),
|
|
returnValueForMissingStub: null,
|
|
);
|
|
|
|
@override
|
|
_i8.Future<T?>? navigateWithTransition<T>(
|
|
_i7.Widget? page, {
|
|
bool? opaque,
|
|
String? transition = r'',
|
|
Duration? duration,
|
|
bool? popGesture,
|
|
int? id,
|
|
_i7.Curve? curve,
|
|
bool? fullscreenDialog = false,
|
|
bool? preventDuplicates = true,
|
|
_i5.Transition? transitionClass,
|
|
_i5.Transition? transitionStyle,
|
|
String? routeName,
|
|
}) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#navigateWithTransition,
|
|
[page],
|
|
{
|
|
#opaque: opaque,
|
|
#transition: transition,
|
|
#duration: duration,
|
|
#popGesture: popGesture,
|
|
#id: id,
|
|
#curve: curve,
|
|
#fullscreenDialog: fullscreenDialog,
|
|
#preventDuplicates: preventDuplicates,
|
|
#transitionClass: transitionClass,
|
|
#transitionStyle: transitionStyle,
|
|
#routeName: routeName,
|
|
},
|
|
),
|
|
returnValueForMissingStub: null,
|
|
) as _i8.Future<T?>?);
|
|
|
|
@override
|
|
_i8.Future<T?>? replaceWithTransition<T>(
|
|
_i7.Widget? page, {
|
|
bool? opaque,
|
|
String? transition = r'',
|
|
Duration? duration,
|
|
bool? popGesture,
|
|
int? id,
|
|
_i7.Curve? curve,
|
|
bool? fullscreenDialog = false,
|
|
bool? preventDuplicates = true,
|
|
_i5.Transition? transitionClass,
|
|
_i5.Transition? transitionStyle,
|
|
String? routeName,
|
|
}) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#replaceWithTransition,
|
|
[page],
|
|
{
|
|
#opaque: opaque,
|
|
#transition: transition,
|
|
#duration: duration,
|
|
#popGesture: popGesture,
|
|
#id: id,
|
|
#curve: curve,
|
|
#fullscreenDialog: fullscreenDialog,
|
|
#preventDuplicates: preventDuplicates,
|
|
#transitionClass: transitionClass,
|
|
#transitionStyle: transitionStyle,
|
|
#routeName: routeName,
|
|
},
|
|
),
|
|
returnValueForMissingStub: null,
|
|
) as _i8.Future<T?>?);
|
|
|
|
@override
|
|
bool back<T>({
|
|
dynamic result,
|
|
int? id,
|
|
}) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#back,
|
|
[],
|
|
{
|
|
#result: result,
|
|
#id: id,
|
|
},
|
|
),
|
|
returnValue: false,
|
|
returnValueForMissingStub: false,
|
|
) as bool);
|
|
|
|
@override
|
|
void popUntil(
|
|
_i7.RoutePredicate? predicate, {
|
|
int? id,
|
|
}) =>
|
|
super.noSuchMethod(
|
|
Invocation.method(
|
|
#popUntil,
|
|
[predicate],
|
|
{#id: id},
|
|
),
|
|
returnValueForMissingStub: null,
|
|
);
|
|
|
|
@override
|
|
void popRepeated(int? popTimes) => super.noSuchMethod(
|
|
Invocation.method(
|
|
#popRepeated,
|
|
[popTimes],
|
|
),
|
|
returnValueForMissingStub: null,
|
|
);
|
|
|
|
@override
|
|
_i8.Future<T?>? navigateTo<T>(
|
|
String? routeName, {
|
|
dynamic arguments,
|
|
int? id,
|
|
bool? preventDuplicates = true,
|
|
Map<String, String>? parameters,
|
|
_i7.RouteTransitionsBuilder? transition,
|
|
}) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#navigateTo,
|
|
[routeName],
|
|
{
|
|
#arguments: arguments,
|
|
#id: id,
|
|
#preventDuplicates: preventDuplicates,
|
|
#parameters: parameters,
|
|
#transition: transition,
|
|
},
|
|
),
|
|
returnValueForMissingStub: null,
|
|
) as _i8.Future<T?>?);
|
|
|
|
@override
|
|
_i8.Future<T?>? navigateToView<T>(
|
|
_i7.Widget? view, {
|
|
dynamic arguments,
|
|
int? id,
|
|
bool? opaque,
|
|
_i7.Curve? curve,
|
|
Duration? duration,
|
|
bool? fullscreenDialog = false,
|
|
bool? popGesture,
|
|
bool? preventDuplicates = true,
|
|
_i5.Transition? transition,
|
|
_i5.Transition? transitionStyle,
|
|
}) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#navigateToView,
|
|
[view],
|
|
{
|
|
#arguments: arguments,
|
|
#id: id,
|
|
#opaque: opaque,
|
|
#curve: curve,
|
|
#duration: duration,
|
|
#fullscreenDialog: fullscreenDialog,
|
|
#popGesture: popGesture,
|
|
#preventDuplicates: preventDuplicates,
|
|
#transition: transition,
|
|
#transitionStyle: transitionStyle,
|
|
},
|
|
),
|
|
returnValueForMissingStub: null,
|
|
) as _i8.Future<T?>?);
|
|
|
|
@override
|
|
_i8.Future<T?>? replaceWith<T>(
|
|
String? routeName, {
|
|
dynamic arguments,
|
|
int? id,
|
|
bool? preventDuplicates = true,
|
|
Map<String, String>? parameters,
|
|
_i7.RouteTransitionsBuilder? transition,
|
|
}) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#replaceWith,
|
|
[routeName],
|
|
{
|
|
#arguments: arguments,
|
|
#id: id,
|
|
#preventDuplicates: preventDuplicates,
|
|
#parameters: parameters,
|
|
#transition: transition,
|
|
},
|
|
),
|
|
returnValueForMissingStub: null,
|
|
) as _i8.Future<T?>?);
|
|
|
|
@override
|
|
_i8.Future<T?>? clearStackAndShow<T>(
|
|
String? routeName, {
|
|
dynamic arguments,
|
|
int? id,
|
|
Map<String, String>? parameters,
|
|
}) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#clearStackAndShow,
|
|
[routeName],
|
|
{
|
|
#arguments: arguments,
|
|
#id: id,
|
|
#parameters: parameters,
|
|
},
|
|
),
|
|
returnValueForMissingStub: null,
|
|
) as _i8.Future<T?>?);
|
|
|
|
@override
|
|
_i8.Future<T?>? clearStackAndShowView<T>(
|
|
_i7.Widget? view, {
|
|
dynamic arguments,
|
|
int? id,
|
|
}) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#clearStackAndShowView,
|
|
[view],
|
|
{
|
|
#arguments: arguments,
|
|
#id: id,
|
|
},
|
|
),
|
|
returnValueForMissingStub: null,
|
|
) as _i8.Future<T?>?);
|
|
|
|
@override
|
|
_i8.Future<T?>? clearTillFirstAndShow<T>(
|
|
String? routeName, {
|
|
dynamic arguments,
|
|
int? id,
|
|
bool? preventDuplicates = true,
|
|
Map<String, String>? parameters,
|
|
}) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#clearTillFirstAndShow,
|
|
[routeName],
|
|
{
|
|
#arguments: arguments,
|
|
#id: id,
|
|
#preventDuplicates: preventDuplicates,
|
|
#parameters: parameters,
|
|
},
|
|
),
|
|
returnValueForMissingStub: null,
|
|
) as _i8.Future<T?>?);
|
|
|
|
@override
|
|
_i8.Future<T?>? clearTillFirstAndShowView<T>(
|
|
_i7.Widget? view, {
|
|
dynamic arguments,
|
|
int? id,
|
|
}) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#clearTillFirstAndShowView,
|
|
[view],
|
|
{
|
|
#arguments: arguments,
|
|
#id: id,
|
|
},
|
|
),
|
|
returnValueForMissingStub: null,
|
|
) as _i8.Future<T?>?);
|
|
|
|
@override
|
|
_i8.Future<T?>? pushNamedAndRemoveUntil<T>(
|
|
String? routeName, {
|
|
_i7.RoutePredicate? predicate,
|
|
dynamic arguments,
|
|
int? id,
|
|
}) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#pushNamedAndRemoveUntil,
|
|
[routeName],
|
|
{
|
|
#predicate: predicate,
|
|
#arguments: arguments,
|
|
#id: id,
|
|
},
|
|
),
|
|
returnValueForMissingStub: null,
|
|
) as _i8.Future<T?>?);
|
|
}
|
|
|
|
/// A class which mocks [BottomSheetService].
|
|
///
|
|
/// See the documentation for Mockito's code generation for more information.
|
|
class MockBottomSheetService extends _i1.Mock
|
|
implements _i5.BottomSheetService {
|
|
@override
|
|
void setCustomSheetBuilders(Map<dynamic, _i5.SheetBuilder>? builders) =>
|
|
super.noSuchMethod(
|
|
Invocation.method(
|
|
#setCustomSheetBuilders,
|
|
[builders],
|
|
),
|
|
returnValueForMissingStub: null,
|
|
);
|
|
|
|
@override
|
|
_i8.Future<_i5.SheetResponse<dynamic>?> showBottomSheet({
|
|
required String? title,
|
|
String? description,
|
|
String? confirmButtonTitle = r'Ok',
|
|
String? cancelButtonTitle,
|
|
bool? enableDrag = true,
|
|
bool? barrierDismissible = true,
|
|
bool? isScrollControlled = false,
|
|
Duration? exitBottomSheetDuration,
|
|
Duration? enterBottomSheetDuration,
|
|
bool? ignoreSafeArea,
|
|
bool? useRootNavigator = false,
|
|
double? elevation = 1.0,
|
|
}) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#showBottomSheet,
|
|
[],
|
|
{
|
|
#title: title,
|
|
#description: description,
|
|
#confirmButtonTitle: confirmButtonTitle,
|
|
#cancelButtonTitle: cancelButtonTitle,
|
|
#enableDrag: enableDrag,
|
|
#barrierDismissible: barrierDismissible,
|
|
#isScrollControlled: isScrollControlled,
|
|
#exitBottomSheetDuration: exitBottomSheetDuration,
|
|
#enterBottomSheetDuration: enterBottomSheetDuration,
|
|
#ignoreSafeArea: ignoreSafeArea,
|
|
#useRootNavigator: useRootNavigator,
|
|
#elevation: elevation,
|
|
},
|
|
),
|
|
returnValue: _i8.Future<_i5.SheetResponse<dynamic>?>.value(),
|
|
returnValueForMissingStub:
|
|
_i8.Future<_i5.SheetResponse<dynamic>?>.value(),
|
|
) as _i8.Future<_i5.SheetResponse<dynamic>?>);
|
|
|
|
@override
|
|
_i8.Future<_i5.SheetResponse<T>?> showCustomSheet<T, R>({
|
|
dynamic variant,
|
|
String? title,
|
|
String? description,
|
|
bool? hasImage = false,
|
|
String? imageUrl,
|
|
bool? showIconInMainButton = false,
|
|
String? mainButtonTitle,
|
|
bool? showIconInSecondaryButton = false,
|
|
String? secondaryButtonTitle,
|
|
bool? showIconInAdditionalButton = false,
|
|
String? additionalButtonTitle,
|
|
bool? takesInput = false,
|
|
_i9.Color? barrierColor = const _i9.Color(2315255808),
|
|
double? elevation = 1.0,
|
|
bool? barrierDismissible = true,
|
|
bool? isScrollControlled = false,
|
|
String? barrierLabel = r'',
|
|
dynamic customData,
|
|
R? data,
|
|
bool? enableDrag = true,
|
|
Duration? exitBottomSheetDuration,
|
|
Duration? enterBottomSheetDuration,
|
|
bool? ignoreSafeArea,
|
|
bool? useRootNavigator = false,
|
|
}) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#showCustomSheet,
|
|
[],
|
|
{
|
|
#variant: variant,
|
|
#title: title,
|
|
#description: description,
|
|
#hasImage: hasImage,
|
|
#imageUrl: imageUrl,
|
|
#showIconInMainButton: showIconInMainButton,
|
|
#mainButtonTitle: mainButtonTitle,
|
|
#showIconInSecondaryButton: showIconInSecondaryButton,
|
|
#secondaryButtonTitle: secondaryButtonTitle,
|
|
#showIconInAdditionalButton: showIconInAdditionalButton,
|
|
#additionalButtonTitle: additionalButtonTitle,
|
|
#takesInput: takesInput,
|
|
#barrierColor: barrierColor,
|
|
#elevation: elevation,
|
|
#barrierDismissible: barrierDismissible,
|
|
#isScrollControlled: isScrollControlled,
|
|
#barrierLabel: barrierLabel,
|
|
#customData: customData,
|
|
#data: data,
|
|
#enableDrag: enableDrag,
|
|
#exitBottomSheetDuration: exitBottomSheetDuration,
|
|
#enterBottomSheetDuration: enterBottomSheetDuration,
|
|
#ignoreSafeArea: ignoreSafeArea,
|
|
#useRootNavigator: useRootNavigator,
|
|
},
|
|
),
|
|
returnValue: _i8.Future<_i5.SheetResponse<T>?>.value(),
|
|
returnValueForMissingStub: _i8.Future<_i5.SheetResponse<T>?>.value(),
|
|
) as _i8.Future<_i5.SheetResponse<T>?>);
|
|
|
|
@override
|
|
void completeSheet(_i5.SheetResponse<dynamic>? response) =>
|
|
super.noSuchMethod(
|
|
Invocation.method(
|
|
#completeSheet,
|
|
[response],
|
|
),
|
|
returnValueForMissingStub: null,
|
|
);
|
|
}
|
|
|
|
/// A class which mocks [DialogService].
|
|
///
|
|
/// See the documentation for Mockito's code generation for more information.
|
|
class MockDialogService extends _i1.Mock implements _i5.DialogService {
|
|
@override
|
|
void registerCustomDialogBuilders(
|
|
Map<dynamic, _i5.DialogBuilder>? builders) =>
|
|
super.noSuchMethod(
|
|
Invocation.method(
|
|
#registerCustomDialogBuilders,
|
|
[builders],
|
|
),
|
|
returnValueForMissingStub: null,
|
|
);
|
|
|
|
@override
|
|
void registerCustomDialogBuilder({
|
|
required dynamic variant,
|
|
required _i7.Widget Function(
|
|
_i7.BuildContext,
|
|
_i5.DialogRequest<dynamic>,
|
|
dynamic Function(_i5.DialogResponse<dynamic>),
|
|
)? builder,
|
|
}) =>
|
|
super.noSuchMethod(
|
|
Invocation.method(
|
|
#registerCustomDialogBuilder,
|
|
[],
|
|
{
|
|
#variant: variant,
|
|
#builder: builder,
|
|
},
|
|
),
|
|
returnValueForMissingStub: null,
|
|
);
|
|
|
|
@override
|
|
_i8.Future<_i5.DialogResponse<dynamic>?> showDialog({
|
|
String? title,
|
|
String? description,
|
|
String? cancelTitle,
|
|
_i9.Color? cancelTitleColor,
|
|
String? buttonTitle = r'Ok',
|
|
_i9.Color? buttonTitleColor,
|
|
bool? barrierDismissible = false,
|
|
_i7.RouteSettings? routeSettings,
|
|
_i7.GlobalKey<_i7.NavigatorState>? navigatorKey,
|
|
_i5.DialogPlatform? dialogPlatform,
|
|
}) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#showDialog,
|
|
[],
|
|
{
|
|
#title: title,
|
|
#description: description,
|
|
#cancelTitle: cancelTitle,
|
|
#cancelTitleColor: cancelTitleColor,
|
|
#buttonTitle: buttonTitle,
|
|
#buttonTitleColor: buttonTitleColor,
|
|
#barrierDismissible: barrierDismissible,
|
|
#routeSettings: routeSettings,
|
|
#navigatorKey: navigatorKey,
|
|
#dialogPlatform: dialogPlatform,
|
|
},
|
|
),
|
|
returnValue: _i8.Future<_i5.DialogResponse<dynamic>?>.value(),
|
|
returnValueForMissingStub:
|
|
_i8.Future<_i5.DialogResponse<dynamic>?>.value(),
|
|
) as _i8.Future<_i5.DialogResponse<dynamic>?>);
|
|
|
|
@override
|
|
_i8.Future<_i5.DialogResponse<T>?> showCustomDialog<T, R>({
|
|
dynamic variant,
|
|
String? title,
|
|
String? description,
|
|
bool? hasImage = false,
|
|
String? imageUrl,
|
|
bool? showIconInMainButton = false,
|
|
String? mainButtonTitle,
|
|
bool? showIconInSecondaryButton = false,
|
|
String? secondaryButtonTitle,
|
|
bool? showIconInAdditionalButton = false,
|
|
String? additionalButtonTitle,
|
|
bool? takesInput = false,
|
|
_i9.Color? barrierColor = const _i9.Color(2315255808),
|
|
bool? barrierDismissible = false,
|
|
String? barrierLabel = r'',
|
|
bool? useSafeArea = true,
|
|
_i7.RouteSettings? routeSettings,
|
|
_i7.GlobalKey<_i7.NavigatorState>? navigatorKey,
|
|
_i7.RouteTransitionsBuilder? transitionBuilder,
|
|
dynamic customData,
|
|
R? data,
|
|
}) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#showCustomDialog,
|
|
[],
|
|
{
|
|
#variant: variant,
|
|
#title: title,
|
|
#description: description,
|
|
#hasImage: hasImage,
|
|
#imageUrl: imageUrl,
|
|
#showIconInMainButton: showIconInMainButton,
|
|
#mainButtonTitle: mainButtonTitle,
|
|
#showIconInSecondaryButton: showIconInSecondaryButton,
|
|
#secondaryButtonTitle: secondaryButtonTitle,
|
|
#showIconInAdditionalButton: showIconInAdditionalButton,
|
|
#additionalButtonTitle: additionalButtonTitle,
|
|
#takesInput: takesInput,
|
|
#barrierColor: barrierColor,
|
|
#barrierDismissible: barrierDismissible,
|
|
#barrierLabel: barrierLabel,
|
|
#useSafeArea: useSafeArea,
|
|
#routeSettings: routeSettings,
|
|
#navigatorKey: navigatorKey,
|
|
#transitionBuilder: transitionBuilder,
|
|
#customData: customData,
|
|
#data: data,
|
|
},
|
|
),
|
|
returnValue: _i8.Future<_i5.DialogResponse<T>?>.value(),
|
|
returnValueForMissingStub: _i8.Future<_i5.DialogResponse<T>?>.value(),
|
|
) as _i8.Future<_i5.DialogResponse<T>?>);
|
|
|
|
@override
|
|
_i8.Future<_i5.DialogResponse<dynamic>?> showConfirmationDialog({
|
|
String? title,
|
|
String? description,
|
|
String? cancelTitle = r'Cancel',
|
|
_i9.Color? cancelTitleColor,
|
|
String? confirmationTitle = r'Ok',
|
|
_i9.Color? confirmationTitleColor,
|
|
bool? barrierDismissible = false,
|
|
_i7.RouteSettings? routeSettings,
|
|
_i5.DialogPlatform? dialogPlatform,
|
|
}) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#showConfirmationDialog,
|
|
[],
|
|
{
|
|
#title: title,
|
|
#description: description,
|
|
#cancelTitle: cancelTitle,
|
|
#cancelTitleColor: cancelTitleColor,
|
|
#confirmationTitle: confirmationTitle,
|
|
#confirmationTitleColor: confirmationTitleColor,
|
|
#barrierDismissible: barrierDismissible,
|
|
#routeSettings: routeSettings,
|
|
#dialogPlatform: dialogPlatform,
|
|
},
|
|
),
|
|
returnValue: _i8.Future<_i5.DialogResponse<dynamic>?>.value(),
|
|
returnValueForMissingStub:
|
|
_i8.Future<_i5.DialogResponse<dynamic>?>.value(),
|
|
) as _i8.Future<_i5.DialogResponse<dynamic>?>);
|
|
|
|
@override
|
|
void completeDialog(_i5.DialogResponse<dynamic>? response) =>
|
|
super.noSuchMethod(
|
|
Invocation.method(
|
|
#completeDialog,
|
|
[response],
|
|
),
|
|
returnValueForMissingStub: null,
|
|
);
|
|
}
|
|
|
|
/// A class which mocks [AuthenticationService].
|
|
///
|
|
/// See the documentation for Mockito's code generation for more information.
|
|
class MockAuthenticationService extends _i1.Mock
|
|
implements _i10.AuthenticationService {
|
|
@override
|
|
_i8.Future<bool> userLoggedIn() => (super.noSuchMethod(
|
|
Invocation.method(
|
|
#userLoggedIn,
|
|
[],
|
|
),
|
|
returnValue: _i8.Future<bool>.value(false),
|
|
returnValueForMissingStub: _i8.Future<bool>.value(false),
|
|
) as _i8.Future<bool>);
|
|
|
|
@override
|
|
_i8.Future<String?> getAccessToken() => (super.noSuchMethod(
|
|
Invocation.method(
|
|
#getAccessToken,
|
|
[],
|
|
),
|
|
returnValue: _i8.Future<String?>.value(),
|
|
returnValueForMissingStub: _i8.Future<String?>.value(),
|
|
) as _i8.Future<String?>);
|
|
|
|
@override
|
|
_i8.Future<String?> getRefreshToken() => (super.noSuchMethod(
|
|
Invocation.method(
|
|
#getRefreshToken,
|
|
[],
|
|
),
|
|
returnValue: _i8.Future<String?>.value(),
|
|
returnValueForMissingStub: _i8.Future<String?>.value(),
|
|
) as _i8.Future<String?>);
|
|
|
|
@override
|
|
_i8.Future<int?> getUserId() => (super.noSuchMethod(
|
|
Invocation.method(
|
|
#getUserId,
|
|
[],
|
|
),
|
|
returnValue: _i8.Future<int?>.value(),
|
|
returnValueForMissingStub: _i8.Future<int?>.value(),
|
|
) as _i8.Future<int?>);
|
|
|
|
@override
|
|
_i8.Future<void> saveTokens({
|
|
required String? access,
|
|
required String? refresh,
|
|
}) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#saveTokens,
|
|
[],
|
|
{
|
|
#access: access,
|
|
#refresh: refresh,
|
|
},
|
|
),
|
|
returnValue: _i8.Future<void>.value(),
|
|
returnValueForMissingStub: _i8.Future<void>.value(),
|
|
) as _i8.Future<void>);
|
|
|
|
@override
|
|
_i8.Future<void> saveUserData(Map<String, dynamic>? data) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#saveUserData,
|
|
[data],
|
|
),
|
|
returnValue: _i8.Future<void>.value(),
|
|
returnValueForMissingStub: _i8.Future<void>.value(),
|
|
) as _i8.Future<void>);
|
|
|
|
@override
|
|
_i8.Future<void> saveProfileCompleted(bool? value) => (super.noSuchMethod(
|
|
Invocation.method(
|
|
#saveProfileCompleted,
|
|
[value],
|
|
),
|
|
returnValue: _i8.Future<void>.value(),
|
|
returnValueForMissingStub: _i8.Future<void>.value(),
|
|
) as _i8.Future<void>);
|
|
|
|
@override
|
|
_i8.Future<bool> isFirstTimeInstall() => (super.noSuchMethod(
|
|
Invocation.method(
|
|
#isFirstTimeInstall,
|
|
[],
|
|
),
|
|
returnValue: _i8.Future<bool>.value(false),
|
|
returnValueForMissingStub: _i8.Future<bool>.value(false),
|
|
) as _i8.Future<bool>);
|
|
|
|
@override
|
|
_i8.Future<void> setFirstTimeInstall(bool? value) => (super.noSuchMethod(
|
|
Invocation.method(
|
|
#setFirstTimeInstall,
|
|
[value],
|
|
),
|
|
returnValue: _i8.Future<void>.value(),
|
|
returnValueForMissingStub: _i8.Future<void>.value(),
|
|
) as _i8.Future<void>);
|
|
|
|
@override
|
|
_i8.Future<_i2.UserModel> getUser() => (super.noSuchMethod(
|
|
Invocation.method(
|
|
#getUser,
|
|
[],
|
|
),
|
|
returnValue: _i8.Future<_i2.UserModel>.value(_FakeUserModel_0(
|
|
this,
|
|
Invocation.method(
|
|
#getUser,
|
|
[],
|
|
),
|
|
)),
|
|
returnValueForMissingStub:
|
|
_i8.Future<_i2.UserModel>.value(_FakeUserModel_0(
|
|
this,
|
|
Invocation.method(
|
|
#getUser,
|
|
[],
|
|
),
|
|
)),
|
|
) as _i8.Future<_i2.UserModel>);
|
|
|
|
@override
|
|
_i8.Future<void> logOut() => (super.noSuchMethod(
|
|
Invocation.method(
|
|
#logOut,
|
|
[],
|
|
),
|
|
returnValue: _i8.Future<void>.value(),
|
|
returnValueForMissingStub: _i8.Future<void>.value(),
|
|
) as _i8.Future<void>);
|
|
}
|
|
|
|
/// A class which mocks [ApiService].
|
|
///
|
|
/// See the documentation for Mockito's code generation for more information.
|
|
class MockApiService extends _i1.Mock implements _i11.ApiService {
|
|
@override
|
|
_i8.Future<Map<String, dynamic>> register(Map<String, dynamic>? data) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#register,
|
|
[data],
|
|
),
|
|
returnValue:
|
|
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
|
returnValueForMissingStub:
|
|
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
|
) as _i8.Future<Map<String, dynamic>>);
|
|
|
|
@override
|
|
_i8.Future<Map<String, dynamic>> login(Map<String, dynamic>? data) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#login,
|
|
[data],
|
|
),
|
|
returnValue:
|
|
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
|
returnValueForMissingStub:
|
|
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
|
) as _i8.Future<Map<String, dynamic>>);
|
|
|
|
@override
|
|
_i8.Future<Map<String, dynamic>> verifyOtp(Map<String, dynamic>? data) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#verifyOtp,
|
|
[data],
|
|
),
|
|
returnValue:
|
|
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
|
returnValueForMissingStub:
|
|
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
|
) as _i8.Future<Map<String, dynamic>>);
|
|
|
|
@override
|
|
_i8.Future<Map<String, dynamic>> resendOtp(Map<String, dynamic>? data) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#resendOtp,
|
|
[data],
|
|
),
|
|
returnValue:
|
|
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
|
returnValueForMissingStub:
|
|
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
|
) as _i8.Future<Map<String, dynamic>>);
|
|
|
|
@override
|
|
_i8.Future<Map<String, dynamic>> getProfileStatus(_i2.UserModel? user) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#getProfileStatus,
|
|
[user],
|
|
),
|
|
returnValue:
|
|
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
|
returnValueForMissingStub:
|
|
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
|
) as _i8.Future<Map<String, dynamic>>);
|
|
|
|
@override
|
|
_i8.Future<Map<String, dynamic>> updateProfile({
|
|
required _i2.UserModel? user,
|
|
required Map<String, dynamic>? data,
|
|
}) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#updateProfile,
|
|
[],
|
|
{
|
|
#user: user,
|
|
#data: data,
|
|
},
|
|
),
|
|
returnValue:
|
|
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
|
returnValueForMissingStub:
|
|
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
|
) as _i8.Future<Map<String, dynamic>>);
|
|
|
|
@override
|
|
_i8.Future<List<_i12.Assessment>> getAssessments() => (super.noSuchMethod(
|
|
Invocation.method(
|
|
#getAssessments,
|
|
[],
|
|
),
|
|
returnValue:
|
|
_i8.Future<List<_i12.Assessment>>.value(<_i12.Assessment>[]),
|
|
returnValueForMissingStub:
|
|
_i8.Future<List<_i12.Assessment>>.value(<_i12.Assessment>[]),
|
|
) as _i8.Future<List<_i12.Assessment>>);
|
|
}
|
|
|
|
/// A class which mocks [SecureStorageService].
|
|
///
|
|
/// See the documentation for Mockito's code generation for more information.
|
|
class MockSecureStorageService extends _i1.Mock
|
|
implements _i4.SecureStorageService {
|
|
@override
|
|
_i8.Future<void> clear() => (super.noSuchMethod(
|
|
Invocation.method(
|
|
#clear,
|
|
[],
|
|
),
|
|
returnValue: _i8.Future<void>.value(),
|
|
returnValueForMissingStub: _i8.Future<void>.value(),
|
|
) as _i8.Future<void>);
|
|
|
|
@override
|
|
_i8.Future<bool?> getBool(String? key) => (super.noSuchMethod(
|
|
Invocation.method(
|
|
#getBool,
|
|
[key],
|
|
),
|
|
returnValue: _i8.Future<bool?>.value(),
|
|
returnValueForMissingStub: _i8.Future<bool?>.value(),
|
|
) as _i8.Future<bool?>);
|
|
|
|
@override
|
|
_i8.Future<String?> getString(String? key) => (super.noSuchMethod(
|
|
Invocation.method(
|
|
#getString,
|
|
[key],
|
|
),
|
|
returnValue: _i8.Future<String?>.value(),
|
|
returnValueForMissingStub: _i8.Future<String?>.value(),
|
|
) as _i8.Future<String?>);
|
|
|
|
@override
|
|
_i8.Future<int?> getInt(String? key) => (super.noSuchMethod(
|
|
Invocation.method(
|
|
#getInt,
|
|
[key],
|
|
),
|
|
returnValue: _i8.Future<int?>.value(),
|
|
returnValueForMissingStub: _i8.Future<int?>.value(),
|
|
) as _i8.Future<int?>);
|
|
|
|
@override
|
|
_i8.Future<void> setString(
|
|
String? key,
|
|
String? value,
|
|
) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#setString,
|
|
[
|
|
key,
|
|
value,
|
|
],
|
|
),
|
|
returnValue: _i8.Future<void>.value(),
|
|
returnValueForMissingStub: _i8.Future<void>.value(),
|
|
) as _i8.Future<void>);
|
|
|
|
@override
|
|
_i8.Future<void> setInt(
|
|
String? key,
|
|
int? value,
|
|
) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#setInt,
|
|
[
|
|
key,
|
|
value,
|
|
],
|
|
),
|
|
returnValue: _i8.Future<void>.value(),
|
|
returnValueForMissingStub: _i8.Future<void>.value(),
|
|
) as _i8.Future<void>);
|
|
|
|
@override
|
|
_i8.Future<void> setBool(
|
|
String? key,
|
|
bool? value,
|
|
) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#setBool,
|
|
[
|
|
key,
|
|
value,
|
|
],
|
|
),
|
|
returnValue: _i8.Future<void>.value(),
|
|
returnValueForMissingStub: _i8.Future<void>.value(),
|
|
) as _i8.Future<void>);
|
|
}
|
|
|
|
/// A class which mocks [DioService].
|
|
///
|
|
/// See the documentation for Mockito's code generation for more information.
|
|
class MockDioService extends _i1.Mock implements _i13.DioService {
|
|
@override
|
|
_i3.Dio get dio => (super.noSuchMethod(
|
|
Invocation.getter(#dio),
|
|
returnValue: _FakeDio_1(
|
|
this,
|
|
Invocation.getter(#dio),
|
|
),
|
|
returnValueForMissingStub: _FakeDio_1(
|
|
this,
|
|
Invocation.getter(#dio),
|
|
),
|
|
) as _i3.Dio);
|
|
}
|
|
|
|
/// A class which mocks [StatusCheckerService].
|
|
///
|
|
/// See the documentation for Mockito's code generation for more information.
|
|
class MockStatusCheckerService extends _i1.Mock
|
|
implements _i14.StatusCheckerService {
|
|
@override
|
|
_i4.SecureStorageService get storage => (super.noSuchMethod(
|
|
Invocation.getter(#storage),
|
|
returnValue: _FakeSecureStorageService_2(
|
|
this,
|
|
Invocation.getter(#storage),
|
|
),
|
|
returnValueForMissingStub: _FakeSecureStorageService_2(
|
|
this,
|
|
Invocation.getter(#storage),
|
|
),
|
|
) as _i4.SecureStorageService);
|
|
|
|
@override
|
|
bool get previousConnection => (super.noSuchMethod(
|
|
Invocation.getter(#previousConnection),
|
|
returnValue: false,
|
|
returnValueForMissingStub: false,
|
|
) as bool);
|
|
|
|
@override
|
|
_i8.Future<int> getBatteryLevel() => (super.noSuchMethod(
|
|
Invocation.method(
|
|
#getBatteryLevel,
|
|
[],
|
|
),
|
|
returnValue: _i8.Future<int>.value(0),
|
|
returnValueForMissingStub: _i8.Future<int>.value(0),
|
|
) as _i8.Future<int>);
|
|
|
|
@override
|
|
_i8.Future<bool> userAuthenticated() => (super.noSuchMethod(
|
|
Invocation.method(
|
|
#userAuthenticated,
|
|
[],
|
|
),
|
|
returnValue: _i8.Future<bool>.value(false),
|
|
returnValueForMissingStub: _i8.Future<bool>.value(false),
|
|
) as _i8.Future<bool>);
|
|
|
|
@override
|
|
_i8.Future<bool> checkConnection() => (super.noSuchMethod(
|
|
Invocation.method(
|
|
#checkConnection,
|
|
[],
|
|
),
|
|
returnValue: _i8.Future<bool>.value(false),
|
|
returnValueForMissingStub: _i8.Future<bool>.value(false),
|
|
) as _i8.Future<bool>);
|
|
|
|
@override
|
|
_i8.Future<int> getAvailableStorage() => (super.noSuchMethod(
|
|
Invocation.method(
|
|
#getAvailableStorage,
|
|
[],
|
|
),
|
|
returnValue: _i8.Future<int>.value(0),
|
|
returnValueForMissingStub: _i8.Future<int>.value(0),
|
|
) as _i8.Future<int>);
|
|
|
|
@override
|
|
_i8.Future<void> checkAndUpdate() => (super.noSuchMethod(
|
|
Invocation.method(
|
|
#checkAndUpdate,
|
|
[],
|
|
),
|
|
returnValue: _i8.Future<void>.value(),
|
|
returnValueForMissingStub: _i8.Future<void>.value(),
|
|
) as _i8.Future<void>);
|
|
}
|