ouchadam / small-talk

Minimal Android messenger powered by Matrix
Apache License 2.0
141 stars 3 forks source link

Tech/Push registration tests #245

Closed ouchadam closed 2 years ago

ouchadam commented 2 years ago

Adds unit tests around the push module (token registration for firebase and unified push)

github-actions[bot] commented 2 years ago

APK Size: 2.01 MB

codecov[bot] commented 2 years ago

Codecov Report

Merging #245 (67be48a) into main (b6f223c) will increase coverage by 2.11%. The diff coverage is 73.77%.

@@             Coverage Diff              @@
##               main     #245      +/-   ##
============================================
+ Coverage     63.53%   65.65%   +2.11%     
- Complexity      581      620      +39     
============================================
  Files           243      244       +1     
  Lines          5907     5919      +12     
  Branches        725      725              
============================================
+ Hits           3753     3886     +133     
+ Misses         1815     1685     -130     
- Partials        339      348       +9     
Impacted Files Coverage Δ
...kotlin/app/dapk/st/push/unifiedpush/UnifiedPush.kt 0.00% <0.00%> (ø)
.../st/push/unifiedpush/UnifiedPushMessageDelegate.kt 76.92% <76.92%> (ø)
...ain/kotlin/app/dapk/st/push/PushTokenRegistrars.kt 80.85% <85.71%> (+78.62%) :arrow_up:
...p/dapk/st/push/unifiedpush/UnifiedPushRegistrar.kt 96.15% <100.00%> (+96.15%) :arrow_up:
.../st/push/unifiedpush/UnifiedPushMessageReceiver.kt
...kotlin/app/dapk/st/core/extensions/ErrorTracker.kt 100.00% <0.00%> (+40.00%) :arrow_up:
...sh/src/main/kotlin/app/dapk/st/push/PushHandler.kt 100.00% <0.00%> (+100.00%) :arrow_up:
.../dapk/st/push/messaging/MessagingServiceAdapter.kt 100.00% <0.00%> (+100.00%) :arrow_up:
... and 1 more

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more