at main 3.6 kB view raw
1// Mocks generated by Mockito 5.4.6 from annotations 2// in coves_flutter/test/providers/auth_provider_test.dart. 3// Do not manually edit this file. 4 5// ignore_for_file: no_leading_underscores_for_library_prefixes 6import 'dart:async' as _i4; 7 8import 'package:coves_flutter/models/coves_session.dart' as _i2; 9import 'package:coves_flutter/services/coves_auth_service.dart' as _i3; 10import 'package:mockito/mockito.dart' as _i1; 11import 'package:mockito/src/dummies.dart' as _i5; 12 13// ignore_for_file: type=lint 14// ignore_for_file: avoid_redundant_argument_values 15// ignore_for_file: avoid_setters_without_getters 16// ignore_for_file: comment_references 17// ignore_for_file: deprecated_member_use 18// ignore_for_file: deprecated_member_use_from_same_package 19// ignore_for_file: implementation_imports 20// ignore_for_file: invalid_use_of_visible_for_testing_member 21// ignore_for_file: must_be_immutable 22// ignore_for_file: prefer_const_constructors 23// ignore_for_file: unnecessary_parenthesis 24// ignore_for_file: camel_case_types 25// ignore_for_file: subtype_of_sealed_class 26// ignore_for_file: invalid_use_of_internal_member 27 28class _FakeCovesSession_0 extends _i1.SmartFake implements _i2.CovesSession { 29 _FakeCovesSession_0(Object parent, Invocation parentInvocation) 30 : super(parent, parentInvocation); 31} 32 33/// A class which mocks [CovesAuthService]. 34/// 35/// See the documentation for Mockito's code generation for more information. 36class MockCovesAuthService extends _i1.Mock implements _i3.CovesAuthService { 37 MockCovesAuthService() { 38 _i1.throwOnMissingStub(this); 39 } 40 41 @override 42 bool get isAuthenticated => 43 (super.noSuchMethod( 44 Invocation.getter(#isAuthenticated), 45 returnValue: false, 46 ) 47 as bool); 48 49 @override 50 _i4.Future<void> initialize() => 51 (super.noSuchMethod( 52 Invocation.method(#initialize, []), 53 returnValue: _i4.Future<void>.value(), 54 returnValueForMissingStub: _i4.Future<void>.value(), 55 ) 56 as _i4.Future<void>); 57 58 @override 59 _i4.Future<_i2.CovesSession> signIn(String? handle) => 60 (super.noSuchMethod( 61 Invocation.method(#signIn, [handle]), 62 returnValue: _i4.Future<_i2.CovesSession>.value( 63 _FakeCovesSession_0(this, Invocation.method(#signIn, [handle])), 64 ), 65 ) 66 as _i4.Future<_i2.CovesSession>); 67 68 @override 69 _i4.Future<_i2.CovesSession?> restoreSession() => 70 (super.noSuchMethod( 71 Invocation.method(#restoreSession, []), 72 returnValue: _i4.Future<_i2.CovesSession?>.value(), 73 ) 74 as _i4.Future<_i2.CovesSession?>); 75 76 @override 77 _i4.Future<_i2.CovesSession> refreshToken() => 78 (super.noSuchMethod( 79 Invocation.method(#refreshToken, []), 80 returnValue: _i4.Future<_i2.CovesSession>.value( 81 _FakeCovesSession_0(this, Invocation.method(#refreshToken, [])), 82 ), 83 ) 84 as _i4.Future<_i2.CovesSession>); 85 86 @override 87 _i4.Future<void> signOut() => 88 (super.noSuchMethod( 89 Invocation.method(#signOut, []), 90 returnValue: _i4.Future<void>.value(), 91 returnValueForMissingStub: _i4.Future<void>.value(), 92 ) 93 as _i4.Future<void>); 94 95 @override 96 String validateAndNormalizeHandle(String? handle) => 97 (super.noSuchMethod( 98 Invocation.method(#validateAndNormalizeHandle, [handle]), 99 returnValue: _i5.dummyValue<String>( 100 this, 101 Invocation.method(#validateAndNormalizeHandle, [handle]), 102 ), 103 ) 104 as String); 105}