go-spatial / geom

Geometry interfaces to help drive interoperability within the Go geospatial community
MIT License
173 stars 38 forks source link

[compare] Consolidated Comparison functions #116

Closed gdey closed 3 years ago

gdey commented 3 years ago

It was reported that one of our comparison functions was using math.NaN incorrectly. Turns out this comparison function was a duplicate of another function that was doing the comparison correctly, and had tests. Removed the duplicate function, and references to it were ported to the correct function.

fixes #115

coveralls commented 3 years ago

Pull Request Test Coverage Report for Build 517


Changes Missing Coverage Covered Lines Changed/Added Lines %
encoding/gpkg/gpkg.go 0 1 0.0%
geom.go 0 1 0.0%
planar/triangulate/delaunay/subdivision/geom.go 0 1 0.0%
encoding/gpkg/binary_header.go 0 2 0.0%
cmp/compare.go 0 4 0.0%
cmp/empty.go 28 37 75.68%
<!-- Total: 28 46 60.87% -->
Totals Coverage Status
Change from base Build 515: 0.2%
Covered Lines: 6688
Relevant Lines: 11893

💛 - Coveralls
gdey commented 3 years ago

There are two breaking changing IsNil, and IsEmptyGeo went from bool, error to just bool.