ouchadam / small-talk

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

Tech/Image Gallery Tests #244

Closed ouchadam closed 2 years ago

ouchadam commented 2 years ago

Unit tests around fetching images for the image gallery screen

github-actions[bot] commented 2 years ago

APK Size: 2.01 MB

codecov[bot] commented 2 years ago

Codecov Report

Merging #244 (6492afe) into main (40534bc) will increase coverage by 1.30%. The diff coverage is 82.14%.

:exclamation: Current head 6492afe differs from pull request most recent head b1c5481. Consider uploading reports for the commit b1c5481 to get more accurate results

@@             Coverage Diff              @@
##               main     #244      +/-   ##
============================================
+ Coverage     59.68%   60.98%   +1.30%     
- Complexity      570      581      +11     
============================================
  Files           243      245       +2     
  Lines          6126     6147      +21     
  Branches        736      735       -1     
============================================
+ Hits           3656     3749      +93     
+ Misses         2138     2060      -78     
- Partials        332      338       +6     
Impacted Files Coverage Δ
.../st/messenger/gallery/state/ImageGalleryReducer.kt 83.33% <ø> (+53.33%) :arrow_up:
...tlin/app/dapk/st/core/ContentResolverExtensions.kt 40.00% <40.00%> (ø)
...k/st/messenger/gallery/FetchMediaFoldersUseCase.kt 92.85% <94.11%> (+92.85%) :arrow_up:
...app/dapk/st/messenger/gallery/FetchMediaUseCase.kt 97.50% <100.00%> (+97.50%) :arrow_up:
...app/dapk/st/messenger/gallery/MediaUriAvoidance.kt 100.00% <100.00%> (ø)
.../dapk/st/messenger/gallery/MediaStoreExtensions.kt 0.00% <0.00%> (ø)
...c/main/kotlin/app/dapk/st/core/page/PageReducer.kt 57.89% <0.00%> (+2.63%) :arrow_up:
...pk/st/messenger/gallery/state/ImageGalleryState.kt 100.00% <0.00%> (+25.00%) :arrow_up:
... and 2 more

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