firebase / firebase-android-sdk

Firebase Android SDK
https://firebase.google.com
Apache License 2.0
2.23k stars 565 forks source link

Refactor ComponentProvider #6037

Open tom-andersen opened 2 weeks ago

tom-andersen commented 2 weeks ago

The ComponentProvider is lightweight dependency injection for Firestore components. This PR expands the number of class that are instantiated as part of the ComponentProvider. This separation of concerns simplifies classes, and makes testing these classes in isolation possible.

This PR includes some refactoring of tests, with respect to instantiating classes.

This PR prepares for more thorough integration tests as part of cache clearing logic.

google-oss-bot commented 2 weeks ago
1 Warning
:warning: Did you forget to add a changelog entry? (Add the 'no-changelog' label to the PR to silence this warning.)

Generated by :no_entry_sign: Danger

google-oss-bot commented 2 weeks ago

<!DOCTYPE html>

Coverage Report 1

Affected Products

Test Logs

github-actions[bot] commented 2 weeks ago

Unit Test Results

   182 files  ±0     182 suites  ±0   4m 34s :stopwatch: +8s 1 229 tests ±0  1 213 :heavy_check_mark: ±0  16 :zzz: ±0  0 :x: ±0  2 482 runs  ±0  2 450 :heavy_check_mark: ±0  32 :zzz: ±0  0 :x: ±0 

Results for commit e6e15c04. ± Comparison against base commit 0cc4129d.

:recycle: This comment has been updated with latest results.

google-oss-bot commented 2 weeks ago

<!DOCTYPE html>

Size Report 1

Affected Products

Test Logs