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 40 hours ago, and awarded it 120 pub points (of a possible 160):
0/10 points: Provide a valid pubspec.yaml
Homepage URL is insecure.
Update the homepage
field and use a secure (https
) URL.
Failed to verify repository URL.
Please provide a valid repository
URL in pubspec.yaml
, such that:
repository
can be cloned,- a clone of the repository contains a
pubspec.yaml
, which:,- contains
name: cloud_firestore_mocks
, - contains a
version
property, and, - does not contain a
publish_to
property.
- contains
Repository has no matching pubspec.yaml
with name: cloud_firestore_mocks
.
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
, cloud_firestore_mocks.MockFirestoreInstance.dump
, cloud_firestore_mocks.MockFirestoreInstance.hasSavedDocument
, cloud_firestore_mocks.MockFirestoreInstance.loadBundle
.
10/10 points: Package has an example
20/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.dart
that imports:package:cloud_firestore_mocks/src/cloud_firestore_mocks_base.dart
that imports:package:cloud_firestore_mocks/src/util.dart
that imports:package:cloud_firestore/cloud_firestore.dart
that declares support for platforms:Android
,iOS
,macOS
,Web
.
Package does not support platform `Linux`.
Because:
package:cloud_firestore_mocks/cloud_firestore_mocks.dart
that imports:package:cloud_firestore_mocks/src/cloud_firestore_mocks_base.dart
that imports:package:cloud_firestore_mocks/src/util.dart
that imports:package:cloud_firestore/cloud_firestore.dart
that declares support for platforms:Android
,iOS
,macOS
,Web
.
0/0 points: WASM compatibility
This package is compatible with runtime wasm
, and will be rewarded additional points in a future version of the scoring model.
See https://dart.dev/web/wasm for details.
30/50 points: code has no errors, warnings, lints, or formatting issues
Found 10 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 |
---|---|---|---|
cloud_firestore |
^2.1.0 |
2.5.4 | 5.6.0 |
cloud_firestore_platform_interface |
^5.0.1 |
5.7.5 | 6.6.0 |
collection |
^1.14.13 |
1.19.0 | 1.19.1 |
flutter |
flutter |
0.0.0 | 0.0.0 |
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 |
---|---|---|---|
async |
- | 2.12.0 | 2.12.0 |
boolean_selector |
- | 2.1.2 | 2.1.2 |
characters |
- | 1.3.0 | 1.4.0 |
cloud_firestore_web |
- | 2.6.18 | 4.4.0 |
firebase_core |
- | 1.19.0 | 3.9.0 |
firebase_core_platform_interface |
- | 4.4.1 | 5.4.0 |
firebase_core_web |
- | 1.6.5 | 2.19.0 |
flutter_web_plugins |
- | 0.0.0 | 0.0.0 |
js |
- | 0.6.7 | 0.7.1 |
matcher |
- | 0.12.17 | 0.12.17 |
material_color_utilities |
- | 0.11.1 | 0.12.0 |
meta |
- | 1.15.0 | 1.16.0 |
path |
- | 1.9.1 | 1.9.1 |
sky_engine |
- | 0.0.0 | 0.0.0 |
source_span |
- | 1.10.1 | 1.10.1 |
stack_trace |
- | 1.12.1 | 1.12.1 |
stream_channel |
- | 2.1.3 | 2.1.3 |
string_scanner |
- | 1.4.1 | 1.4.1 |
term_glyph |
- | 1.2.2 | 1.2.2 |
test_api |
- | 0.7.4 | 0.7.4 |
vector_math |
- | 2.1.4 | 2.1.4 |
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.22.17
, Flutter 3.27.0
, Dart 3.6.0
.
Check the analysis log for details.