firebase_database_mocks 0.7.1 copy "firebase_database_mocks: ^0.7.1" to clipboard
firebase_database_mocks: ^0.7.1 copied to clipboard

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

15
likes
150/ 160
pub points
1.54k
downloads

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

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

Partially passed check 10/10 points: Provide a valid pubspec.yaml

Issue tracker URL doesn't exist.

At the time of the analysis https://github.com/sitatec/firebase_database_mocks/issues was unreachable. Make sure that the website is reachable via HEAD requests.

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

15 out of 20 API elements (75.0 %) have documentation comments.

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

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_mocks/firebase_database_mocks.dart that imports:
  • package:firebase_database_mocks/src/mock_firebase_database.dart that imports:
  • package:firebase_database_mocks/src/mock_database_reference.dart that imports:
  • package:firebase_database_mocks/src/mock_data_snapshot.dart that imports:
  • package:firebase_database/firebase_database.dart that declares support for platforms: Android, iOS, macOS, Web.
Package does not support platform `Linux`.

Because:

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

Because:

  • package:firebase_database_mocks/firebase_database_mocks.dart that imports:
  • package:firebase_database_mocks/src/set_up_mocks.dart that imports:
  • package:flutter_test/flutter_test.dart that imports:
  • package:flutter_test/src/widget_tester.dart that imports:
  • package:flutter_test/src/test_text_input.dart that imports:
  • package:flutter_test/src/test_text_input_key_handler.dart that imports:
  • package:flutter_test/src/binding.dart that imports:
  • package:flutter_test/src/platform.dart that imports:
  • dart:io

Failed check 0/0 points: WASM compatibility

Package not compatible with runtime wasm

Because:

  • package:firebase_database_mocks/firebase_database_mocks.dart that imports:
  • package:firebase_database_mocks/src/set_up_mocks.dart that imports:
  • package:flutter_test/flutter_test.dart that imports:
  • package:flutter_test/src/widget_tester.dart that imports:
  • package:flutter_test/src/test_text_input.dart that imports:
  • package:flutter_test/src/test_text_input_key_handler.dart that imports:
  • package:flutter_test/src/binding.dart that imports:
  • package:flutter_test/src/platform.dart that imports:
  • dart:io

This package is not compatible with runtime wasm, and will not be rewarded full points in a future version of the scoring model.

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

Partially passed report section
Pass static analysis
40 / 50trigger folding of the section

Partially passed check 40/50 points: code has no errors, warnings, lints, or formatting issues

Found 3 issues. Showing the first 2:

INFO: Statements in an if should be enclosed in a block.

lib/src/mock_database_reference.dart:38:7

38return _volatileData = data;
   │       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   ╵
copied to clipboard

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

INFO: Assignment to a variable of type 'void'.

lib/src/mock_database_reference.dart:38:7

38return _volatileData = data;
   │       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   ╵
copied to clipboard

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

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

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

Package Constraint Compatible Latest Notes
firebase_core_platform_interface ^5.3.1 5.4.0 5.4.0
firebase_database ^11.2.0 11.3.5 11.3.5
mockito ^5.4.4 5.4.5 5.4.5
Transitive dependencies
Package Constraint Compatible Latest Notes
_fe_analyzer_shared - 80.0.0 80.0.0
_flutterfire_internals - 1.3.54 1.3.54
analyzer - 7.3.0 7.3.0
args - 2.7.0 2.7.0
async - 2.12.0 2.13.0
boolean_selector - 2.1.2 2.1.2
build - 2.4.2 2.4.2
built_collection - 5.1.1 5.1.1
built_value - 8.9.5 8.9.5
characters - 1.4.0 1.4.0
clock - 1.1.2 1.1.2
code_builder - 4.10.1 4.10.1
collection - 1.19.1 1.19.1
convert - 3.1.2 3.1.2
crypto - 3.0.6 3.0.6
dart_style - 3.0.1 3.0.1
fake_async - 1.3.2 1.3.3
file - 7.0.1 7.0.1
firebase_core - 3.13.0 3.13.0
firebase_core_web - 2.22.0 2.22.0
firebase_database_platform_interface - 0.2.6+5 0.2.6+5
firebase_database_web - 0.2.6+11 0.2.6+11
fixnum - 1.1.1 1.1.1
glob - 2.1.3 2.1.3
leak_tracker - 10.0.8 10.0.9
leak_tracker_flutter_testing - 3.0.9 3.0.9
leak_tracker_testing - 3.0.1 3.0.1
logging - 1.3.0 1.3.0
matcher - 0.12.17 0.12.17
material_color_utilities - 0.11.1 0.12.0
meta - 1.16.0 1.16.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 - 2.0.0 2.0.0
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.4 0.7.4
typed_data - 1.4.0 1.4.0
vector_math - 2.1.4 2.1.4
vm_service - 14.3.1 15.0.0
watcher - 1.1.1 1.1.1
web - 1.1.1 1.1.1
yaml - 3.1.3 3.1.3

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

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.20, Flutter 3.29.2, Dart 3.7.2.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
Jun 29Jul 27Aug 24Sep 21Oct 19Nov 16Dec 14Jan 11Feb 8Mar 80100200300400500600700800>=0.0.0-0 <1.0.0
15
likes
150
points
1.54k
downloads

Publisher

verified publisherberete.dev

Weekly Downloads

2024.09.15 - 2025.03.30

Mock Library 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

More

Packages that depend on firebase_database_mocks