Closed msridhar closed 10 months ago
Attention: 4 lines
in your changes are missing coverage. Please review.
Comparison is base (
8f4f8a6
) 87.02% compared to head (ff60b56
) 87.04%.
Files | Patch % | Lines |
---|---|---|
...llaway/dataflow/AccessPathNullnessPropagation.java | 50.00% | 3 Missing and 1 partial :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
The test coverage failure is expected here as we do not expect the exceptional cases to actually occur
@yuxincs @lazaroclapp could one of you review?
Fixes #866
Before, we would check that an enhanced-for loop includes a call to
Set.iterator()
on the result of callingMap.keySet()
. However, it is possible and legal that statically, the target of this call is insteadCollection.iterator()
. So, we change our check to test the receiver type passed into the call (which must still be aSet
). Also, opportunistically switch a couple of places we were throwingRuntimeException
around this check to throw the more meaningfulVerifyException
. Unfortunately, we have not found a way to add a test in open-source to reproduce the failure from #866 but we have confirmed this change fixes the problem.