// Mocks generated by Mockito 5.3.0 from annotations // in fl_query/test/query_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes import 'dart:async' as _i4; import 'package:connectivity_plus/connectivity_plus.dart' as _i6; import 'package:fl_query/fl_query.dart' as _i3; import 'package:fl_query/src/query_cache.dart' as _i2; import 'package:flutter/cupertino.dart' as _i5; 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: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: prefer_const_constructors // ignore_for_file: unnecessary_parenthesis // ignore_for_file: camel_case_types // ignore_for_file: subtype_of_sealed_class class _FakeDuration_0 extends _i1.SmartFake implements Duration { _FakeDuration_0(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); } class _FakeQueryCache_1 extends _i1.SmartFake implements _i2.QueryCache { _FakeQueryCache_1(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); } class _FakeQuery_2 extends _i1.SmartFake implements _i3.Query { _FakeQuery_2(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); } class _FakeInfiniteQuery_3 extends _i1.SmartFake implements _i3.InfiniteQuery { _FakeInfiniteQuery_3(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); } class _FakeMutation_4 extends _i1.SmartFake implements _i3.Mutation { _FakeMutation_4(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); } class _FakeObject_5 extends _i1.SmartFake implements Object { _FakeObject_5(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); } /// A class which mocks [QueryBowl]. /// /// See the documentation for Mockito's code generation for more information. class MockQueryBowl extends _i1.Mock implements _i3.QueryBowl { MockQueryBowl() { _i1.throwOnMissingStub(this); } @override Duration get staleTime => (super.noSuchMethod(Invocation.getter(#staleTime), returnValue: _FakeDuration_0(this, Invocation.getter(#staleTime))) as Duration); @override bool get refetchOnMount => (super .noSuchMethod(Invocation.getter(#refetchOnMount), returnValue: false) as bool); @override bool get refetchOnWindowFocus => (super.noSuchMethod(Invocation.getter(#refetchOnWindowFocus), returnValue: false) as bool); @override bool get refetchOnApplicationResume => (super.noSuchMethod(Invocation.getter(#refetchOnApplicationResume), returnValue: false) as bool); @override bool get refetchOnReconnect => (super.noSuchMethod(Invocation.getter(#refetchOnReconnect), returnValue: false) as bool); @override Duration get refetchOnReconnectDelay => (super.noSuchMethod(Invocation.getter(#refetchOnReconnectDelay), returnValue: _FakeDuration_0( this, Invocation.getter(#refetchOnReconnectDelay))) as Duration); @override bool get refetchOnExternalDataChange => (super.noSuchMethod(Invocation.getter(#refetchOnExternalDataChange), returnValue: false) as bool); @override Duration get refetchInterval => (super.noSuchMethod(Invocation.getter(#refetchInterval), returnValue: _FakeDuration_0(this, Invocation.getter(#refetchInterval))) as Duration); @override _i2.QueryCache get cache => (super.noSuchMethod(Invocation.getter(#cache), returnValue: _FakeQueryCache_1(this, Invocation.getter(#cache))) as _i2.QueryCache); @override set cache(_i2.QueryCache? _cache) => super.noSuchMethod(Invocation.setter(#cache, _cache), returnValueForMissingStub: null); @override int get isFetching => (super.noSuchMethod(Invocation.getter(#isFetching), returnValue: 0) as int); @override int get isMutating => (super.noSuchMethod(Invocation.getter(#isMutating), returnValue: 0) as int); @override void onQueriesUpdate( void Function(_i3.Query)? listener) => super.noSuchMethod(Invocation.method(#onQueriesUpdate, [listener]), returnValueForMissingStub: null); @override void onMutationsUpdate( void Function(_i3.Mutation)? listener) => super.noSuchMethod(Invocation.method(#onMutationsUpdate, [listener]), returnValueForMissingStub: null); @override void onInfiniteQueriesUpdate( void Function(_i3.InfiniteQuery)? listener) => super.noSuchMethod( Invocation.method(#onInfiniteQueriesUpdate, [listener]), returnValueForMissingStub: null); @override _i3.InfiniteQuery? getInfiniteQuery( String? queryKey) => (super.noSuchMethod(Invocation.method(#getInfiniteQuery, [queryKey])) as _i3.InfiniteQuery?); @override _i3.Query? getQuery( String? queryKey) => (super.noSuchMethod(Invocation.method(#getQuery, [queryKey])) as _i3.Query?); @override _i3.Mutation? getMutation(String? mutationKey) => (super.noSuchMethod(Invocation.method(#getMutation, [mutationKey])) as _i3.Mutation?); @override void setQueryData( String? queryKey, _i3.QueryUpdateFunction? updateCb) => super.noSuchMethod(Invocation.method(#setQueryData, [queryKey, updateCb]), returnValueForMissingStub: null); @override void setInfiniteQueryData( String? queryKey, _i3.QueryUpdateFunction>? updateCb) => super.noSuchMethod( Invocation.method(#setInfiniteQueryData, [queryKey, updateCb]), returnValueForMissingStub: null); @override void resetQueries(List? queryKeys) => super.noSuchMethod(Invocation.method(#resetQueries, [queryKeys]), returnValueForMissingStub: null); @override void invalidateQueries(List? queryKeys) => super.noSuchMethod(Invocation.method(#invalidateQueries, [queryKeys]), returnValueForMissingStub: null); @override _i4.Future refetchQueries(List? queryKeys) => (super.noSuchMethod(Invocation.method(#refetchQueries, [queryKeys]), returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value()) as _i4.Future); @override int removeQueries(List? queryKeys) => (super.noSuchMethod(Invocation.method(#removeQueries, [queryKeys]), returnValue: 0) as int); @override _i3.Query addQuery( _i3.QueryJob? queryJob, {Outside? externalData, _i5.ValueKey? key, _i3.QueryListener? onData, _i3.QueryListener? onError, T? previousData}) => (super.noSuchMethod( Invocation.method(#addQuery, [ queryJob ], { #externalData: externalData, #key: key, #onData: onData, #onError: onError, #previousData: previousData }), returnValue: _FakeQuery_2( this, Invocation.method(#addQuery, [ queryJob ], { #externalData: externalData, #key: key, #onData: onData, #onError: onError, #previousData: previousData }))) as _i3.Query); @override _i3.InfiniteQuery addInfiniteQuery( _i3.InfiniteQueryJob? infiniteQueryJob, {Outside? externalData, _i5.ValueKey? key, _i3.InfiniteQueryListeners? onData, _i3.InfiniteQueryListeners? onError}) => (super.noSuchMethod(Invocation.method(#addInfiniteQuery, [infiniteQueryJob], {#externalData: externalData, #key: key, #onData: onData, #onError: onError}), returnValue: _FakeInfiniteQuery_3( this, Invocation.method(#addInfiniteQuery, [ infiniteQueryJob ], { #externalData: externalData, #key: key, #onData: onData, #onError: onError }))) as _i3.InfiniteQuery); @override _i3.Mutation addMutation( _i3.MutationJob? mutationJob, {_i3.MutationListener? onData, _i3.MutationListener? onError, _i3.MutationListenerReturnable? onMutate, _i5.ValueKey? key}) => (super .noSuchMethod(Invocation.method(#addMutation, [mutationJob], {#onData: onData, #onError: onError, #onMutate: onMutate, #key: key}), returnValue: _FakeMutation_4( this, Invocation.method(#addMutation, [ mutationJob ], { #onData: onData, #onError: onError, #onMutate: onMutate, #key: key }))) as _i3.Mutation); @override _i4.Future fetchQuery( _i3.QueryJob? options, {Outside? externalData, _i3.QueryListener? onData, _i3.QueryListener? onError, _i5.ValueKey? key}) => (super.noSuchMethod( Invocation.method(#fetchQuery, [ options ], { #externalData: externalData, #onData: onData, #onError: onError, #key: key }), returnValue: _i4.Future.value()) as _i4.Future); } /// A class which mocks [Connectivity]. /// /// See the documentation for Mockito's code generation for more information. class MockConnectivity extends _i1.Mock implements _i6.Connectivity { MockConnectivity() { _i1.throwOnMissingStub(this); } @override _i4.Stream<_i6.ConnectivityResult> get onConnectivityChanged => (super.noSuchMethod(Invocation.getter(#onConnectivityChanged), returnValue: _i4.Stream<_i6.ConnectivityResult>.empty()) as _i4.Stream<_i6.ConnectivityResult>); @override _i4.Future<_i6.ConnectivityResult> checkConnectivity() => (super.noSuchMethod(Invocation.method(#checkConnectivity, []), returnValue: _i4.Future<_i6.ConnectivityResult>.value( _i6.ConnectivityResult.bluetooth)) as _i4.Future<_i6.ConnectivityResult>); } /// A class which mocks [QueryJob]. /// /// See the documentation for Mockito's code generation for more information. class MockQueryJobVoidObject extends _i1.Mock implements _i3.QueryJob { @override _i3.QueryTaskFunction get task => (super.noSuchMethod(Invocation.getter(#task), returnValue: (String queryKey, void externalData) => _i4.Future.value( _FakeObject_5(this, Invocation.getter(#task)))) as _i3.QueryTaskFunction); @override set task(_i3.QueryTaskFunction? _task) => super.noSuchMethod(Invocation.setter(#task, _task), returnValueForMissingStub: null); @override set initialData(Object? _initialData) => super.noSuchMethod(Invocation.setter(#initialData, _initialData), returnValueForMissingStub: null); @override bool get isDynamic => (super.noSuchMethod(Invocation.getter(#isDynamic), returnValue: false) as bool); @override set isDynamic(bool? _isDynamic) => super.noSuchMethod(Invocation.setter(#isDynamic, _isDynamic), returnValueForMissingStub: null); @override String get queryKey => (super.noSuchMethod(Invocation.getter(#queryKey), returnValue: '') as String); }