firebase_database_mock 0.1.0 copy "firebase_database_mock: ^0.1.0" to clipboard
firebase_database_mock: ^0.1.0 copied to clipboard

Mocks to write unit tests for FirebaseDatabase (real-time database).

100/ 160
pub points
37
downloads

We analyzed this package 2 hours ago, and awarded it 100 pub points (of a possible 160):

Passed report section
Follow Dart file conventions
30 / 30trigger folding of the section

Passed check 10/10 points: Provide a valid pubspec.yaml

Passed check 5/5 points: Provide a valid README.md

Passed check 5/5 points: Provide a valid CHANGELOG.md

Passed check 10/10 points: Use an OSI-approved license

Detected license: BSD-3-Clause.

Passed report section
Provide documentation
20 / 20trigger folding of the section

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

9 out of 14 API elements (64.3 %) have documentation comments.

Some symbols that are missing documentation: firebase_database_mocks, firebase_database_mocks.MockFirebaseDatabase, firebase_database_mocks.MockFirebaseDatabase.MockFirebaseDatabase.new, firebase_database_mocks.MockFirebaseDatabase.instance, firebase_database_mocks.MockFirebaseDatabase.persistData.

Passed check 10/10 points: Package has an example

Failed report section
Platform support
20 / 20trigger folding of the section

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

  • ✓ Android

  • ✓ iOS

  • ✓ macOS

These platforms are not supported:

Package does not support platform `Windows`.

Because:

  • package:firebase_database_mock/firebase_database_mock.dart that imports:
  • package:firebase_database_mock/src/mock_firebase_database.dart that imports:
  • package:firebase_database_mock/src/mock_database_reference.dart that imports:
  • package:firebase_database_mock/src/mock_data_snapshot.dart that imports:
  • package:firebase_database/firebase_database.dart that declares support for platforms: Android, iOS, macOS.
Package does not support platform `Linux`.

Because:

  • package:firebase_database_mock/firebase_database_mock.dart that imports:
  • package:firebase_database_mock/src/mock_firebase_database.dart that imports:
  • package:firebase_database_mock/src/mock_database_reference.dart that imports:
  • package:firebase_database_mock/src/mock_data_snapshot.dart that imports:
  • package:firebase_database/firebase_database.dart that declares support for platforms: Android, iOS, macOS.
Package does not support platform `Web`.

Because:

  • package:firebase_database_mock/firebase_database_mock.dart that imports:
  • package:firebase_database_mock/src/mock_firebase_database.dart that imports:
  • package:firebase_database_mock/src/mock_database_reference.dart that imports:
  • package:firebase_database_mock/src/mock_data_snapshot.dart that imports:
  • package:firebase_database/firebase_database.dart that declares support for platforms: Android, iOS, macOS.

Failed check 0/0 points: WASM compatibility

Unable to detect compatibility with runtime wasm, and this package will not be rewarded full points in a future version of the scoring model.

See https://dart.cn/web/wasm for details.

Failed report section
Pass static analysis
0 / 50trigger folding of the section

Failed check 0/50 points: code has no errors, warnings, lints, or formatting issues

Found 9 issues. Showing the first 2:

ERROR: The getter 'channel' isn't defined for the type 'MethodChannelFirebase'.

lib/src/set_up_mocks.dart:9:25

  ╷
9 │   MethodChannelFirebase.channel.setMockMethodCallHandler((call) async {
  │                         ^^^^^^^
  ╵

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

INFO: Missing type annotation.

lib/src/mock_database_reference.dart:13:27

   ╷
13 │   MockDatabaseReference._(nodePath, [this._volatileData]) {
   │                           ^^^^^^^^
   ╵

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

Failed report section
Support up-to-date dependencies
30 / 40trigger folding of the section

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

Package Constraint Compatible Latest Notes
firebase_core_platform_interface ^4.0.1 4.8.0 6.0.1
firebase_database ^7.2.0 7.2.2 12.0.2
mockito ^5.0.14 5.5.1 5.5.1
pedantic ^1.9.2 1.11.1 1.11.1 Discontinued
Transitive dependencies
Package Constraint Compatible Latest Notes
_fe_analyzer_shared - 89.0.0 89.0.0
analyzer - 8.2.0 8.2.0
args - 2.7.0 2.7.0
async - 2.13.0 2.13.0
boolean_selector - 2.1.2 2.1.2
build - 4.0.1 4.0.1
built_collection - 5.1.1 5.1.1
built_value - 8.12.0 8.12.0
characters - 1.4.0 1.4.1
clock - 1.1.2 1.1.2
code_builder - 4.11.0 4.11.0
collection - 1.19.1 1.19.1
convert - 3.1.2 3.1.2
crypto - 3.0.6 3.0.6
dart_style - 3.1.2 3.1.2
fake_async - 1.3.3 1.3.3
file - 7.0.1 7.0.1
firebase_core - 1.24.0 4.1.1
firebase_core_web - 1.7.3 3.1.1
firebase_database_platform_interface - 0.0.1+1 0.2.6+13
fixnum - 1.1.1 1.1.1
glob - 2.1.3 2.1.3
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
logging - 1.3.0 1.3.0
matcher - 0.12.17 0.12.17
material_color_utilities - 0.11.1 0.13.0
meta - 1.16.0 1.17.0
package_config - 2.2.0 2.2.0
path - 1.9.1 1.9.1
plugin_platform_interface - 2.1.8 2.1.8
pub_semver - 2.2.0 2.2.0
source_gen - 4.0.1 4.0.1
source_span - 1.10.1 1.10.1
stack_trace - 1.12.1 1.12.1
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.6 0.7.7
typed_data - 1.4.0 1.4.0
vector_math - 2.2.0 2.2.0
vm_service - 15.0.2 15.0.2
watcher - 1.1.4 1.1.4
yaml - 3.1.3 3.1.3

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

Found 3 issues. Showing the first 2:

The constraint `^4.0.1` on firebase_core_platform_interface does not support the stable version `5.0.0`.

Try running dart pub upgrade --major-versions firebase_core_platform_interface to update the constraint.

The constraint `^7.2.0` on firebase_database does not support the stable version `8.0.0`.

Try running dart pub upgrade --major-versions firebase_database to update the constraint.

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

Passed check 20/20 points: Compatible with dependency constraint lower bounds

pub downgrade does not expose any static analysis error.

Analyzed with Pana 0.22.23, Flutter 3.35.5, Dart 3.9.2.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
2
likes
100
points
37
downloads

Publisher

verified publisherkildere.dev

Weekly Downloads

Mocks to write unit tests for FirebaseDatabase (real-time database).

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

firebase_core_platform_interface, firebase_database, flutter, flutter_test, mockito, pedantic

More

Packages that depend on firebase_database_mock