// Mocks generated by Mockito 5.2.0 from annotations // in fl_query/test/query_test.dart. // Do not manually edit this file. import 'dart:async' as _i7; import 'package:connectivity_plus/connectivity_plus.dart' as _i10; import 'package:fl_query/src/models/mutation_job.dart' as _i9; import 'package:fl_query/src/models/query_job.dart' as _i8; import 'package:fl_query/src/mutation.dart' as _i4; import 'package:fl_query/src/query.dart' as _i3; import 'package:fl_query/src/query_bowl.dart' as _i6; import 'package:flutter/foundation.dart' as _i5; import 'package:flutter/widgets.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: 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 class _FakeDuration_0 extends _i1.Fake implements Duration {} class _FakeWidget_1 extends _i1.Fake implements _i2.Widget { @override String toString({_i2.DiagnosticLevel? minLevel = _i2.DiagnosticLevel.info}) => super.toString(); } class _FakeQuery_2 extends _i1.Fake implements _i3.Query {} class _FakeMutation_3 extends _i1.Fake implements _i4.Mutation {} class _FakeInheritedElement_4 extends _i1.Fake implements _i2.InheritedElement { @override String toString({_i2.DiagnosticLevel? minLevel = _i2.DiagnosticLevel.info}) => super.toString(); } class _FakeDiagnosticsNode_5 extends _i1.Fake implements _i2.DiagnosticsNode { @override String toString( {_i5.TextTreeConfiguration? parentConfiguration, _i2.DiagnosticLevel? minLevel = _i2.DiagnosticLevel.info}) => super.toString(); } class _FakeObject_6 extends _i1.Fake implements Object {} /// A class which mocks [QueryBowl]. /// /// See the documentation for Mockito's code generation for more information. class MockQueryBowl extends _i1.Mock implements _i6.QueryBowl { MockQueryBowl() { _i1.throwOnMissingStub(this); } @override Duration get staleTime => (super.noSuchMethod(Invocation.getter(#staleTime), returnValue: _FakeDuration_0()) as Duration); @override Duration get cacheTime => (super.noSuchMethod(Invocation.getter(#cacheTime), returnValue: _FakeDuration_0()) as Duration); @override bool get refetchOnMount => (super .noSuchMethod(Invocation.getter(#refetchOnMount), returnValue: false) as bool); @override bool get refetchOnReconnect => (super.noSuchMethod(Invocation.getter(#refetchOnReconnect), returnValue: false) as bool); @override bool get refetchOnExternalDataChange => (super.noSuchMethod(Invocation.getter(#refetchOnExternalDataChange), returnValue: false) as bool); @override int Function(List) get removeQueries => (super.noSuchMethod(Invocation.getter(#removeQueries), returnValue: (List __p0) => 0) as int Function(List)); @override void Function() get clear => (super.noSuchMethod(Invocation.getter(#clear), returnValue: () {}) as void Function()); @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 _i2.Widget get child => (super.noSuchMethod(Invocation.getter(#child), returnValue: _FakeWidget_1()) as _i2.Widget); @override _i7.Future fetchQuery( _i8.QueryJob? options, {Outside? externalData, _i3.QueryListener? onData, _i3.QueryListener? onError, _i2.ValueKey? key}) => (super.noSuchMethod( Invocation.method(#fetchQuery, [ options ], { #externalData: externalData, #onData: onData, #onError: onError, #key: key }), returnValue: Future.value()) as _i7.Future); @override _i3.Query addQuery( _i8.QueryJob? queryJob, {Outside? externalData, _i2.ValueKey? key, _i3.QueryListener? onData, _i3.QueryListener? onError}) => (super.noSuchMethod( Invocation.method(#addQuery, [ queryJob ], { #externalData: externalData, #key: key, #onData: onData, #onError: onError }), returnValue: _FakeQuery_2()) as _i3.Query); @override _i4.Mutation addMutation( _i9.MutationJob? mutationJob, {_i4.MutationListener? onData, _i4.MutationListener? onError, _i4.MutationListenerReturnable? onMutate, _i2.ValueKey? key}) => (super.noSuchMethod( Invocation.method(#addMutation, [ mutationJob ], { #onData: onData, #onError: onError, #onMutate: onMutate, #key: key }), returnValue: _FakeMutation_3()) as _i4.Mutation); @override _i3.Query? getQuery( String? queryKey) => (super.noSuchMethod(Invocation.method(#getQuery, [queryKey])) as _i3.Query?); @override _i4.Mutation? getMutation(String? mutationKey) => (super.noSuchMethod(Invocation.method(#getMutation, [mutationKey])) as _i4.Mutation?); @override void setQueryData( String? queryKey, _i3.QueryUpdateFunction? updateCb) => super.noSuchMethod(Invocation.method(#setQueryData, [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 _i7.Future refetchQueries(List? queryKeys) => (super.noSuchMethod(Invocation.method(#refetchQueries, [queryKeys]), returnValue: Future.value(), returnValueForMissingStub: Future.value()) as _i7.Future); @override bool updateShouldNotify(_i2.InheritedWidget? oldWidget) => (super.noSuchMethod(Invocation.method(#updateShouldNotify, [oldWidget]), returnValue: false) as bool); @override _i2.InheritedElement createElement() => (super.noSuchMethod(Invocation.method(#createElement, []), returnValue: _FakeInheritedElement_4()) as _i2.InheritedElement); @override String toStringShort() => (super .noSuchMethod(Invocation.method(#toStringShort, []), returnValue: '') as String); @override void debugFillProperties(_i5.DiagnosticPropertiesBuilder? properties) => super.noSuchMethod(Invocation.method(#debugFillProperties, [properties]), returnValueForMissingStub: null); @override String toStringShallow( {String? joiner = r', ', _i2.DiagnosticLevel? minLevel = _i2.DiagnosticLevel.debug}) => (super.noSuchMethod( Invocation.method( #toStringShallow, [], {#joiner: joiner, #minLevel: minLevel}), returnValue: '') as String); @override String toStringDeep( {String? prefixLineOne = r'', String? prefixOtherLines, _i2.DiagnosticLevel? minLevel = _i2.DiagnosticLevel.debug}) => (super.noSuchMethod( Invocation.method(#toStringDeep, [], { #prefixLineOne: prefixLineOne, #prefixOtherLines: prefixOtherLines, #minLevel: minLevel }), returnValue: '') as String); @override _i2.DiagnosticsNode toDiagnosticsNode( {String? name, _i5.DiagnosticsTreeStyle? style}) => (super.noSuchMethod( Invocation.method( #toDiagnosticsNode, [], {#name: name, #style: style}), returnValue: _FakeDiagnosticsNode_5()) as _i2.DiagnosticsNode); @override List<_i2.DiagnosticsNode> debugDescribeChildren() => (super.noSuchMethod(Invocation.method(#debugDescribeChildren, []), returnValue: <_i2.DiagnosticsNode>[]) as List<_i2.DiagnosticsNode>); @override String toString({_i2.DiagnosticLevel? minLevel = _i2.DiagnosticLevel.info}) => super.toString(); } /// A class which mocks [Connectivity]. /// /// See the documentation for Mockito's code generation for more information. class MockConnectivity extends _i1.Mock implements _i10.Connectivity { MockConnectivity() { _i1.throwOnMissingStub(this); } @override _i7.Stream<_i10.ConnectivityResult> get onConnectivityChanged => (super.noSuchMethod(Invocation.getter(#onConnectivityChanged), returnValue: Stream<_i10.ConnectivityResult>.empty()) as _i7.Stream<_i10.ConnectivityResult>); @override _i7.Future<_i10.ConnectivityResult> checkConnectivity() => (super.noSuchMethod(Invocation.method(#checkConnectivity, []), returnValue: Future<_i10.ConnectivityResult>.value( _i10.ConnectivityResult.bluetooth)) as _i7.Future<_i10.ConnectivityResult>); } /// A class which mocks [QueryJob]. /// /// See the documentation for Mockito's code generation for more information. class MockQueryJobVoidObject extends _i1.Mock implements _i8.QueryJob { @override _i3.QueryTaskFunction get task => (super.noSuchMethod(Invocation.getter(#task), returnValue: (String queryKey, void externalData) => Future.value(_FakeObject_6())) as _i3.QueryTaskFunction); @override set task(_i3.QueryTaskFunction? _task) => super.noSuchMethod(Invocation.setter(#task, _task), returnValueForMissingStub: null); @override set refetchOnMount(bool? _refetchOnMount) => super.noSuchMethod(Invocation.setter(#refetchOnMount, _refetchOnMount), returnValueForMissingStub: null); @override set refetchOnReconnect(bool? _refetchOnReconnect) => super.noSuchMethod( Invocation.setter(#refetchOnReconnect, _refetchOnReconnect), returnValueForMissingStub: null); @override set refetchOnExternalDataChange(bool? _refetchOnExternalDataChange) => super.noSuchMethod( Invocation.setter( #refetchOnExternalDataChange, _refetchOnExternalDataChange), returnValueForMissingStub: null); @override set staleTime(Duration? _staleTime) => super.noSuchMethod(Invocation.setter(#staleTime, _staleTime), returnValueForMissingStub: null); @override set cacheTime(Duration? _cacheTime) => super.noSuchMethod(Invocation.setter(#cacheTime, _cacheTime), returnValueForMissingStub: null); @override set refetchInterval(Duration? _refetchInterval) => super.noSuchMethod(Invocation.setter(#refetchInterval, _refetchInterval), returnValueForMissingStub: null); @override set connectivity(_i10.Connectivity? _connectivity) => super.noSuchMethod(Invocation.setter(#connectivity, _connectivity), returnValueForMissingStub: null); @override String get queryKey => (super.noSuchMethod(Invocation.getter(#queryKey), returnValue: '') as String); }