google_sign_in_mocks 0.2.1 icon indicating copy to clipboard operation
google_sign_in_mocks: ^0.2.1 copied to clipboard

Mocks for Google Sign In. Use this package with `firebase_auth_mocks` to write unit tests involving Firebase Authentication.

17
likes
110/ 140
pub points
86%
popularity

We analyzed this package 20 hours ago, and awarded it 110 pub points (of a possible 140):

icon indicating section status
Follow Dart file conventions
20 / 30icon to trigger folding of the section

0/10 points: Provide a valid pubspec.yaml

Homepage URL is insecure.

Update the homepage field and use a secure (https) URL.

5/5 points: Provide a valid README.md

5/5 points: Provide a valid CHANGELOG.md

10/10 points: Use an OSI-approved license

Detected license: BSD-2-Clause.

icon indicating section status
Provide documentation
10 / 20icon to trigger folding of the section

0/10 points: Package has an example

No example found.

See package layout guidelines on how to add an example.

10/10 points: 20% or more of the public API has dartdoc comments

  • 8 out of 14 API elements (57.1 %) have documentation comments.
icon indicating section status
Platform support
20 / 20icon to trigger folding of the section

20/20 points: Supports 3 of 6 possible platforms (iOS, Android, Web, Windows, MacOS, Linux)

  • ✓ Android
  • ✓ iOS
  • ✓ Web

These platforms are not supported:

Package does not support platform Windows.

Because:

  • package:google_sign_in_mocks/google_sign_in_mocks.dart that imports:
  • package:google_sign_in_mocks/src/google_sign_in_mocks_base.dart that imports:
  • package:google_sign_in/google_sign_in.dart that declares support for platforms: Android, iOS, Web.

Package does not support platform Linux.

Because:

  • package:google_sign_in_mocks/google_sign_in_mocks.dart that imports:
  • package:google_sign_in_mocks/src/google_sign_in_mocks_base.dart that imports:
  • package:google_sign_in/google_sign_in.dart that declares support for platforms: Android, iOS, Web.

Package does not support platform macOS.

Because:

  • package:google_sign_in_mocks/google_sign_in_mocks.dart that imports:
  • package:google_sign_in_mocks/src/google_sign_in_mocks_base.dart that imports:
  • package:google_sign_in/google_sign_in.dart that declares support for platforms: Android, iOS, Web.
icon indicating section status
Pass static analysis
20 / 30icon to trigger folding of the section

20/30 points: code has no errors, warnings, lints, or formatting issues

Found 3 issues. Showing the first 2:

INFO: This class (or a class that this class inherits from) is marked as '@immutable', but one or more of its instance fields aren't final: Mock._givenName, Mock._givenHashCode, Mock._defaultResponse

lib/src/google_sign_in_mocks_base.dart:24:7

   ╷
24 │ class MockGoogleSignInAccount extends Mock implements GoogleSignInAccount {
   │       ^^^^^^^^^^^^^^^^^^^^^^^
   ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/src/google_sign_in_mocks_base.dart

INFO: Override hashCode if overriding ==.

lib/src/google_sign_in_mocks_base.dart:30:17

   ╷
30 │   bool operator ==(other) {
   │                 ^^
   ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/src/google_sign_in_mocks_base.dart

icon indicating section status
Support up-to-date dependencies
20 / 20icon to trigger folding of the section

10/10 points: All of the package dependencies are supported in the latest version

PackageConstraintCompatibleLatest
flutterflutter0.0.00.0.0
google_sign_in^5.0.25.4.25.4.2
mockito^5.0.75.3.25.3.2
Transitive dependencies
PackageConstraintCompatibleLatest
_fe_analyzer_shared-50.0.050.0.0
analyzer-5.2.05.2.0
args-2.3.12.3.1
async-2.10.02.10.0
boolean_selector-2.1.12.1.1
build-2.3.12.3.1
built_collection-5.1.15.1.1
built_value-8.4.28.4.2
characters-1.2.11.2.1
code_builder-4.3.04.3.0
collection-1.16.01.17.0
convert-3.1.13.1.1
crypto-3.0.23.0.2
dart_style-2.2.42.2.4
file-6.1.46.1.4
fixnum-1.0.11.0.1
flutter_web_plugins-0.0.00.0.0
glob-2.1.12.1.1
google_sign_in_android-6.1.46.1.4
google_sign_in_ios-5.5.15.5.1
google_sign_in_platform_interface-2.3.02.3.0
google_sign_in_web-0.10.20.10.2
js-0.6.40.6.5
logging-1.1.01.1.0
matcher-0.12.130.12.13
material_color_utilities-0.1.50.2.0
meta-1.8.01.8.0
package_config-2.1.02.1.0
path-1.8.31.8.3
plugin_platform_interface-2.1.32.1.3
pub_semver-2.1.32.1.3
quiver-3.1.03.1.0
sky_engine-0.0.990.0.99
source_gen-1.2.61.2.6
source_span-1.9.11.9.1
stack_trace-1.11.01.11.0
stream_channel-2.1.12.1.1
string_scanner-1.2.01.2.0
term_glyph-1.2.11.2.1
test_api-0.4.160.4.16
typed_data-1.3.11.3.1
vector_math-2.1.22.1.4
watcher-1.0.21.0.2
yaml-3.1.13.1.1

To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

10/10 points: Package supports latest stable Dart and Flutter SDKs

icon indicating section status
Support sound null safety
20 / 20icon to trigger folding of the section

20/20 points: Package and dependencies are fully migrated to null safety!

Analysed with Pana 0.21.21, Flutter 3.3.9, Dart 2.18.5.

17
likes
110
pub points
86%
popularity

Publisher

verified publisher iconwafrat.com

Mocks for Google Sign In. Use this package with `firebase_auth_mocks` to write unit tests involving Firebase Authentication.

Repository (GitHub)

Documentation

API reference

License

Icon for licenses.BSD-2-Clause (LICENSE)

Dependencies

flutter, google_sign_in, mockito

More

Packages that depend on google_sign_in_mocks