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

          Line data    Source code
       1             : import 'package:fast_immutable_collections/fast_immutable_collections.dart';
       2             : import 'package:redfire/types.dart';
       3             : 
       4             : class AuthUserDataExample {
       5           0 :   static AuthUserData get minimal => AuthUserData(
       6             :       uid: 'uid',
       7           0 :       createdOn: DateTime.fromMillisecondsSinceEpoch(1607774920000),
       8           0 :       lastSignedInOn: DateTime.fromMillisecondsSinceEpoch(1607774928554),
       9             :       isAnonymous: false,
      10             :       emailVerified: false,
      11           0 :       providers: IList<AuthProviderData>());
      12             : 
      13           0 :   static AuthUserData get basic => AuthUserData(
      14             :       uid: 'uid',
      15             :       displayName: 'displayName',
      16             :       photoURL: 'photoURL',
      17             :       email: 'email',
      18             :       emailVerified: false,
      19             :       isAnonymous: false,
      20           0 :       providers: IList<AuthProviderData>());
      21             : 
      22             :   // normal data with a single provider
      23           0 :   static AuthUserData get normal => AuthUserData(
      24             :       uid: 'uid',
      25             :       displayName: 'andy',
      26             :       photoURL: 'url',
      27             :       email: 'email@email.email',
      28             :       phoneNumber: '0423123421',
      29           0 :       createdOn: DateTime.now(),
      30           0 :       lastSignedInOn: DateTime.now(),
      31             :       isAnonymous: false,
      32             :       emailVerified: false,
      33           0 :       providers: IList(<AuthProviderData>[
      34           0 :         AuthProviderData(
      35             :             providerId: 'firebase',
      36             :             uid: 'uid1234',
      37             :             displayName: 'sam',
      38             :             photoURL: 'url2',
      39             :             email: 'a@a.com',
      40             :             phoneNumber: '1234')
      41             :       ]));
      42             : 
      43             :   // after anonymous sign in
      44           0 :   static AuthUserData get afterAnonymousSignIn => AuthUserData(
      45             :       uid: 'Ro8xRcoQWEfRCd3Qqz4dVFu3ois2',
      46           0 :       providers: IList(const []),
      47             :       displayName: null,
      48             :       photoURL: null,
      49             :       email: null,
      50             :       phoneNumber: null,
      51           0 :       createdOn: DateTime.parse('2020-07-12T16:22:31.000Z'),
      52           0 :       lastSignedInOn: DateTime.parse('2020-07-12T16:22:31.000Z'),
      53             :       isAnonymous: true,
      54             :       emailVerified: false);
      55             : 
      56             :   // after sign in with github
      57           0 :   static AuthUserData get afterGitHubSignIn => AuthUserData(
      58             :       uid: 'EH1CsvnQWEfSGnOPsTbuQsNK22',
      59             :       displayName: null,
      60             :       photoURL: null,
      61             :       email: 'email@gmail.com',
      62             :       phoneNumber: null,
      63           0 :       createdOn: DateTime.parse('2020-07-09T18:03:08.000Z'),
      64           0 :       lastSignedInOn: DateTime.parse('2020-07-12T16:23:22.000Z'),
      65             :       isAnonymous: false,
      66             :       emailVerified: false,
      67           0 :       providers: IList(<AuthProviderData>[
      68           0 :         AuthProviderData(
      69             :             providerId: 'github.com',
      70             :             uid: 'github.com',
      71             :             displayName: 'Tester',
      72             :             photoURL:
      73             :                 'https://www.gravatar.com/avatar/00000000000000000000000000000000?d=wavatar&f=y',
      74             :             email: 'email@gmail.com',
      75             :             phoneNumber: null)
      76             :       ]));
      77             : }

Generated by: LCOV version 1.13