Ran
|
Files
52
|
Run time
1s
|
Badge
Embed ▾
README BADGES
|
push
github
Refactored check in IGListCollectionViewLayout for more reliable coverage Summary: The `[context invalidateDataSourceCounts] && _minimumInvalidatedSection == NSNotFound` condition was never getting triggered in any of our tests. I tried to simulate this condition in my testing, but it doesn't seem possible to have `_minimumInvalidatedSection` set to `NSNotFound` when execution reaches this point. This is because the only public pathway I could see to `[context invalidateLayoutWithContext:]` was via the regular `invalidateLayout` method which always sets `_minimumInvalidatedSection` to 0 before continuing. To solve this, since the resulting logic ends up being the same in the check above, I simply collapsed this check into the one above it. Reviewed By: fabiomassimo Differential Revision: D50000788 fbshipit-source-id: da0bf0cb1
4147 of 4147 relevant lines covered (100.0%)
746.73 hits per line
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
---|