1// Mocks generated by Mockito 5.4.6 from annotations 2// in coves_flutter/test/providers/comments_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 _i6; 7import 'dart:ui' as _i7; 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 _i5; 12import 'package:coves_flutter/providers/vote_provider.dart' as _i9; 13import 'package:coves_flutter/services/coves_api_service.dart' as _i8; 14import 'package:coves_flutter/services/vote_service.dart' as _i4; 15import 'package:mockito/mockito.dart' as _i1; 16 17// ignore_for_file: type=lint 18// ignore_for_file: avoid_redundant_argument_values 19// ignore_for_file: avoid_setters_without_getters 20// ignore_for_file: comment_references 21// ignore_for_file: deprecated_member_use 22// ignore_for_file: deprecated_member_use_from_same_package 23// ignore_for_file: implementation_imports 24// ignore_for_file: invalid_use_of_visible_for_testing_member 25// ignore_for_file: must_be_immutable 26// ignore_for_file: prefer_const_constructors 27// ignore_for_file: unnecessary_parenthesis 28// ignore_for_file: camel_case_types 29// ignore_for_file: subtype_of_sealed_class 30// ignore_for_file: invalid_use_of_internal_member 31 32class _FakeTimelineResponse_0 extends _i1.SmartFake 33 implements _i2.TimelineResponse { 34 _FakeTimelineResponse_0(Object parent, Invocation parentInvocation) 35 : super(parent, parentInvocation); 36} 37 38class _FakeCommentsResponse_1 extends _i1.SmartFake 39 implements _i3.CommentsResponse { 40 _FakeCommentsResponse_1(Object parent, Invocation parentInvocation) 41 : super(parent, parentInvocation); 42} 43 44class _FakeVoteResponse_2 extends _i1.SmartFake implements _i4.VoteResponse { 45 _FakeVoteResponse_2(Object parent, Invocation parentInvocation) 46 : super(parent, parentInvocation); 47} 48 49/// A class which mocks [AuthProvider]. 50/// 51/// See the documentation for Mockito's code generation for more information. 52class MockAuthProvider extends _i1.Mock implements _i5.AuthProvider { 53 MockAuthProvider() { 54 _i1.throwOnMissingStub(this); 55 } 56 57 @override 58 bool get isAuthenticated => 59 (super.noSuchMethod( 60 Invocation.getter(#isAuthenticated), 61 returnValue: false, 62 ) 63 as bool); 64 65 @override 66 bool get isLoading => 67 (super.noSuchMethod(Invocation.getter(#isLoading), returnValue: false) 68 as bool); 69 70 @override 71 bool get hasListeners => 72 (super.noSuchMethod(Invocation.getter(#hasListeners), returnValue: false) 73 as bool); 74 75 @override 76 _i6.Future<String?> getAccessToken() => 77 (super.noSuchMethod( 78 Invocation.method(#getAccessToken, []), 79 returnValue: _i6.Future<String?>.value(), 80 ) 81 as _i6.Future<String?>); 82 83 @override 84 _i6.Future<void> initialize() => 85 (super.noSuchMethod( 86 Invocation.method(#initialize, []), 87 returnValue: _i6.Future<void>.value(), 88 returnValueForMissingStub: _i6.Future<void>.value(), 89 ) 90 as _i6.Future<void>); 91 92 @override 93 _i6.Future<void> signIn(String? handle) => 94 (super.noSuchMethod( 95 Invocation.method(#signIn, [handle]), 96 returnValue: _i6.Future<void>.value(), 97 returnValueForMissingStub: _i6.Future<void>.value(), 98 ) 99 as _i6.Future<void>); 100 101 @override 102 _i6.Future<void> signOut() => 103 (super.noSuchMethod( 104 Invocation.method(#signOut, []), 105 returnValue: _i6.Future<void>.value(), 106 returnValueForMissingStub: _i6.Future<void>.value(), 107 ) 108 as _i6.Future<void>); 109 110 @override 111 _i6.Future<bool> refreshToken() => 112 (super.noSuchMethod( 113 Invocation.method(#refreshToken, []), 114 returnValue: _i6.Future<bool>.value(false), 115 ) 116 as _i6.Future<bool>); 117 118 @override 119 void clearError() => super.noSuchMethod( 120 Invocation.method(#clearError, []), 121 returnValueForMissingStub: null, 122 ); 123 124 @override 125 void addListener(_i7.VoidCallback? listener) => super.noSuchMethod( 126 Invocation.method(#addListener, [listener]), 127 returnValueForMissingStub: null, 128 ); 129 130 @override 131 void removeListener(_i7.VoidCallback? listener) => super.noSuchMethod( 132 Invocation.method(#removeListener, [listener]), 133 returnValueForMissingStub: null, 134 ); 135 136 @override 137 void dispose() => super.noSuchMethod( 138 Invocation.method(#dispose, []), 139 returnValueForMissingStub: null, 140 ); 141 142 @override 143 void notifyListeners() => super.noSuchMethod( 144 Invocation.method(#notifyListeners, []), 145 returnValueForMissingStub: null, 146 ); 147} 148 149/// A class which mocks [CovesApiService]. 150/// 151/// See the documentation for Mockito's code generation for more information. 152class MockCovesApiService extends _i1.Mock implements _i8.CovesApiService { 153 MockCovesApiService() { 154 _i1.throwOnMissingStub(this); 155 } 156 157 @override 158 _i6.Future<_i2.TimelineResponse> getTimeline({ 159 String? sort = 'hot', 160 String? timeframe, 161 int? limit = 15, 162 String? cursor, 163 }) => 164 (super.noSuchMethod( 165 Invocation.method(#getTimeline, [], { 166 #sort: sort, 167 #timeframe: timeframe, 168 #limit: limit, 169 #cursor: cursor, 170 }), 171 returnValue: _i6.Future<_i2.TimelineResponse>.value( 172 _FakeTimelineResponse_0( 173 this, 174 Invocation.method(#getTimeline, [], { 175 #sort: sort, 176 #timeframe: timeframe, 177 #limit: limit, 178 #cursor: cursor, 179 }), 180 ), 181 ), 182 ) 183 as _i6.Future<_i2.TimelineResponse>); 184 185 @override 186 _i6.Future<_i2.TimelineResponse> getDiscover({ 187 String? sort = 'hot', 188 String? timeframe, 189 int? limit = 15, 190 String? cursor, 191 }) => 192 (super.noSuchMethod( 193 Invocation.method(#getDiscover, [], { 194 #sort: sort, 195 #timeframe: timeframe, 196 #limit: limit, 197 #cursor: cursor, 198 }), 199 returnValue: _i6.Future<_i2.TimelineResponse>.value( 200 _FakeTimelineResponse_0( 201 this, 202 Invocation.method(#getDiscover, [], { 203 #sort: sort, 204 #timeframe: timeframe, 205 #limit: limit, 206 #cursor: cursor, 207 }), 208 ), 209 ), 210 ) 211 as _i6.Future<_i2.TimelineResponse>); 212 213 @override 214 _i6.Future<_i3.CommentsResponse> getComments({ 215 required String? postUri, 216 String? sort = 'hot', 217 String? timeframe, 218 int? depth = 10, 219 int? limit = 50, 220 String? cursor, 221 }) => 222 (super.noSuchMethod( 223 Invocation.method(#getComments, [], { 224 #postUri: postUri, 225 #sort: sort, 226 #timeframe: timeframe, 227 #depth: depth, 228 #limit: limit, 229 #cursor: cursor, 230 }), 231 returnValue: _i6.Future<_i3.CommentsResponse>.value( 232 _FakeCommentsResponse_1( 233 this, 234 Invocation.method(#getComments, [], { 235 #postUri: postUri, 236 #sort: sort, 237 #timeframe: timeframe, 238 #depth: depth, 239 #limit: limit, 240 #cursor: cursor, 241 }), 242 ), 243 ), 244 ) 245 as _i6.Future<_i3.CommentsResponse>); 246 247 @override 248 void dispose() => super.noSuchMethod( 249 Invocation.method(#dispose, []), 250 returnValueForMissingStub: null, 251 ); 252} 253 254/// A class which mocks [VoteProvider]. 255/// 256/// See the documentation for Mockito's code generation for more information. 257class MockVoteProvider extends _i1.Mock implements _i9.VoteProvider { 258 MockVoteProvider() { 259 _i1.throwOnMissingStub(this); 260 } 261 262 @override 263 bool get hasListeners => 264 (super.noSuchMethod(Invocation.getter(#hasListeners), returnValue: false) 265 as bool); 266 267 @override 268 void dispose() => super.noSuchMethod( 269 Invocation.method(#dispose, []), 270 returnValueForMissingStub: null, 271 ); 272 273 @override 274 _i9.VoteState? getVoteState(String? postUri) => 275 (super.noSuchMethod(Invocation.method(#getVoteState, [postUri])) 276 as _i9.VoteState?); 277 278 @override 279 bool isLiked(String? postUri) => 280 (super.noSuchMethod( 281 Invocation.method(#isLiked, [postUri]), 282 returnValue: false, 283 ) 284 as bool); 285 286 @override 287 bool isPending(String? postUri) => 288 (super.noSuchMethod( 289 Invocation.method(#isPending, [postUri]), 290 returnValue: false, 291 ) 292 as bool); 293 294 @override 295 int getAdjustedScore(String? postUri, int? serverScore) => 296 (super.noSuchMethod( 297 Invocation.method(#getAdjustedScore, [postUri, serverScore]), 298 returnValue: 0, 299 ) 300 as int); 301 302 @override 303 _i6.Future<bool> toggleVote({ 304 required String? postUri, 305 required String? postCid, 306 String? direction = 'up', 307 }) => 308 (super.noSuchMethod( 309 Invocation.method(#toggleVote, [], { 310 #postUri: postUri, 311 #postCid: postCid, 312 #direction: direction, 313 }), 314 returnValue: _i6.Future<bool>.value(false), 315 ) 316 as _i6.Future<bool>); 317 318 @override 319 void setInitialVoteState({ 320 required String? postUri, 321 String? voteDirection, 322 String? voteUri, 323 }) => super.noSuchMethod( 324 Invocation.method(#setInitialVoteState, [], { 325 #postUri: postUri, 326 #voteDirection: voteDirection, 327 #voteUri: voteUri, 328 }), 329 returnValueForMissingStub: null, 330 ); 331 332 @override 333 void loadInitialVotes(Map<String, _i4.VoteInfo>? votes) => super.noSuchMethod( 334 Invocation.method(#loadInitialVotes, [votes]), 335 returnValueForMissingStub: null, 336 ); 337 338 @override 339 void clear() => super.noSuchMethod( 340 Invocation.method(#clear, []), 341 returnValueForMissingStub: null, 342 ); 343 344 @override 345 void addListener(_i7.VoidCallback? listener) => super.noSuchMethod( 346 Invocation.method(#addListener, [listener]), 347 returnValueForMissingStub: null, 348 ); 349 350 @override 351 void removeListener(_i7.VoidCallback? listener) => super.noSuchMethod( 352 Invocation.method(#removeListener, [listener]), 353 returnValueForMissingStub: null, 354 ); 355 356 @override 357 void notifyListeners() => super.noSuchMethod( 358 Invocation.method(#notifyListeners, []), 359 returnValueForMissingStub: null, 360 ); 361} 362 363/// A class which mocks [VoteService]. 364/// 365/// See the documentation for Mockito's code generation for more information. 366class MockVoteService extends _i1.Mock implements _i4.VoteService { 367 MockVoteService() { 368 _i1.throwOnMissingStub(this); 369 } 370 371 @override 372 _i6.Future<Map<String, _i4.VoteInfo>> getUserVotes() => 373 (super.noSuchMethod( 374 Invocation.method(#getUserVotes, []), 375 returnValue: _i6.Future<Map<String, _i4.VoteInfo>>.value( 376 <String, _i4.VoteInfo>{}, 377 ), 378 ) 379 as _i6.Future<Map<String, _i4.VoteInfo>>); 380 381 @override 382 _i6.Future<_i4.VoteResponse> createVote({ 383 required String? postUri, 384 required String? postCid, 385 String? direction = 'up', 386 String? existingVoteRkey, 387 String? existingVoteDirection, 388 }) => 389 (super.noSuchMethod( 390 Invocation.method(#createVote, [], { 391 #postUri: postUri, 392 #postCid: postCid, 393 #direction: direction, 394 #existingVoteRkey: existingVoteRkey, 395 #existingVoteDirection: existingVoteDirection, 396 }), 397 returnValue: _i6.Future<_i4.VoteResponse>.value( 398 _FakeVoteResponse_2( 399 this, 400 Invocation.method(#createVote, [], { 401 #postUri: postUri, 402 #postCid: postCid, 403 #direction: direction, 404 #existingVoteRkey: existingVoteRkey, 405 #existingVoteDirection: existingVoteDirection, 406 }), 407 ), 408 ), 409 ) 410 as _i6.Future<_i4.VoteResponse>); 411}