Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Code health] Replace mock with actual implementation in DataCollectionFragmentTest #2886

Merged
merged 9 commits into from
Dec 5, 2024

Conversation

shobhitagarwal1612
Copy link
Member

@shobhitagarwal1612 shobhitagarwal1612 commented Dec 1, 2024

Towards #2134
Towards #2840

Replaces mock implementation of SubmissionRepository with actual implementation in DataCollectionFragmentTest.

This improves the test coverage for SubmissionRepository by 60% and overall coverage by 1%.

Since this is a test-only change, so end-user behavior remains no-op.

@gino-m @anandwana001 PTAL?

@auto-assign auto-assign bot requested review from anandwana001 and scolsen December 1, 2024 10:13
@shobhitagarwal1612 shobhitagarwal1612 requested review from gino-m and removed request for scolsen December 1, 2024 10:13
Copy link

codecov bot commented Dec 1, 2024

Codecov Report

Attention: Patch coverage is 50.00000% with 4 lines in your changes missing coverage. Please review.

Project coverage is 62.64%. Comparing base (e9bceef) to head (41633e6).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
...rsistence/local/room/stores/RoomSubmissionStore.kt 25.00% 3 Missing ⚠️
...ogle/android/ground/ui/home/HomeScreenViewModel.kt 50.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #2886      +/-   ##
============================================
+ Coverage     61.59%   62.64%   +1.04%     
- Complexity     1176     1206      +30     
============================================
  Files           269      269              
  Lines          6364     6366       +2     
  Branches        878      878              
============================================
+ Hits           3920     3988      +68     
+ Misses         1899     1829      -70     
- Partials        545      549       +4     
Files with missing lines Coverage Δ
.../android/ground/repository/SubmissionRepository.kt 80.00% <100.00%> (+61.39%) ⬆️
...ogle/android/ground/ui/home/HomeScreenViewModel.kt 67.64% <50.00%> (-0.93%) ⬇️
...rsistence/local/room/stores/RoomSubmissionStore.kt 69.30% <25.00%> (+9.30%) ⬆️

... and 7 files with indirect coverage changes

@shobhitagarwal1612 shobhitagarwal1612 changed the title [Test Coverage] Replace mock with actual implementation in DataCollectionFragmentTest [Code health] Replace mock with actual implementation in DataCollectionFragmentTest Dec 2, 2024
@shobhitagarwal1612 shobhitagarwal1612 merged commit 859283c into master Dec 5, 2024
4 checks passed
@shobhitagarwal1612 shobhitagarwal1612 deleted the repo-tests branch December 5, 2024 05:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants