Skip to content

Exclude an unreachable branch in polygonToCells->_getEdgeHexagons - #1208

Closed
isaacbrodsky wants to merge 1 commit into
uber:masterfrom
isaacbrodsky:polygon-to-cells-coverage-3
Closed

Exclude an unreachable branch in polygonToCells->_getEdgeHexagons#1208
isaacbrodsky wants to merge 1 commit into
uber:masterfrom
isaacbrodsky:polygon-to-cells-coverage-3

Conversation

@isaacbrodsky

Copy link
Copy Markdown
Collaborator

As explained in the comment, I expect this is unreachable because the only cases where latLngToCell fails are:

  • Res is invalid (impossible)
  • Lat or lng is not finite (impossible)
  • vec3ToCell fails (impossible since the reasons are same as the above two)

@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 99.719% (+0.02%) from 99.7% — isaacbrodsky:polygon-to-cells-coverage-3 into uber:master

@isaacbrodsky

Copy link
Copy Markdown
Collaborator Author

Thanks fuzzers for proving this was not correct :)

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.

2 participants