cloud_firestore_mocks 0.9.0+1
cloud_firestore_mocks: ^0.9.0+1 copied to clipboard
Fake implementation of Cloud Firestore. Use this package to write unit tests involving Cloud Firestore.
We analyzed this package 11 hours ago, and awarded it 110 pub points (of a possible 160):
0/10 points: Provide a valid pubspec.yaml
Failed to verify repository URL.
Repository has no matching pubspec.yaml with name: cloud_firestore_mocks.
Please provide a valid repository URL in pubspec.yaml, such that:
repositorycan be cloned,- a clone of the repository contains a
pubspec.yaml, which:,- contains
name: cloud_firestore_mocks, - contains a
versionproperty, and, - does not contain a
publish_toproperty.
- contains
Homepage URL doesn't exist.
At the time of the analysis http://blog.wafrat.com was unreachable. Make sure that the website is reachable via HEAD requests.
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.
10/10 points: 20% or more of the public API has dartdoc comments
19 out of 26 API elements (73.1 %) have documentation comments.
Some symbols that are missing documentation: cloud_firestore_mocks.MockFirestoreInstance, cloud_firestore_mocks.MockFirestoreInstance.MockFirestoreInstance.new, cloud_firestore_mocks.MockFirestoreInstance.dump, cloud_firestore_mocks.MockFirestoreInstance.hasSavedDocument, cloud_firestore_mocks.MockFirestoreInstance.loadBundle.
10/10 points: Package has an example
10/20 points: Supports 4 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)
-
✓ Android
-
✓ iOS
-
✓ macOS
-
✓ Web
These platforms are not supported:
Package does not support platform `Windows`.
Because:
package:cloud_firestore_mocks/cloud_firestore_mocks.dartthat imports:package:cloud_firestore_mocks/src/cloud_firestore_mocks_base.dartthat imports:package:cloud_firestore_mocks/src/util.dartthat imports:package:cloud_firestore/cloud_firestore.dartthat declares support for platforms:Android,iOS,macOS,Web.
Package does not support platform `Linux`.
Because:
package:cloud_firestore_mocks/cloud_firestore_mocks.dartthat imports:package:cloud_firestore_mocks/src/cloud_firestore_mocks_base.dartthat imports:package:cloud_firestore_mocks/src/util.dartthat imports:package:cloud_firestore/cloud_firestore.dartthat declares support for platforms:Android,iOS,macOS,Web.
These issues are present but do not affect the score, because they may not originate in your package:
Package not compatible with platform Web
Because:
package:cloud_firestore_mocks/cloud_firestore_mocks.dartthat imports:package:cloud_firestore_mocks/src/cloud_firestore_mocks_base.dartthat imports:package:cloud_firestore_mocks/src/util.dartthat imports:package:cloud_firestore/cloud_firestore.dartthat imports:package:firebase_core_platform_interface/firebase_core_platform_interface.dartthat imports:package:firebase_core_platform_interface/src/pigeon/test_api.dartthat imports:package:flutter_test/flutter_test.dartthat imports:package:flutter_test/src/widget_tester.dartthat imports:package:flutter_test/src/test_text_input.dartthat imports:package:flutter_test/src/test_text_input_key_handler.dartthat imports:package:flutter_test/src/binding.dartthat imports:package:flutter_test/src/platform.dartthat imports:dart:io
WASM compatibility:
Package not compatible with runtime wasm
Because:
package:cloud_firestore_mocks/cloud_firestore_mocks.dartthat imports:package:cloud_firestore_mocks/src/cloud_firestore_mocks_base.dartthat imports:package:cloud_firestore_mocks/src/util.dartthat imports:package:cloud_firestore/cloud_firestore.dartthat imports:package:firebase_core_platform_interface/firebase_core_platform_interface.dartthat imports:package:firebase_core_platform_interface/src/pigeon/test_api.dartthat imports:package:flutter_test/flutter_test.dartthat imports:package:flutter_test/src/widget_tester.dartthat imports:package:flutter_test/src/test_text_input.dartthat imports:package:flutter_test/src/test_text_input_key_handler.dartthat imports:package:flutter_test/src/binding.dartthat imports:package:flutter_test/src/platform.dartthat imports:dart:io
Note: This package supports Web but is not WASM-compatible, resulting in a partial score. See https://dart.dev/web/wasm for details.
30/50 points: code has no errors, warnings, lints, or formatting issues
Found 12 issues. Showing the first 2:
WARNING: The parameter type of '==' operators should be non-nullable.
lib/src/cloud_firestore_mocks_base.dart:124:17
╷
124 │ bool operator ==(dynamic other) => identical(this, other);
│ ^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/src/cloud_firestore_mocks_base.dart
WARNING: The parameter type of '==' operators should be non-nullable.
lib/src/mock_collection_reference.dart:195:17
╷
195 │ bool operator ==(dynamic other) => identical(this, other);
│ ^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/src/mock_collection_reference.dart
0/10 points: All of the package dependencies are supported in the latest version
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
cloud_firestore |
^2.1.0 |
2.5.4 | 6.9.0 | |
cloud_firestore_platform_interface |
^5.0.1 |
5.7.7 | 8.0.7 | |
collection |
^1.14.13 |
1.19.1 | 1.19.1 | |
plugin_platform_interface |
^2.0.0 |
2.1.8 | 2.1.8 | |
quiver |
^3.0.0 |
3.2.2 | 3.2.2 |
Transitive dependencies
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
_flutterfire_internals |
- | 1.0.2 | 1.3.77 | |
async |
- | 2.13.1 | 2.13.1 | |
boolean_selector |
- | 2.1.2 | 2.1.2 | |
characters |
- | 1.4.1 | 1.4.1 | |
clock |
- | 1.1.3 | 1.1.3 | |
cloud_firestore_web |
- | 2.8.10 | 5.7.3 | |
fake_async |
- | 1.3.3 | 1.3.3 | |
firebase_core |
- | 1.24.0 | 4.14.0 | |
firebase_core_platform_interface |
- | 4.8.0 | 8.1.1 | |
firebase_core_web |
- | 1.7.3 | 3.11.0 | |
js |
- | 0.6.7 | 0.7.2 | Discontinued |
leak_tracker |
- | 11.0.2 | 11.0.2 | |
leak_tracker_flutter_testing |
- | 3.0.10 | 3.0.10 | |
leak_tracker_testing |
- | 3.0.2 | 3.0.2 | |
matcher |
- | 0.12.20 | 0.12.20 | |
material_color_utilities |
- | 0.13.0 | 0.13.1 | |
meta |
- | 1.19.0 | 1.19.0 | |
path |
- | 1.9.1 | 1.9.1 | |
source_span |
- | 1.10.2 | 1.10.2 | |
stack_trace |
- | 1.12.2 | 1.12.2 | |
stream_channel |
- | 2.1.4 | 2.1.4 | |
string_scanner |
- | 1.4.1 | 1.4.1 | |
term_glyph |
- | 1.2.2 | 1.2.2 | |
test_api |
- | 0.7.12 | 0.7.14 | |
vector_math |
- | 2.4.2 | 2.4.2 | |
vm_service |
- | 15.3.0 | 15.3.0 |
To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.
The constraint `^2.1.0` on cloud_firestore does not support the stable version `3.0.0`.
Try running dart pub upgrade --major-versions cloud_firestore to update the constraint.
The constraint `^5.0.1` on cloud_firestore_platform_interface does not support the stable version `6.0.0`.
Try running dart pub upgrade --major-versions cloud_firestore_platform_interface to update the constraint.
10/10 points: Package supports latest stable Dart and Flutter SDKs
20/20 points: Compatible with dependency constraint lower bounds
pub downgrade does not expose any static analysis error.
Analyzed with Pana 0.23.18, Flutter 3.47.0, Dart 3.13.0.
Check the analysis log for details.