mirror of
https://github.com/wger-project/flutter.git
synced 2026-11-29 09:20:56 +01:00
105 lines
3.8 KiB
Dart
105 lines
3.8 KiB
Dart
// Mocks generated by Mockito from annotations
|
|
// in wger/test/features/account/widgets/forms_test.dart.
|
|
// Do not manually edit this file.
|
|
|
|
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
|
import 'dart:async' as _i4;
|
|
|
|
import 'package:mockito/mockito.dart' as _i1;
|
|
import 'package:wger/features/account/models/account.dart' as _i2;
|
|
import 'package:wger/features/account/models/user_profile.dart' as _i5;
|
|
import 'package:wger/features/account/providers/account_repository.dart' as _i6;
|
|
import 'package:wger/features/account/providers/user_profile_repository.dart' as _i3;
|
|
|
|
// 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: experimental_member_use
|
|
// 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
|
|
// ignore_for_file: invalid_use_of_internal_member
|
|
|
|
class _FakeAccount_0 extends _i1.SmartFake implements _i2.Account {
|
|
_FakeAccount_0(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
|
}
|
|
|
|
/// A class which mocks [UserProfileRepository].
|
|
///
|
|
/// See the documentation for Mockito's code generation for more information.
|
|
class MockUserProfileRepository extends _i1.Mock implements _i3.UserProfileRepository {
|
|
MockUserProfileRepository() {
|
|
_i1.throwOnMissingStub(this);
|
|
}
|
|
|
|
@override
|
|
_i4.Stream<_i5.UserProfile?> watchDrift() =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(#watchDrift, []),
|
|
returnValue: _i4.Stream<_i5.UserProfile?>.empty(),
|
|
)
|
|
as _i4.Stream<_i5.UserProfile?>);
|
|
|
|
@override
|
|
_i4.Future<void> updateTimeZoneDrift(int? id, String? timeZone) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(#updateTimeZoneDrift, [id, timeZone]),
|
|
returnValue: _i4.Future<void>.value(),
|
|
returnValueForMissingStub: _i4.Future<void>.value(),
|
|
)
|
|
as _i4.Future<void>);
|
|
|
|
@override
|
|
_i4.Future<void> editLocalDrift(_i5.UserProfile? profile) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(#editLocalDrift, [profile]),
|
|
returnValue: _i4.Future<void>.value(),
|
|
returnValueForMissingStub: _i4.Future<void>.value(),
|
|
)
|
|
as _i4.Future<void>);
|
|
}
|
|
|
|
/// A class which mocks [AccountRepository].
|
|
///
|
|
/// See the documentation for Mockito's code generation for more information.
|
|
class MockAccountRepository extends _i1.Mock implements _i6.AccountRepository {
|
|
MockAccountRepository() {
|
|
_i1.throwOnMissingStub(this);
|
|
}
|
|
|
|
@override
|
|
_i4.Future<_i2.Account> fetchAccount() =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(#fetchAccount, []),
|
|
returnValue: _i4.Future<_i2.Account>.value(
|
|
_FakeAccount_0(this, Invocation.method(#fetchAccount, [])),
|
|
),
|
|
)
|
|
as _i4.Future<_i2.Account>);
|
|
|
|
@override
|
|
_i4.Future<void> requestEmailChange(String? newEmail) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(#requestEmailChange, [newEmail]),
|
|
returnValue: _i4.Future<void>.value(),
|
|
returnValueForMissingStub: _i4.Future<void>.value(),
|
|
)
|
|
as _i4.Future<void>);
|
|
|
|
@override
|
|
_i4.Future<void> resendVerification(String? email) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(#resendVerification, [email]),
|
|
returnValue: _i4.Future<void>.value(),
|
|
returnValueForMissingStub: _i4.Future<void>.value(),
|
|
)
|
|
as _i4.Future<void>);
|
|
}
|