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 void clearError() => super.noSuchMethod( 105 Invocation.method(#clearError, []), 106 returnValueForMissingStub: null, 107 ); 108 109 @override 110 void dispose() => super.noSuchMethod( 111 Invocation.method(#dispose, []), 112 returnValueForMissingStub: null, 113 ); 114 115 @override 116 void addListener(_i6.VoidCallback? listener) => super.noSuchMethod( 117 Invocation.method(#addListener, [listener]), 118 returnValueForMissingStub: null, 119 ); 120 121 @override 122 void removeListener(_i6.VoidCallback? listener) => super.noSuchMethod( 123 Invocation.method(#removeListener, [listener]), 124 returnValueForMissingStub: null, 125 ); 126 127 @override 128 void notifyListeners() => super.noSuchMethod( 129 Invocation.method(#notifyListeners, []), 130 returnValueForMissingStub: null, 131 ); 132} 133 134/// A class which mocks [CovesApiService]. 135/// 136/// See the documentation for Mockito's code generation for more information. 137class MockCovesApiService extends _i1.Mock implements _i7.CovesApiService { 138 MockCovesApiService() { 139 _i1.throwOnMissingStub(this); 140 } 141 142 @override 143 _i5.Future<_i2.TimelineResponse> getTimeline({ 144 String? sort = 'hot', 145 String? timeframe, 146 int? limit = 15, 147 String? cursor, 148 }) => 149 (super.noSuchMethod( 150 Invocation.method(#getTimeline, [], { 151 #sort: sort, 152 #timeframe: timeframe, 153 #limit: limit, 154 #cursor: cursor, 155 }), 156 returnValue: _i5.Future<_i2.TimelineResponse>.value( 157 _FakeTimelineResponse_0( 158 this, 159 Invocation.method(#getTimeline, [], { 160 #sort: sort, 161 #timeframe: timeframe, 162 #limit: limit, 163 #cursor: cursor, 164 }), 165 ), 166 ), 167 ) 168 as _i5.Future<_i2.TimelineResponse>); 169 170 @override 171 _i5.Future<_i2.TimelineResponse> getDiscover({ 172 String? sort = 'hot', 173 String? timeframe, 174 int? limit = 15, 175 String? cursor, 176 }) => 177 (super.noSuchMethod( 178 Invocation.method(#getDiscover, [], { 179 #sort: sort, 180 #timeframe: timeframe, 181 #limit: limit, 182 #cursor: cursor, 183 }), 184 returnValue: _i5.Future<_i2.TimelineResponse>.value( 185 _FakeTimelineResponse_0( 186 this, 187 Invocation.method(#getDiscover, [], { 188 #sort: sort, 189 #timeframe: timeframe, 190 #limit: limit, 191 #cursor: cursor, 192 }), 193 ), 194 ), 195 ) 196 as _i5.Future<_i2.TimelineResponse>); 197 198 @override 199 _i5.Future<_i3.CommentsResponse> getComments({ 200 required String? postUri, 201 String? sort = 'hot', 202 String? timeframe, 203 int? depth = 10, 204 int? limit = 50, 205 String? cursor, 206 }) => 207 (super.noSuchMethod( 208 Invocation.method(#getComments, [], { 209 #postUri: postUri, 210 #sort: sort, 211 #timeframe: timeframe, 212 #depth: depth, 213 #limit: limit, 214 #cursor: cursor, 215 }), 216 returnValue: _i5.Future<_i3.CommentsResponse>.value( 217 _FakeCommentsResponse_1( 218 this, 219 Invocation.method(#getComments, [], { 220 #postUri: postUri, 221 #sort: sort, 222 #timeframe: timeframe, 223 #depth: depth, 224 #limit: limit, 225 #cursor: cursor, 226 }), 227 ), 228 ), 229 ) 230 as _i5.Future<_i3.CommentsResponse>); 231 232 @override 233 void dispose() => super.noSuchMethod( 234 Invocation.method(#dispose, []), 235 returnValueForMissingStub: null, 236 ); 237}