1// Mocks generated by Mockito 5.4.6 from annotations 2// in coves_flutter/test/providers/feed_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 _i5; 7import 'dart:ui' as _i6; 8 9import 'package:coves_flutter/models/comment.dart' as _i3; 10import 'package:coves_flutter/models/post.dart' as _i2; 11import 'package:coves_flutter/providers/auth_provider.dart' as _i4; 12import 'package:coves_flutter/services/coves_api_service.dart' as _i7; 13import 'package:mockito/mockito.dart' as _i1; 14 15// ignore_for_file: type=lint 16// ignore_for_file: avoid_redundant_argument_values 17// ignore_for_file: avoid_setters_without_getters 18// ignore_for_file: comment_references 19// ignore_for_file: deprecated_member_use 20// ignore_for_file: deprecated_member_use_from_same_package 21// ignore_for_file: implementation_imports 22// ignore_for_file: invalid_use_of_visible_for_testing_member 23// ignore_for_file: must_be_immutable 24// ignore_for_file: prefer_const_constructors 25// ignore_for_file: unnecessary_parenthesis 26// ignore_for_file: camel_case_types 27// ignore_for_file: subtype_of_sealed_class 28// ignore_for_file: invalid_use_of_internal_member 29 30class _FakeTimelineResponse_0 extends _i1.SmartFake 31 implements _i2.TimelineResponse { 32 _FakeTimelineResponse_0(Object parent, Invocation parentInvocation) 33 : super(parent, parentInvocation); 34} 35 36class _FakeCommentsResponse_1 extends _i1.SmartFake 37 implements _i3.CommentsResponse { 38 _FakeCommentsResponse_1(Object parent, Invocation parentInvocation) 39 : super(parent, parentInvocation); 40} 41 42/// A class which mocks [AuthProvider]. 43/// 44/// See the documentation for Mockito's code generation for more information. 45class MockAuthProvider extends _i1.Mock implements _i4.AuthProvider { 46 MockAuthProvider() { 47 _i1.throwOnMissingStub(this); 48 } 49 50 @override 51 bool get isAuthenticated => 52 (super.noSuchMethod( 53 Invocation.getter(#isAuthenticated), 54 returnValue: false, 55 ) 56 as bool); 57 58 @override 59 bool get isLoading => 60 (super.noSuchMethod(Invocation.getter(#isLoading), returnValue: false) 61 as bool); 62 63 @override 64 bool get hasListeners => 65 (super.noSuchMethod(Invocation.getter(#hasListeners), returnValue: false) 66 as bool); 67 68 @override 69 _i5.Future<String?> getAccessToken() => 70 (super.noSuchMethod( 71 Invocation.method(#getAccessToken, []), 72 returnValue: _i5.Future<String?>.value(), 73 ) 74 as _i5.Future<String?>); 75 76 @override 77 _i5.Future<void> initialize() => 78 (super.noSuchMethod( 79 Invocation.method(#initialize, []), 80 returnValue: _i5.Future<void>.value(), 81 returnValueForMissingStub: _i5.Future<void>.value(), 82 ) 83 as _i5.Future<void>); 84 85 @override 86 _i5.Future<void> signIn(String? handle) => 87 (super.noSuchMethod( 88 Invocation.method(#signIn, [handle]), 89 returnValue: _i5.Future<void>.value(), 90 returnValueForMissingStub: _i5.Future<void>.value(), 91 ) 92 as _i5.Future<void>); 93 94 @override 95 _i5.Future<void> signOut() => 96 (super.noSuchMethod( 97 Invocation.method(#signOut, []), 98 returnValue: _i5.Future<void>.value(), 99 returnValueForMissingStub: _i5.Future<void>.value(), 100 ) 101 as _i5.Future<void>); 102 103 @override 104 _i5.Future<bool> refreshToken() => 105 (super.noSuchMethod( 106 Invocation.method(#refreshToken, []), 107 returnValue: _i5.Future<bool>.value(false), 108 ) 109 as _i5.Future<bool>); 110 111 @override 112 void clearError() => super.noSuchMethod( 113 Invocation.method(#clearError, []), 114 returnValueForMissingStub: null, 115 ); 116 117 @override 118 void addListener(_i6.VoidCallback? listener) => super.noSuchMethod( 119 Invocation.method(#addListener, [listener]), 120 returnValueForMissingStub: null, 121 ); 122 123 @override 124 void removeListener(_i6.VoidCallback? listener) => super.noSuchMethod( 125 Invocation.method(#removeListener, [listener]), 126 returnValueForMissingStub: null, 127 ); 128 129 @override 130 void dispose() => super.noSuchMethod( 131 Invocation.method(#dispose, []), 132 returnValueForMissingStub: null, 133 ); 134 135 @override 136 void notifyListeners() => super.noSuchMethod( 137 Invocation.method(#notifyListeners, []), 138 returnValueForMissingStub: null, 139 ); 140} 141 142/// A class which mocks [CovesApiService]. 143/// 144/// See the documentation for Mockito's code generation for more information. 145class MockCovesApiService extends _i1.Mock implements _i7.CovesApiService { 146 MockCovesApiService() { 147 _i1.throwOnMissingStub(this); 148 } 149 150 @override 151 _i5.Future<_i2.TimelineResponse> getTimeline({ 152 String? sort = 'hot', 153 String? timeframe, 154 int? limit = 15, 155 String? cursor, 156 }) => 157 (super.noSuchMethod( 158 Invocation.method(#getTimeline, [], { 159 #sort: sort, 160 #timeframe: timeframe, 161 #limit: limit, 162 #cursor: cursor, 163 }), 164 returnValue: _i5.Future<_i2.TimelineResponse>.value( 165 _FakeTimelineResponse_0( 166 this, 167 Invocation.method(#getTimeline, [], { 168 #sort: sort, 169 #timeframe: timeframe, 170 #limit: limit, 171 #cursor: cursor, 172 }), 173 ), 174 ), 175 ) 176 as _i5.Future<_i2.TimelineResponse>); 177 178 @override 179 _i5.Future<_i2.TimelineResponse> getDiscover({ 180 String? sort = 'hot', 181 String? timeframe, 182 int? limit = 15, 183 String? cursor, 184 }) => 185 (super.noSuchMethod( 186 Invocation.method(#getDiscover, [], { 187 #sort: sort, 188 #timeframe: timeframe, 189 #limit: limit, 190 #cursor: cursor, 191 }), 192 returnValue: _i5.Future<_i2.TimelineResponse>.value( 193 _FakeTimelineResponse_0( 194 this, 195 Invocation.method(#getDiscover, [], { 196 #sort: sort, 197 #timeframe: timeframe, 198 #limit: limit, 199 #cursor: cursor, 200 }), 201 ), 202 ), 203 ) 204 as _i5.Future<_i2.TimelineResponse>); 205 206 @override 207 _i5.Future<_i3.CommentsResponse> getComments({ 208 required String? postUri, 209 String? sort = 'hot', 210 String? timeframe, 211 int? depth = 10, 212 int? limit = 50, 213 String? cursor, 214 }) => 215 (super.noSuchMethod( 216 Invocation.method(#getComments, [], { 217 #postUri: postUri, 218 #sort: sort, 219 #timeframe: timeframe, 220 #depth: depth, 221 #limit: limit, 222 #cursor: cursor, 223 }), 224 returnValue: _i5.Future<_i3.CommentsResponse>.value( 225 _FakeCommentsResponse_1( 226 this, 227 Invocation.method(#getComments, [], { 228 #postUri: postUri, 229 #sort: sort, 230 #timeframe: timeframe, 231 #depth: depth, 232 #limit: limit, 233 #cursor: cursor, 234 }), 235 ), 236 ), 237 ) 238 as _i5.Future<_i3.CommentsResponse>); 239 240 @override 241 void dispose() => super.noSuchMethod( 242 Invocation.method(#dispose, []), 243 returnValueForMissingStub: null, 244 ); 245}