1// Mocks generated by Mockito 5.4.6 from annotations 2// in coves_flutter/test/providers/vote_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 _i3; 7import 'dart:ui' as _i5; 8 9import 'package:coves_flutter/providers/auth_provider.dart' as _i4; 10import 'package:coves_flutter/services/vote_service.dart' as _i2; 11import 'package:mockito/mockito.dart' as _i1; 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 _FakeVoteResponse_0 extends _i1.SmartFake implements _i2.VoteResponse { 29 _FakeVoteResponse_0(Object parent, Invocation parentInvocation) 30 : super(parent, parentInvocation); 31} 32 33/// A class which mocks [VoteService]. 34/// 35/// See the documentation for Mockito's code generation for more information. 36class MockVoteService extends _i1.Mock implements _i2.VoteService { 37 MockVoteService() { 38 _i1.throwOnMissingStub(this); 39 } 40 41 @override 42 _i3.Future<Map<String, _i2.VoteInfo>> getUserVotes() => 43 (super.noSuchMethod( 44 Invocation.method(#getUserVotes, []), 45 returnValue: _i3.Future<Map<String, _i2.VoteInfo>>.value( 46 <String, _i2.VoteInfo>{}, 47 ), 48 ) 49 as _i3.Future<Map<String, _i2.VoteInfo>>); 50 51 @override 52 _i3.Future<_i2.VoteResponse> createVote({ 53 required String? postUri, 54 required String? postCid, 55 String? direction = 'up', 56 String? existingVoteRkey, 57 String? existingVoteDirection, 58 }) => 59 (super.noSuchMethod( 60 Invocation.method(#createVote, [], { 61 #postUri: postUri, 62 #postCid: postCid, 63 #direction: direction, 64 #existingVoteRkey: existingVoteRkey, 65 #existingVoteDirection: existingVoteDirection, 66 }), 67 returnValue: _i3.Future<_i2.VoteResponse>.value( 68 _FakeVoteResponse_0( 69 this, 70 Invocation.method(#createVote, [], { 71 #postUri: postUri, 72 #postCid: postCid, 73 #direction: direction, 74 #existingVoteRkey: existingVoteRkey, 75 #existingVoteDirection: existingVoteDirection, 76 }), 77 ), 78 ), 79 ) 80 as _i3.Future<_i2.VoteResponse>); 81} 82 83/// A class which mocks [AuthProvider]. 84/// 85/// See the documentation for Mockito's code generation for more information. 86class MockAuthProvider extends _i1.Mock implements _i4.AuthProvider { 87 MockAuthProvider() { 88 _i1.throwOnMissingStub(this); 89 } 90 91 @override 92 bool get isAuthenticated => 93 (super.noSuchMethod( 94 Invocation.getter(#isAuthenticated), 95 returnValue: false, 96 ) 97 as bool); 98 99 @override 100 bool get isLoading => 101 (super.noSuchMethod(Invocation.getter(#isLoading), returnValue: false) 102 as bool); 103 104 @override 105 bool get hasListeners => 106 (super.noSuchMethod(Invocation.getter(#hasListeners), returnValue: false) 107 as bool); 108 109 @override 110 _i3.Future<String?> getAccessToken() => 111 (super.noSuchMethod( 112 Invocation.method(#getAccessToken, []), 113 returnValue: _i3.Future<String?>.value(), 114 ) 115 as _i3.Future<String?>); 116 117 @override 118 _i3.Future<void> initialize() => 119 (super.noSuchMethod( 120 Invocation.method(#initialize, []), 121 returnValue: _i3.Future<void>.value(), 122 returnValueForMissingStub: _i3.Future<void>.value(), 123 ) 124 as _i3.Future<void>); 125 126 @override 127 _i3.Future<void> signIn(String? handle) => 128 (super.noSuchMethod( 129 Invocation.method(#signIn, [handle]), 130 returnValue: _i3.Future<void>.value(), 131 returnValueForMissingStub: _i3.Future<void>.value(), 132 ) 133 as _i3.Future<void>); 134 135 @override 136 _i3.Future<void> signOut() => 137 (super.noSuchMethod( 138 Invocation.method(#signOut, []), 139 returnValue: _i3.Future<void>.value(), 140 returnValueForMissingStub: _i3.Future<void>.value(), 141 ) 142 as _i3.Future<void>); 143 144 @override 145 _i3.Future<bool> refreshToken() => 146 (super.noSuchMethod( 147 Invocation.method(#refreshToken, []), 148 returnValue: _i3.Future<bool>.value(false), 149 ) 150 as _i3.Future<bool>); 151 152 @override 153 void clearError() => super.noSuchMethod( 154 Invocation.method(#clearError, []), 155 returnValueForMissingStub: null, 156 ); 157 158 @override 159 void addListener(_i5.VoidCallback? listener) => super.noSuchMethod( 160 Invocation.method(#addListener, [listener]), 161 returnValueForMissingStub: null, 162 ); 163 164 @override 165 void removeListener(_i5.VoidCallback? listener) => super.noSuchMethod( 166 Invocation.method(#removeListener, [listener]), 167 returnValueForMissingStub: null, 168 ); 169 170 @override 171 void dispose() => super.noSuchMethod( 172 Invocation.method(#dispose, []), 173 returnValueForMissingStub: null, 174 ); 175 176 @override 177 void notifyListeners() => super.noSuchMethod( 178 Invocation.method(#notifyListeners, []), 179 returnValueForMissingStub: null, 180 ); 181}