Closed luizgrp closed 4 years ago
Merging #196 into develop will decrease coverage by
0.03%
. The diff coverage is100.00%
.
@@ Coverage Diff @@
## develop #196 +/- ##
===========================================
- Coverage 92.04% 92.00% -0.04%
===========================================
Files 7 7
Lines 616 638 +22
Branches 79 85 +6
===========================================
+ Hits 567 587 +20
- Misses 26 28 +2
Partials 23 23
Impacted Files | Coverage Δ | |
---|---|---|
...p/sectionedrecyclerviewadapter/SectionAdapter.java | 99.20% <ø> (ø) |
|
...yclerviewadapter/SectionedRecyclerViewAdapter.java | 87.87% <100.00%> (+0.27%) |
:arrow_up: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 15e883d...9c21beb. Read the comment docs.
@yccheok added unit test for scenario 2 👍
Thank you so much! 😘
Looks good to me. It prevents 2 things
1) Prevent caller from adding same instance twice.
2) Prevent caller from adding 2 instance of Section, which their hashCode and equals methods have been overridden in some way. (Not sure you would like to provide unit test to test this as well?)