element-hq / element-x-android

Android Matrix messenger application using the Matrix Rust Sdk and Jetpack Compose
GNU Affero General Public License v3.0
1k stars 136 forks source link

Add unit tests on TimelineItemsSubscriber #3554

Open bmarty opened 1 day ago

bmarty commented 1 day ago

Content

Add unit tests on TimelineItemsSubscriber, in particular, cover the fix done in #3538.

Motivation and context

Improve code coverage.

Screenshots / GIFs

Tests

Tested devices

Checklist

github-actions[bot] commented 1 day ago

:iphone: Scan the QR code below to install the build (arm64 only) for this PR. QR code If you can't scan the QR code you can install the build via this link: https://i.diawi.com/nSPFKY

codecov[bot] commented 1 day ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 82.68%. Comparing base (e21c8d1) to head (f89463c). Report is 2 commits behind head on develop.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## develop #3554 +/- ## ======================================== Coverage 82.67% 82.68% ======================================== Files 1732 1732 Lines 40970 40970 Branches 4962 4962 ======================================== + Hits 33873 33874 +1 Misses 5341 5341 + Partials 1756 1755 -1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

sonarcloud[bot] commented 1 day ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud