at main 25 kB view raw
1// Mocks generated by Mockito 5.4.6 from annotations 2// in coves_flutter/test/services/comment_service_test.dart. 3// Do not manually edit this file. 4 5// ignore_for_file: no_leading_underscores_for_library_prefixes 6import 'dart:async' as _i8; 7 8import 'package:dio/src/adapter.dart' as _i4; 9import 'package:dio/src/cancel_token.dart' as _i9; 10import 'package:dio/src/dio.dart' as _i7; 11import 'package:dio/src/dio_mixin.dart' as _i3; 12import 'package:dio/src/options.dart' as _i2; 13import 'package:dio/src/response.dart' as _i6; 14import 'package:dio/src/transformer.dart' as _i5; 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 _FakeBaseOptions_0 extends _i1.SmartFake implements _i2.BaseOptions { 33 _FakeBaseOptions_0(Object parent, Invocation parentInvocation) 34 : super(parent, parentInvocation); 35} 36 37class _FakeInterceptors_1 extends _i1.SmartFake implements _i3.Interceptors { 38 _FakeInterceptors_1(Object parent, Invocation parentInvocation) 39 : super(parent, parentInvocation); 40} 41 42class _FakeHttpClientAdapter_2 extends _i1.SmartFake 43 implements _i4.HttpClientAdapter { 44 _FakeHttpClientAdapter_2(Object parent, Invocation parentInvocation) 45 : super(parent, parentInvocation); 46} 47 48class _FakeTransformer_3 extends _i1.SmartFake implements _i5.Transformer { 49 _FakeTransformer_3(Object parent, Invocation parentInvocation) 50 : super(parent, parentInvocation); 51} 52 53class _FakeResponse_4<T1> extends _i1.SmartFake implements _i6.Response<T1> { 54 _FakeResponse_4(Object parent, Invocation parentInvocation) 55 : super(parent, parentInvocation); 56} 57 58class _FakeDio_5 extends _i1.SmartFake implements _i7.Dio { 59 _FakeDio_5(Object parent, Invocation parentInvocation) 60 : super(parent, parentInvocation); 61} 62 63/// A class which mocks [Dio]. 64/// 65/// See the documentation for Mockito's code generation for more information. 66class MockDio extends _i1.Mock implements _i7.Dio { 67 MockDio() { 68 _i1.throwOnMissingStub(this); 69 } 70 71 @override 72 _i2.BaseOptions get options => 73 (super.noSuchMethod( 74 Invocation.getter(#options), 75 returnValue: _FakeBaseOptions_0(this, Invocation.getter(#options)), 76 ) 77 as _i2.BaseOptions); 78 79 @override 80 _i3.Interceptors get interceptors => 81 (super.noSuchMethod( 82 Invocation.getter(#interceptors), 83 returnValue: _FakeInterceptors_1( 84 this, 85 Invocation.getter(#interceptors), 86 ), 87 ) 88 as _i3.Interceptors); 89 90 @override 91 _i4.HttpClientAdapter get httpClientAdapter => 92 (super.noSuchMethod( 93 Invocation.getter(#httpClientAdapter), 94 returnValue: _FakeHttpClientAdapter_2( 95 this, 96 Invocation.getter(#httpClientAdapter), 97 ), 98 ) 99 as _i4.HttpClientAdapter); 100 101 @override 102 _i5.Transformer get transformer => 103 (super.noSuchMethod( 104 Invocation.getter(#transformer), 105 returnValue: _FakeTransformer_3( 106 this, 107 Invocation.getter(#transformer), 108 ), 109 ) 110 as _i5.Transformer); 111 112 @override 113 set options(_i2.BaseOptions? value) => super.noSuchMethod( 114 Invocation.setter(#options, value), 115 returnValueForMissingStub: null, 116 ); 117 118 @override 119 set httpClientAdapter(_i4.HttpClientAdapter? value) => super.noSuchMethod( 120 Invocation.setter(#httpClientAdapter, value), 121 returnValueForMissingStub: null, 122 ); 123 124 @override 125 set transformer(_i5.Transformer? value) => super.noSuchMethod( 126 Invocation.setter(#transformer, value), 127 returnValueForMissingStub: null, 128 ); 129 130 @override 131 void close({bool? force = false}) => super.noSuchMethod( 132 Invocation.method(#close, [], {#force: force}), 133 returnValueForMissingStub: null, 134 ); 135 136 @override 137 _i8.Future<_i6.Response<T>> head<T>( 138 String? path, { 139 Object? data, 140 Map<String, dynamic>? queryParameters, 141 _i2.Options? options, 142 _i9.CancelToken? cancelToken, 143 }) => 144 (super.noSuchMethod( 145 Invocation.method( 146 #head, 147 [path], 148 { 149 #data: data, 150 #queryParameters: queryParameters, 151 #options: options, 152 #cancelToken: cancelToken, 153 }, 154 ), 155 returnValue: _i8.Future<_i6.Response<T>>.value( 156 _FakeResponse_4<T>( 157 this, 158 Invocation.method( 159 #head, 160 [path], 161 { 162 #data: data, 163 #queryParameters: queryParameters, 164 #options: options, 165 #cancelToken: cancelToken, 166 }, 167 ), 168 ), 169 ), 170 ) 171 as _i8.Future<_i6.Response<T>>); 172 173 @override 174 _i8.Future<_i6.Response<T>> headUri<T>( 175 Uri? uri, { 176 Object? data, 177 _i2.Options? options, 178 _i9.CancelToken? cancelToken, 179 }) => 180 (super.noSuchMethod( 181 Invocation.method( 182 #headUri, 183 [uri], 184 {#data: data, #options: options, #cancelToken: cancelToken}, 185 ), 186 returnValue: _i8.Future<_i6.Response<T>>.value( 187 _FakeResponse_4<T>( 188 this, 189 Invocation.method( 190 #headUri, 191 [uri], 192 {#data: data, #options: options, #cancelToken: cancelToken}, 193 ), 194 ), 195 ), 196 ) 197 as _i8.Future<_i6.Response<T>>); 198 199 @override 200 _i8.Future<_i6.Response<T>> get<T>( 201 String? path, { 202 Object? data, 203 Map<String, dynamic>? queryParameters, 204 _i2.Options? options, 205 _i9.CancelToken? cancelToken, 206 _i2.ProgressCallback? onReceiveProgress, 207 }) => 208 (super.noSuchMethod( 209 Invocation.method( 210 #get, 211 [path], 212 { 213 #data: data, 214 #queryParameters: queryParameters, 215 #options: options, 216 #cancelToken: cancelToken, 217 #onReceiveProgress: onReceiveProgress, 218 }, 219 ), 220 returnValue: _i8.Future<_i6.Response<T>>.value( 221 _FakeResponse_4<T>( 222 this, 223 Invocation.method( 224 #get, 225 [path], 226 { 227 #data: data, 228 #queryParameters: queryParameters, 229 #options: options, 230 #cancelToken: cancelToken, 231 #onReceiveProgress: onReceiveProgress, 232 }, 233 ), 234 ), 235 ), 236 ) 237 as _i8.Future<_i6.Response<T>>); 238 239 @override 240 _i8.Future<_i6.Response<T>> getUri<T>( 241 Uri? uri, { 242 Object? data, 243 _i2.Options? options, 244 _i9.CancelToken? cancelToken, 245 _i2.ProgressCallback? onReceiveProgress, 246 }) => 247 (super.noSuchMethod( 248 Invocation.method( 249 #getUri, 250 [uri], 251 { 252 #data: data, 253 #options: options, 254 #cancelToken: cancelToken, 255 #onReceiveProgress: onReceiveProgress, 256 }, 257 ), 258 returnValue: _i8.Future<_i6.Response<T>>.value( 259 _FakeResponse_4<T>( 260 this, 261 Invocation.method( 262 #getUri, 263 [uri], 264 { 265 #data: data, 266 #options: options, 267 #cancelToken: cancelToken, 268 #onReceiveProgress: onReceiveProgress, 269 }, 270 ), 271 ), 272 ), 273 ) 274 as _i8.Future<_i6.Response<T>>); 275 276 @override 277 _i8.Future<_i6.Response<T>> post<T>( 278 String? path, { 279 Object? data, 280 Map<String, dynamic>? queryParameters, 281 _i2.Options? options, 282 _i9.CancelToken? cancelToken, 283 _i2.ProgressCallback? onSendProgress, 284 _i2.ProgressCallback? onReceiveProgress, 285 }) => 286 (super.noSuchMethod( 287 Invocation.method( 288 #post, 289 [path], 290 { 291 #data: data, 292 #queryParameters: queryParameters, 293 #options: options, 294 #cancelToken: cancelToken, 295 #onSendProgress: onSendProgress, 296 #onReceiveProgress: onReceiveProgress, 297 }, 298 ), 299 returnValue: _i8.Future<_i6.Response<T>>.value( 300 _FakeResponse_4<T>( 301 this, 302 Invocation.method( 303 #post, 304 [path], 305 { 306 #data: data, 307 #queryParameters: queryParameters, 308 #options: options, 309 #cancelToken: cancelToken, 310 #onSendProgress: onSendProgress, 311 #onReceiveProgress: onReceiveProgress, 312 }, 313 ), 314 ), 315 ), 316 ) 317 as _i8.Future<_i6.Response<T>>); 318 319 @override 320 _i8.Future<_i6.Response<T>> postUri<T>( 321 Uri? uri, { 322 Object? data, 323 _i2.Options? options, 324 _i9.CancelToken? cancelToken, 325 _i2.ProgressCallback? onSendProgress, 326 _i2.ProgressCallback? onReceiveProgress, 327 }) => 328 (super.noSuchMethod( 329 Invocation.method( 330 #postUri, 331 [uri], 332 { 333 #data: data, 334 #options: options, 335 #cancelToken: cancelToken, 336 #onSendProgress: onSendProgress, 337 #onReceiveProgress: onReceiveProgress, 338 }, 339 ), 340 returnValue: _i8.Future<_i6.Response<T>>.value( 341 _FakeResponse_4<T>( 342 this, 343 Invocation.method( 344 #postUri, 345 [uri], 346 { 347 #data: data, 348 #options: options, 349 #cancelToken: cancelToken, 350 #onSendProgress: onSendProgress, 351 #onReceiveProgress: onReceiveProgress, 352 }, 353 ), 354 ), 355 ), 356 ) 357 as _i8.Future<_i6.Response<T>>); 358 359 @override 360 _i8.Future<_i6.Response<T>> put<T>( 361 String? path, { 362 Object? data, 363 Map<String, dynamic>? queryParameters, 364 _i2.Options? options, 365 _i9.CancelToken? cancelToken, 366 _i2.ProgressCallback? onSendProgress, 367 _i2.ProgressCallback? onReceiveProgress, 368 }) => 369 (super.noSuchMethod( 370 Invocation.method( 371 #put, 372 [path], 373 { 374 #data: data, 375 #queryParameters: queryParameters, 376 #options: options, 377 #cancelToken: cancelToken, 378 #onSendProgress: onSendProgress, 379 #onReceiveProgress: onReceiveProgress, 380 }, 381 ), 382 returnValue: _i8.Future<_i6.Response<T>>.value( 383 _FakeResponse_4<T>( 384 this, 385 Invocation.method( 386 #put, 387 [path], 388 { 389 #data: data, 390 #queryParameters: queryParameters, 391 #options: options, 392 #cancelToken: cancelToken, 393 #onSendProgress: onSendProgress, 394 #onReceiveProgress: onReceiveProgress, 395 }, 396 ), 397 ), 398 ), 399 ) 400 as _i8.Future<_i6.Response<T>>); 401 402 @override 403 _i8.Future<_i6.Response<T>> putUri<T>( 404 Uri? uri, { 405 Object? data, 406 _i2.Options? options, 407 _i9.CancelToken? cancelToken, 408 _i2.ProgressCallback? onSendProgress, 409 _i2.ProgressCallback? onReceiveProgress, 410 }) => 411 (super.noSuchMethod( 412 Invocation.method( 413 #putUri, 414 [uri], 415 { 416 #data: data, 417 #options: options, 418 #cancelToken: cancelToken, 419 #onSendProgress: onSendProgress, 420 #onReceiveProgress: onReceiveProgress, 421 }, 422 ), 423 returnValue: _i8.Future<_i6.Response<T>>.value( 424 _FakeResponse_4<T>( 425 this, 426 Invocation.method( 427 #putUri, 428 [uri], 429 { 430 #data: data, 431 #options: options, 432 #cancelToken: cancelToken, 433 #onSendProgress: onSendProgress, 434 #onReceiveProgress: onReceiveProgress, 435 }, 436 ), 437 ), 438 ), 439 ) 440 as _i8.Future<_i6.Response<T>>); 441 442 @override 443 _i8.Future<_i6.Response<T>> patch<T>( 444 String? path, { 445 Object? data, 446 Map<String, dynamic>? queryParameters, 447 _i2.Options? options, 448 _i9.CancelToken? cancelToken, 449 _i2.ProgressCallback? onSendProgress, 450 _i2.ProgressCallback? onReceiveProgress, 451 }) => 452 (super.noSuchMethod( 453 Invocation.method( 454 #patch, 455 [path], 456 { 457 #data: data, 458 #queryParameters: queryParameters, 459 #options: options, 460 #cancelToken: cancelToken, 461 #onSendProgress: onSendProgress, 462 #onReceiveProgress: onReceiveProgress, 463 }, 464 ), 465 returnValue: _i8.Future<_i6.Response<T>>.value( 466 _FakeResponse_4<T>( 467 this, 468 Invocation.method( 469 #patch, 470 [path], 471 { 472 #data: data, 473 #queryParameters: queryParameters, 474 #options: options, 475 #cancelToken: cancelToken, 476 #onSendProgress: onSendProgress, 477 #onReceiveProgress: onReceiveProgress, 478 }, 479 ), 480 ), 481 ), 482 ) 483 as _i8.Future<_i6.Response<T>>); 484 485 @override 486 _i8.Future<_i6.Response<T>> patchUri<T>( 487 Uri? uri, { 488 Object? data, 489 _i2.Options? options, 490 _i9.CancelToken? cancelToken, 491 _i2.ProgressCallback? onSendProgress, 492 _i2.ProgressCallback? onReceiveProgress, 493 }) => 494 (super.noSuchMethod( 495 Invocation.method( 496 #patchUri, 497 [uri], 498 { 499 #data: data, 500 #options: options, 501 #cancelToken: cancelToken, 502 #onSendProgress: onSendProgress, 503 #onReceiveProgress: onReceiveProgress, 504 }, 505 ), 506 returnValue: _i8.Future<_i6.Response<T>>.value( 507 _FakeResponse_4<T>( 508 this, 509 Invocation.method( 510 #patchUri, 511 [uri], 512 { 513 #data: data, 514 #options: options, 515 #cancelToken: cancelToken, 516 #onSendProgress: onSendProgress, 517 #onReceiveProgress: onReceiveProgress, 518 }, 519 ), 520 ), 521 ), 522 ) 523 as _i8.Future<_i6.Response<T>>); 524 525 @override 526 _i8.Future<_i6.Response<T>> delete<T>( 527 String? path, { 528 Object? data, 529 Map<String, dynamic>? queryParameters, 530 _i2.Options? options, 531 _i9.CancelToken? cancelToken, 532 }) => 533 (super.noSuchMethod( 534 Invocation.method( 535 #delete, 536 [path], 537 { 538 #data: data, 539 #queryParameters: queryParameters, 540 #options: options, 541 #cancelToken: cancelToken, 542 }, 543 ), 544 returnValue: _i8.Future<_i6.Response<T>>.value( 545 _FakeResponse_4<T>( 546 this, 547 Invocation.method( 548 #delete, 549 [path], 550 { 551 #data: data, 552 #queryParameters: queryParameters, 553 #options: options, 554 #cancelToken: cancelToken, 555 }, 556 ), 557 ), 558 ), 559 ) 560 as _i8.Future<_i6.Response<T>>); 561 562 @override 563 _i8.Future<_i6.Response<T>> deleteUri<T>( 564 Uri? uri, { 565 Object? data, 566 _i2.Options? options, 567 _i9.CancelToken? cancelToken, 568 }) => 569 (super.noSuchMethod( 570 Invocation.method( 571 #deleteUri, 572 [uri], 573 {#data: data, #options: options, #cancelToken: cancelToken}, 574 ), 575 returnValue: _i8.Future<_i6.Response<T>>.value( 576 _FakeResponse_4<T>( 577 this, 578 Invocation.method( 579 #deleteUri, 580 [uri], 581 {#data: data, #options: options, #cancelToken: cancelToken}, 582 ), 583 ), 584 ), 585 ) 586 as _i8.Future<_i6.Response<T>>); 587 588 @override 589 _i8.Future<_i6.Response<dynamic>> download( 590 String? urlPath, 591 dynamic savePath, { 592 _i2.ProgressCallback? onReceiveProgress, 593 Map<String, dynamic>? queryParameters, 594 _i9.CancelToken? cancelToken, 595 bool? deleteOnError = true, 596 _i2.FileAccessMode? fileAccessMode = _i2.FileAccessMode.write, 597 String? lengthHeader = 'content-length', 598 Object? data, 599 _i2.Options? options, 600 }) => 601 (super.noSuchMethod( 602 Invocation.method( 603 #download, 604 [urlPath, savePath], 605 { 606 #onReceiveProgress: onReceiveProgress, 607 #queryParameters: queryParameters, 608 #cancelToken: cancelToken, 609 #deleteOnError: deleteOnError, 610 #fileAccessMode: fileAccessMode, 611 #lengthHeader: lengthHeader, 612 #data: data, 613 #options: options, 614 }, 615 ), 616 returnValue: _i8.Future<_i6.Response<dynamic>>.value( 617 _FakeResponse_4<dynamic>( 618 this, 619 Invocation.method( 620 #download, 621 [urlPath, savePath], 622 { 623 #onReceiveProgress: onReceiveProgress, 624 #queryParameters: queryParameters, 625 #cancelToken: cancelToken, 626 #deleteOnError: deleteOnError, 627 #fileAccessMode: fileAccessMode, 628 #lengthHeader: lengthHeader, 629 #data: data, 630 #options: options, 631 }, 632 ), 633 ), 634 ), 635 ) 636 as _i8.Future<_i6.Response<dynamic>>); 637 638 @override 639 _i8.Future<_i6.Response<dynamic>> downloadUri( 640 Uri? uri, 641 dynamic savePath, { 642 _i2.ProgressCallback? onReceiveProgress, 643 _i9.CancelToken? cancelToken, 644 bool? deleteOnError = true, 645 _i2.FileAccessMode? fileAccessMode = _i2.FileAccessMode.write, 646 String? lengthHeader = 'content-length', 647 Object? data, 648 _i2.Options? options, 649 }) => 650 (super.noSuchMethod( 651 Invocation.method( 652 #downloadUri, 653 [uri, savePath], 654 { 655 #onReceiveProgress: onReceiveProgress, 656 #cancelToken: cancelToken, 657 #deleteOnError: deleteOnError, 658 #fileAccessMode: fileAccessMode, 659 #lengthHeader: lengthHeader, 660 #data: data, 661 #options: options, 662 }, 663 ), 664 returnValue: _i8.Future<_i6.Response<dynamic>>.value( 665 _FakeResponse_4<dynamic>( 666 this, 667 Invocation.method( 668 #downloadUri, 669 [uri, savePath], 670 { 671 #onReceiveProgress: onReceiveProgress, 672 #cancelToken: cancelToken, 673 #deleteOnError: deleteOnError, 674 #fileAccessMode: fileAccessMode, 675 #lengthHeader: lengthHeader, 676 #data: data, 677 #options: options, 678 }, 679 ), 680 ), 681 ), 682 ) 683 as _i8.Future<_i6.Response<dynamic>>); 684 685 @override 686 _i8.Future<_i6.Response<T>> request<T>( 687 String? url, { 688 Object? data, 689 Map<String, dynamic>? queryParameters, 690 _i9.CancelToken? cancelToken, 691 _i2.Options? options, 692 _i2.ProgressCallback? onSendProgress, 693 _i2.ProgressCallback? onReceiveProgress, 694 }) => 695 (super.noSuchMethod( 696 Invocation.method( 697 #request, 698 [url], 699 { 700 #data: data, 701 #queryParameters: queryParameters, 702 #cancelToken: cancelToken, 703 #options: options, 704 #onSendProgress: onSendProgress, 705 #onReceiveProgress: onReceiveProgress, 706 }, 707 ), 708 returnValue: _i8.Future<_i6.Response<T>>.value( 709 _FakeResponse_4<T>( 710 this, 711 Invocation.method( 712 #request, 713 [url], 714 { 715 #data: data, 716 #queryParameters: queryParameters, 717 #cancelToken: cancelToken, 718 #options: options, 719 #onSendProgress: onSendProgress, 720 #onReceiveProgress: onReceiveProgress, 721 }, 722 ), 723 ), 724 ), 725 ) 726 as _i8.Future<_i6.Response<T>>); 727 728 @override 729 _i8.Future<_i6.Response<T>> requestUri<T>( 730 Uri? uri, { 731 Object? data, 732 _i9.CancelToken? cancelToken, 733 _i2.Options? options, 734 _i2.ProgressCallback? onSendProgress, 735 _i2.ProgressCallback? onReceiveProgress, 736 }) => 737 (super.noSuchMethod( 738 Invocation.method( 739 #requestUri, 740 [uri], 741 { 742 #data: data, 743 #cancelToken: cancelToken, 744 #options: options, 745 #onSendProgress: onSendProgress, 746 #onReceiveProgress: onReceiveProgress, 747 }, 748 ), 749 returnValue: _i8.Future<_i6.Response<T>>.value( 750 _FakeResponse_4<T>( 751 this, 752 Invocation.method( 753 #requestUri, 754 [uri], 755 { 756 #data: data, 757 #cancelToken: cancelToken, 758 #options: options, 759 #onSendProgress: onSendProgress, 760 #onReceiveProgress: onReceiveProgress, 761 }, 762 ), 763 ), 764 ), 765 ) 766 as _i8.Future<_i6.Response<T>>); 767 768 @override 769 _i8.Future<_i6.Response<T>> fetch<T>(_i2.RequestOptions? requestOptions) => 770 (super.noSuchMethod( 771 Invocation.method(#fetch, [requestOptions]), 772 returnValue: _i8.Future<_i6.Response<T>>.value( 773 _FakeResponse_4<T>( 774 this, 775 Invocation.method(#fetch, [requestOptions]), 776 ), 777 ), 778 ) 779 as _i8.Future<_i6.Response<T>>); 780 781 @override 782 _i7.Dio clone({ 783 _i2.BaseOptions? options, 784 _i3.Interceptors? interceptors, 785 _i4.HttpClientAdapter? httpClientAdapter, 786 _i5.Transformer? transformer, 787 }) => 788 (super.noSuchMethod( 789 Invocation.method(#clone, [], { 790 #options: options, 791 #interceptors: interceptors, 792 #httpClientAdapter: httpClientAdapter, 793 #transformer: transformer, 794 }), 795 returnValue: _FakeDio_5( 796 this, 797 Invocation.method(#clone, [], { 798 #options: options, 799 #interceptors: interceptors, 800 #httpClientAdapter: httpClientAdapter, 801 #transformer: transformer, 802 }), 803 ), 804 ) 805 as _i7.Dio); 806}