// Mocks generated by Mockito 5.4.6 from annotations // in coves_flutter/test/providers/vote_provider_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes import 'dart:async' as _i3; import 'dart:ui' as _i5; import 'package:coves_flutter/providers/auth_provider.dart' as _i4; import 'package:coves_flutter/services/vote_service.dart' as _i2; import 'package:mockito/mockito.dart' as _i1; // ignore_for_file: type=lint // ignore_for_file: avoid_redundant_argument_values // ignore_for_file: avoid_setters_without_getters // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable // ignore_for_file: prefer_const_constructors // ignore_for_file: unnecessary_parenthesis // ignore_for_file: camel_case_types // ignore_for_file: subtype_of_sealed_class // ignore_for_file: invalid_use_of_internal_member class _FakeVoteResponse_0 extends _i1.SmartFake implements _i2.VoteResponse { _FakeVoteResponse_0(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); } /// A class which mocks [VoteService]. /// /// See the documentation for Mockito's code generation for more information. class MockVoteService extends _i1.Mock implements _i2.VoteService { MockVoteService() { _i1.throwOnMissingStub(this); } @override _i3.Future> getUserVotes() => (super.noSuchMethod( Invocation.method(#getUserVotes, []), returnValue: _i3.Future>.value( {}, ), ) as _i3.Future>); @override _i3.Future<_i2.VoteResponse> createVote({ required String? postUri, required String? postCid, String? direction = 'up', String? existingVoteRkey, String? existingVoteDirection, }) => (super.noSuchMethod( Invocation.method(#createVote, [], { #postUri: postUri, #postCid: postCid, #direction: direction, #existingVoteRkey: existingVoteRkey, #existingVoteDirection: existingVoteDirection, }), returnValue: _i3.Future<_i2.VoteResponse>.value( _FakeVoteResponse_0( this, Invocation.method(#createVote, [], { #postUri: postUri, #postCid: postCid, #direction: direction, #existingVoteRkey: existingVoteRkey, #existingVoteDirection: existingVoteDirection, }), ), ), ) as _i3.Future<_i2.VoteResponse>); } /// A class which mocks [AuthProvider]. /// /// See the documentation for Mockito's code generation for more information. class MockAuthProvider extends _i1.Mock implements _i4.AuthProvider { MockAuthProvider() { _i1.throwOnMissingStub(this); } @override bool get isAuthenticated => (super.noSuchMethod( Invocation.getter(#isAuthenticated), returnValue: false, ) as bool); @override bool get isLoading => (super.noSuchMethod(Invocation.getter(#isLoading), returnValue: false) as bool); @override bool get hasListeners => (super.noSuchMethod(Invocation.getter(#hasListeners), returnValue: false) as bool); @override _i3.Future getAccessToken() => (super.noSuchMethod( Invocation.method(#getAccessToken, []), returnValue: _i3.Future.value(), ) as _i3.Future); @override _i3.Future initialize() => (super.noSuchMethod( Invocation.method(#initialize, []), returnValue: _i3.Future.value(), returnValueForMissingStub: _i3.Future.value(), ) as _i3.Future); @override _i3.Future signIn(String? handle) => (super.noSuchMethod( Invocation.method(#signIn, [handle]), returnValue: _i3.Future.value(), returnValueForMissingStub: _i3.Future.value(), ) as _i3.Future); @override _i3.Future signOut() => (super.noSuchMethod( Invocation.method(#signOut, []), returnValue: _i3.Future.value(), returnValueForMissingStub: _i3.Future.value(), ) as _i3.Future); @override _i3.Future refreshToken() => (super.noSuchMethod( Invocation.method(#refreshToken, []), returnValue: _i3.Future.value(false), ) as _i3.Future); @override void clearError() => super.noSuchMethod( Invocation.method(#clearError, []), returnValueForMissingStub: null, ); @override void addListener(_i5.VoidCallback? listener) => super.noSuchMethod( Invocation.method(#addListener, [listener]), returnValueForMissingStub: null, ); @override void removeListener(_i5.VoidCallback? listener) => super.noSuchMethod( Invocation.method(#removeListener, [listener]), returnValueForMissingStub: null, ); @override void dispose() => super.noSuchMethod( Invocation.method(#dispose, []), returnValueForMissingStub: null, ); @override void notifyListeners() => super.noSuchMethod( Invocation.method(#notifyListeners, []), returnValueForMissingStub: null, ); }