LCOV - code coverage report
Current view: top level - test-doubles/services/mocks - service_test_doubles.mocks.dart (source / functions) Hit Total Coverage
Test: lcov.info Lines: 0 124 0.0 %
Date: 2022-03-03 12:15:14 Functions: 0 0 -

          Line data    Source code
       1             : // Mocks generated by Mockito 5.0.16 from annotations
       2             : // in redfire_test/src/test-doubles/services/mocks/service_test_doubles.dart.
       3             : // Do not manually edit this file.
       4             : 
       5             : import 'dart:async' as _i6;
       6             : 
       7             : import 'package:fast_immutable_collections/fast_immutable_collections.dart'
       8             :     as _i3;
       9             : import 'package:firebase_auth/firebase_auth.dart' as _i4;
      10             : import 'package:mockito/mockito.dart' as _i1;
      11             : import 'package:redfire/src/auth/actions/set_auth_user_data_action.dart' as _i7;
      12             : import 'package:redfire/src/auth/services/auth_service.dart' as _i5;
      13             : import 'package:redfire/src/database/services/database_service.dart' as _i8;
      14             : import 'package:redfire/src/networking/services/http_service.dart' as _i11;
      15             : import 'package:redfire/src/platform/services/platform_service.dart' as _i9;
      16             : import 'package:redfire/src/settings/enums/platform_enum.dart' as _i10;
      17             : import 'package:redfire/types.dart' as _i2;
      18             : 
      19             : // ignore_for_file: avoid_redundant_argument_values
      20             : // ignore_for_file: avoid_setters_without_getters
      21             : // ignore_for_file: comment_references
      22             : // ignore_for_file: implementation_imports
      23             : // ignore_for_file: invalid_use_of_visible_for_testing_member
      24             : // ignore_for_file: prefer_const_constructors
      25             : // ignore_for_file: unnecessary_parenthesis
      26             : // ignore_for_file: camel_case_types
      27             : 
      28             : class _FakeAuthUserData_0 extends _i1.Fake implements _i2.AuthUserData {}
      29             : 
      30             : class _FakeISet_1<T> extends _i1.Fake implements _i3.ISet<T> {
      31           0 :   @override
      32           0 :   String toString([bool? prettyPrint]) => super.toString();
      33             : }
      34             : 
      35             : class _FakeUserCredential_2 extends _i1.Fake implements _i4.UserCredential {}
      36             : 
      37             : class _FakeAppleIdCredential_3 extends _i1.Fake
      38             :     implements _i2.AppleIdCredential {}
      39             : 
      40             : /// A class which mocks [AuthService].
      41             : ///
      42             : /// See the documentation for Mockito's code generation for more information.
      43             : class MockAuthService extends _i1.Mock implements _i5.AuthService {
      44           0 :   MockAuthService() {
      45           0 :     _i1.throwOnMissingStub(this);
      46             :   }
      47             : 
      48           0 :   @override
      49             :   _i6.Stream<_i7.SetAuthUserDataAction> get streamOfSetAuthUserData =>
      50           0 :       (super.noSuchMethod(Invocation.getter(#streamOfSetAuthUserData),
      51           0 :               returnValue: Stream<_i7.SetAuthUserDataAction>.empty())
      52             :           as _i6.Stream<_i7.SetAuthUserDataAction>);
      53           0 :   @override
      54             :   _i6.Future<String> getCurrentIdToken() =>
      55           0 :       (super.noSuchMethod(Invocation.method(#getCurrentIdToken, []),
      56           0 :           returnValue: Future<String>.value('')) as _i6.Future<String>);
      57           0 :   @override
      58             :   String getCurrentUserId() =>
      59           0 :       (super.noSuchMethod(Invocation.method(#getCurrentUserId, []),
      60             :           returnValue: '') as String);
      61           0 :   @override
      62           0 :   _i6.Future<_i2.AuthUserData> signInAnonymously() => (super.noSuchMethod(
      63           0 :           Invocation.method(#signInAnonymously, []),
      64           0 :           returnValue: Future<_i2.AuthUserData>.value(_FakeAuthUserData_0()))
      65             :       as _i6.Future<_i2.AuthUserData>);
      66           0 :   @override
      67             :   _i6.Future<_i3.ISet<_i2.ProvidersEnum>> retrieveProvidersFor(String? email) =>
      68           0 :       (super.noSuchMethod(Invocation.method(#retrieveProvidersFor, [email]),
      69           0 :               returnValue: Future<_i3.ISet<_i2.ProvidersEnum>>.value(
      70           0 :                   _FakeISet_1<_i2.ProvidersEnum>()))
      71             :           as _i6.Future<_i3.ISet<_i2.ProvidersEnum>>);
      72           0 :   @override
      73             :   _i6.Future<_i4.UserCredential> signUpWithEmailAndPassword(
      74             :           String? email, String? password) =>
      75           0 :       (super.noSuchMethod(
      76           0 :               Invocation.method(#signUpWithEmailAndPassword, [email, password]),
      77             :               returnValue:
      78           0 :                   Future<_i4.UserCredential>.value(_FakeUserCredential_2()))
      79             :           as _i6.Future<_i4.UserCredential>);
      80           0 :   @override
      81             :   _i6.Future<_i4.UserCredential> signInWithEmailAndPassword(
      82             :           String? email, String? password) =>
      83           0 :       (super.noSuchMethod(
      84           0 :               Invocation.method(#signInWithEmailAndPassword, [email, password]),
      85             :               returnValue:
      86           0 :                   Future<_i4.UserCredential>.value(_FakeUserCredential_2()))
      87             :           as _i6.Future<_i4.UserCredential>);
      88           0 :   @override
      89             :   _i6.Future<_i2.GoogleSignInCredential?> getGoogleCredential() =>
      90           0 :       (super.noSuchMethod(Invocation.method(#getGoogleCredential, []),
      91           0 :               returnValue: Future<_i2.GoogleSignInCredential?>.value())
      92             :           as _i6.Future<_i2.GoogleSignInCredential?>);
      93           0 :   @override
      94             :   _i6.Future<_i2.AuthUserData> signInWithGoogle(
      95             :           {_i2.GoogleSignInCredential? credential}) =>
      96           0 :       (super.noSuchMethod(
      97           0 :           Invocation.method(#signInWithGoogle, [], {#credential: credential}),
      98             :           returnValue:
      99           0 :               Future<_i2.AuthUserData>.value(_FakeAuthUserData_0())) as _i6
     100             :           .Future<_i2.AuthUserData>);
     101           0 :   @override
     102             :   _i6.Future<_i2.AuthUserData> linkGoogle(
     103             :           {_i2.GoogleSignInCredential? credential}) =>
     104           0 :       (super.noSuchMethod(
     105           0 :               Invocation.method(#linkGoogle, [], {#credential: credential}),
     106             :               returnValue:
     107           0 :                   Future<_i2.AuthUserData>.value(_FakeAuthUserData_0()))
     108             :           as _i6.Future<_i2.AuthUserData>);
     109           0 :   @override
     110             :   _i6.Future<String> getTokenForGoogle(List<String>? scopes) =>
     111           0 :       (super.noSuchMethod(Invocation.method(#getTokenForGoogle, [scopes]),
     112           0 :           returnValue: Future<String>.value('')) as _i6.Future<String>);
     113           0 :   @override
     114           0 :   _i6.Future<_i2.AppleIdCredential> getAppleCredential() => (super.noSuchMethod(
     115           0 :           Invocation.method(#getAppleCredential, []),
     116             :           returnValue:
     117           0 :               Future<_i2.AppleIdCredential>.value(_FakeAppleIdCredential_3()))
     118             :       as _i6.Future<_i2.AppleIdCredential>);
     119           0 :   @override
     120             :   _i6.Future<_i2.AuthUserData> signInWithApple(
     121             :           {_i2.AppleIdCredential? credential}) =>
     122           0 :       (super.noSuchMethod(
     123           0 :           Invocation.method(#signInWithApple, [], {#credential: credential}),
     124             :           returnValue:
     125           0 :               Future<_i2.AuthUserData>.value(_FakeAuthUserData_0())) as _i6
     126             :           .Future<_i2.AuthUserData>);
     127           0 :   @override
     128             :   _i6.Future<_i4.UserCredential> signInWithGithubOnWeb() =>
     129           0 :       (super.noSuchMethod(Invocation.method(#signInWithGithubOnWeb, []),
     130             :               returnValue:
     131           0 :                   Future<_i4.UserCredential>.value(_FakeUserCredential_2()))
     132             :           as _i6.Future<_i4.UserCredential>);
     133           0 :   @override
     134             :   _i6.Future<_i2.AuthUserData> signInWithGithub(String? token) =>
     135           0 :       (super.noSuchMethod(Invocation.method(#signInWithGithub, [token]),
     136             :               returnValue:
     137           0 :                   Future<_i2.AuthUserData>.value(_FakeAuthUserData_0()))
     138             :           as _i6.Future<_i2.AuthUserData>);
     139           0 :   @override
     140           0 :   _i6.Future<_i2.AuthUserData> linkGithub(String? token) => (super.noSuchMethod(
     141           0 :           Invocation.method(#linkGithub, [token]),
     142           0 :           returnValue: Future<_i2.AuthUserData>.value(_FakeAuthUserData_0()))
     143             :       as _i6.Future<_i2.AuthUserData>);
     144           0 :   @override
     145             :   _i6.Future<void> signOut(_i2.ProvidersEnum? signInProvider) =>
     146           0 :       (super.noSuchMethod(Invocation.method(#signOut, [signInProvider]),
     147           0 :           returnValue: Future<void>.value(),
     148           0 :           returnValueForMissingStub: Future<void>.value()) as _i6.Future<void>);
     149           0 :   @override
     150           0 :   String toString() => super.toString();
     151             : }
     152             : 
     153             : /// A class which mocks [DatabaseService].
     154             : ///
     155             : /// See the documentation for Mockito's code generation for more information.
     156             : class MockDatabaseService extends _i1.Mock implements _i8.DatabaseService {
     157           0 :   MockDatabaseService() {
     158           0 :     _i1.throwOnMissingStub(this);
     159             :   }
     160             : 
     161           0 :   @override
     162             :   _i6.Future<List<Object?>> getDocuments(
     163             :           {String? at,
     164             :           Object? where,
     165             :           Object? isEqualTo,
     166             :           Object? isNotEqualTo,
     167             :           Object? isLessThan,
     168             :           Object? isLessThanOrEqualTo,
     169             :           Object? isGreaterThan,
     170             :           Object? isGreaterThanOrEqualTo,
     171             :           Object? arrayContains,
     172             :           List<Object?>? arrayContainsAny,
     173             :           List<Object?>? whereIn,
     174             :           List<Object?>? whereNotIn,
     175             :           bool? isNull}) =>
     176           0 :       (super.noSuchMethod(
     177           0 :               Invocation.method(#getDocuments, [], {
     178             :                 #at: at,
     179             :                 #where: where,
     180             :                 #isEqualTo: isEqualTo,
     181             :                 #isNotEqualTo: isNotEqualTo,
     182             :                 #isLessThan: isLessThan,
     183             :                 #isLessThanOrEqualTo: isLessThanOrEqualTo,
     184             :                 #isGreaterThan: isGreaterThan,
     185             :                 #isGreaterThanOrEqualTo: isGreaterThanOrEqualTo,
     186             :                 #arrayContains: arrayContains,
     187             :                 #arrayContainsAny: arrayContainsAny,
     188             :                 #whereIn: whereIn,
     189             :                 #whereNotIn: whereNotIn,
     190             :                 #isNull: isNull
     191             :               }),
     192           0 :               returnValue: Future<List<Object?>>.value(<Object?>[]))
     193             :           as _i6.Future<List<Object?>>);
     194           0 :   @override
     195             :   _i6.Future<String> createDocument({String? at, Map<String, Object?>? from}) =>
     196           0 :       (super.noSuchMethod(
     197           0 :           Invocation.method(#createDocument, [], {#at: at, #from: from}),
     198           0 :           returnValue: Future<String>.value('')) as _i6.Future<String>);
     199           0 :   @override
     200             :   _i6.Future<void> setDocument(
     201             :           {String? at, Map<String, Object?>? to, bool? merge = false}) =>
     202           0 :       (super.noSuchMethod(
     203           0 :           Invocation.method(
     204           0 :               #setDocument, [], {#at: at, #to: to, #merge: merge}),
     205           0 :           returnValue: Future<void>.value(),
     206           0 :           returnValueForMissingStub: Future<void>.value()) as _i6.Future<void>);
     207           0 :   @override
     208             :   _i6.Future<void> updateDocument({String? at, Map<String, Object?>? to}) =>
     209           0 :       (super.noSuchMethod(
     210           0 :           Invocation.method(#updateDocument, [], {#at: at, #to: to}),
     211           0 :           returnValue: Future<void>.value(),
     212           0 :           returnValueForMissingStub: Future<void>.value()) as _i6.Future<void>);
     213           0 :   @override
     214             :   _i6.Future<void> deleteDocument({String? at}) =>
     215           0 :       (super.noSuchMethod(Invocation.method(#deleteDocument, [], {#at: at}),
     216           0 :           returnValue: Future<void>.value(),
     217           0 :           returnValueForMissingStub: Future<void>.value()) as _i6.Future<void>);
     218           0 :   @override
     219             :   _i6.Stream<Map<String, Object?>> tapDocument({String? at}) =>
     220           0 :       (super.noSuchMethod(Invocation.method(#tapDocument, [], {#at: at}),
     221           0 :               returnValue: Stream<Map<String, Object?>>.empty())
     222             :           as _i6.Stream<Map<String, Object?>>);
     223           0 :   @override
     224             :   _i6.Stream<List<Object?>> tapCollection(
     225             :           {String? at,
     226             :           Object? where,
     227             :           Object? isEqualTo,
     228             :           Object? isNotEqualTo,
     229             :           Object? isLessThan,
     230             :           Object? isLessThanOrEqualTo,
     231             :           Object? isGreaterThan,
     232             :           Object? isGreaterThanOrEqualTo,
     233             :           Object? arrayContains,
     234             :           List<Object?>? arrayContainsAny,
     235             :           List<Object?>? whereIn,
     236             :           List<Object?>? whereNotIn,
     237             :           bool? isNull}) =>
     238           0 :       (super.noSuchMethod(
     239           0 :               Invocation.method(#tapCollection, [], {
     240             :                 #at: at,
     241             :                 #where: where,
     242             :                 #isEqualTo: isEqualTo,
     243             :                 #isNotEqualTo: isNotEqualTo,
     244             :                 #isLessThan: isLessThan,
     245             :                 #isLessThanOrEqualTo: isLessThanOrEqualTo,
     246             :                 #isGreaterThan: isGreaterThan,
     247             :                 #isGreaterThanOrEqualTo: isGreaterThanOrEqualTo,
     248             :                 #arrayContains: arrayContains,
     249             :                 #arrayContainsAny: arrayContainsAny,
     250             :                 #whereIn: whereIn,
     251             :                 #whereNotIn: whereNotIn,
     252             :                 #isNull: isNull
     253             :               }),
     254           0 :               returnValue: Stream<List<Object?>>.empty())
     255             :           as _i6.Stream<List<Object?>>);
     256           0 :   @override
     257           0 :   String toString() => super.toString();
     258             : }
     259             : 
     260             : /// A class which mocks [PlatformService].
     261             : ///
     262             : /// See the documentation for Mockito's code generation for more information.
     263             : class MockPlatformService extends _i1.Mock implements _i9.PlatformService {
     264           0 :   MockPlatformService() {
     265           0 :     _i1.throwOnMissingStub(this);
     266             :   }
     267             : 
     268           0 :   @override
     269             :   _i10.PlatformsEnum detectPlatform() =>
     270           0 :       (super.noSuchMethod(Invocation.method(#detectPlatform, []),
     271             :           returnValue: _i10.PlatformsEnum.web) as _i10.PlatformsEnum);
     272           0 :   @override
     273             :   _i6.Future<void> getAuthorized(
     274             :           {_i2.ProvidersEnum? provider, String? state}) =>
     275           0 :       (super.noSuchMethod(
     276           0 :           Invocation.method(
     277           0 :               #getAuthorized, [], {#provider: provider, #state: state}),
     278           0 :           returnValue: Future<void>.value(),
     279           0 :           returnValueForMissingStub: Future<void>.value()) as _i6.Future<void>);
     280           0 :   @override
     281             :   _i6.Future<void> launchUrl(String? url) =>
     282           0 :       (super.noSuchMethod(Invocation.method(#launchUrl, [url]),
     283           0 :           returnValue: Future<void>.value(),
     284           0 :           returnValueForMissingStub: Future<void>.value()) as _i6.Future<void>);
     285           0 :   @override
     286           0 :   String toString() => super.toString();
     287             : }
     288             : 
     289             : /// A class which mocks [HttpService].
     290             : ///
     291             : /// See the documentation for Mockito's code generation for more information.
     292             : class MockHttpService extends _i1.Mock implements _i11.HttpService {
     293           0 :   MockHttpService() {
     294           0 :     _i1.throwOnMissingStub(this);
     295             :   }
     296             : 
     297           0 :   @override
     298             :   _i6.Future<void> createSection({String? name}) =>
     299           0 :       (super.noSuchMethod(Invocation.method(#createSection, [], {#name: name}),
     300           0 :           returnValue: Future<void>.value(),
     301           0 :           returnValueForMissingStub: Future<void>.value()) as _i6.Future<void>);
     302           0 :   @override
     303           0 :   String toString() => super.toString();
     304             : }

Generated by: LCOV version 1.13