at main 5.1 kB view raw
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<_i2.VoteResponse> createVote({ 43 required String? postUri, 44 required String? postCid, 45 String? direction = 'up', 46 }) => 47 (super.noSuchMethod( 48 Invocation.method(#createVote, [], { 49 #postUri: postUri, 50 #postCid: postCid, 51 #direction: direction, 52 }), 53 returnValue: _i3.Future<_i2.VoteResponse>.value( 54 _FakeVoteResponse_0( 55 this, 56 Invocation.method(#createVote, [], { 57 #postUri: postUri, 58 #postCid: postCid, 59 #direction: direction, 60 }), 61 ), 62 ), 63 ) 64 as _i3.Future<_i2.VoteResponse>); 65} 66 67/// A class which mocks [AuthProvider]. 68/// 69/// See the documentation for Mockito's code generation for more information. 70class MockAuthProvider extends _i1.Mock implements _i4.AuthProvider { 71 MockAuthProvider() { 72 _i1.throwOnMissingStub(this); 73 } 74 75 @override 76 bool get isAuthenticated => 77 (super.noSuchMethod( 78 Invocation.getter(#isAuthenticated), 79 returnValue: false, 80 ) 81 as bool); 82 83 @override 84 bool get isLoading => 85 (super.noSuchMethod(Invocation.getter(#isLoading), returnValue: false) 86 as bool); 87 88 @override 89 bool get hasListeners => 90 (super.noSuchMethod(Invocation.getter(#hasListeners), returnValue: false) 91 as bool); 92 93 @override 94 _i3.Future<String?> getAccessToken() => 95 (super.noSuchMethod( 96 Invocation.method(#getAccessToken, []), 97 returnValue: _i3.Future<String?>.value(), 98 ) 99 as _i3.Future<String?>); 100 101 @override 102 _i3.Future<void> initialize() => 103 (super.noSuchMethod( 104 Invocation.method(#initialize, []), 105 returnValue: _i3.Future<void>.value(), 106 returnValueForMissingStub: _i3.Future<void>.value(), 107 ) 108 as _i3.Future<void>); 109 110 @override 111 _i3.Future<void> signIn(String? handle) => 112 (super.noSuchMethod( 113 Invocation.method(#signIn, [handle]), 114 returnValue: _i3.Future<void>.value(), 115 returnValueForMissingStub: _i3.Future<void>.value(), 116 ) 117 as _i3.Future<void>); 118 119 @override 120 _i3.Future<void> signOut() => 121 (super.noSuchMethod( 122 Invocation.method(#signOut, []), 123 returnValue: _i3.Future<void>.value(), 124 returnValueForMissingStub: _i3.Future<void>.value(), 125 ) 126 as _i3.Future<void>); 127 128 @override 129 _i3.Future<bool> refreshToken() => 130 (super.noSuchMethod( 131 Invocation.method(#refreshToken, []), 132 returnValue: _i3.Future<bool>.value(false), 133 ) 134 as _i3.Future<bool>); 135 136 @override 137 void clearError() => super.noSuchMethod( 138 Invocation.method(#clearError, []), 139 returnValueForMissingStub: null, 140 ); 141 142 @override 143 void addListener(_i5.VoidCallback? listener) => super.noSuchMethod( 144 Invocation.method(#addListener, [listener]), 145 returnValueForMissingStub: null, 146 ); 147 148 @override 149 void removeListener(_i5.VoidCallback? listener) => super.noSuchMethod( 150 Invocation.method(#removeListener, [listener]), 151 returnValueForMissingStub: null, 152 ); 153 154 @override 155 void dispose() => super.noSuchMethod( 156 Invocation.method(#dispose, []), 157 returnValueForMissingStub: null, 158 ); 159 160 @override 161 void notifyListeners() => super.noSuchMethod( 162 Invocation.method(#notifyListeners, []), 163 returnValueForMissingStub: null, 164 ); 165}