Added Unit Test for MapStateRepository
Fixes #2526
40% -> 58% Code Coverage
@sufyanAbbasi @shobhitagarwal1612 PTAL? Should we write test for the delegate property as well? I think the variables setter and getter are already tested and the remaining can be skip, but would like to know your thoughts on this.
/gcbrun
Should we write test for the delegate property as well? I think the variables setter and getter are already tested and the remaining can be skip
I think your analysis is correct here, we don't need to unit test those since they are Kotlin features we can assume to just work.
Thank you so much!
/gcbrun
@anandwana001 Can you please ensure that the checks are passing locally as well?
* What went wrong:
Execution failed for task ':workspace:ground:ktfmtCheckTest'.
> [ktfmt] Found 1 files that are not properly formatted:
src/test/java/com/google/android/ground/repository/MapStateRepositoryTest.kt
/gcbrun
/gcbrun
Passing locally, running again now
/gcbrun