• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

uber / h3-go
100%

Build:
DEFAULT BRANCH: master
Repo Added 18 Sep 2018 05:56PM UTC
Files 20
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH master
branch: master
CHANGE BRANCH
x
Reset
  • master
  • bench-ranges
  • bench/typed-sinks
  • chore-upgrade-h3-core
  • ci/nightly
  • conformance/curated
  • conformance/digest-merkle
  • conformance/digest-streams
  • conformance/digests
  • conformance/floats
  • conformance/hierarchy
  • conformance/inspection
  • conformance/regions
  • conformance/sets
  • conformance/traversal-edges-vertexes-localij
  • feat-add-error-codes
  • feat/construct-cell-grid-disk-unsafe
  • feat/latlng-to-cells-batch
  • fix/edge-length-tolerance
  • fix/great-circle-fma
  • gilley/adopt-modules
  • gilley/test-str
  • gilley/travis
  • griddisk-negative-k-guard
  • h3go/distance-fma
  • h3go/exact-projection-test
  • h3go/exhaustive-invariants
  • joegilley-patch-2
  • joegilley-patch-3
  • justinhwang/4.3
  • justinhwang/4.5
  • justinhwang/badge
  • justinhwang/bindings
  • justinhwang/bit
  • justinhwang/bump
  • justinhwang/changelog
  • justinhwang/coverage
  • justinhwang/doc
  • justinhwang/docs
  • justinhwang/edge
  • justinhwang/err
  • justinhwang/forward-gnomonic-opt
  • justinhwang/from_string
  • justinhwang/generics
  • justinhwang/github
  • justinhwang/greatcircle
  • justinhwang/griddiskunsafe
  • justinhwang/gridring
  • justinhwang/indexdigit
  • justinhwang/intpow
  • justinhwang/latlngcell
  • justinhwang/latlngstr
  • justinhwang/numverts
  • justinhwang/paritytest-benchmarks
  • justinhwang/purego-phase-a
  • justinhwang/purego-phase-b
  • justinhwang/purego-phase-c
  • justinhwang/purego-phase-d
  • justinhwang/purego-phase-e
  • justinhwang/purego-phase-f
  • justinhwang/purego-phase-g
  • justinhwang/readme
  • justinhwang/remove-h3core
  • justinhwang/stack
  • justinhwang/tostring
  • justinhwang/tovec3-projection-opt
  • justinhwang/unsafe
  • justinhwang/vertex
  • maintainer-banner
  • perf/cell-area-boundary
  • perf/grid-distance
  • perf/griddisk-safe-hashset
  • perf/latlng-sincos
  • perf/multipolygon-flat-index
  • perf/polygon-to-cells-flat-sets
  • perf/small-ops
  • pin-github-actions-sha
  • refs/tags/v3.7.0
  • refs/tags/v3.7.1
  • refs/tags/v4.0.0
  • refs/tags/v4.0.1
  • refs/tags/v4.1.0
  • refs/tags/v4.1.1
  • refs/tags/v4.1.2
  • refs/tags/v4.2.0
  • refs/tags/v4.2.1
  • refs/tags/v4.2.2
  • refs/tags/v4.2.3
  • refs/tags/v4.2.4
  • refs/tags/v4.3.0
  • refs/tags/v4.4.0
  • refs/tags/v4.4.1
  • refs/tags/v4.5.0
  • update-h3
  • upgrade-github-actions-node24
  • v3.0.0
  • v3.0.1
  • v3.0.2
  • v4
  • vscode
  • zcoleman/exposing-polygontocells-containment
  • zcoleman/issue-78

09 Oct 2026 10:35PM UTC coverage: 100.0%. Remained the same
38000069320

push

github

web-flow
fix: guard GridDisk and GridDiskUnsafe against negative k (#165)

GridDisk and GridDiskUnsafe passed k straight into cgo after sizing the
output buffer with maxGridDiskSize(k). That polynomial is symmetric about
k = -0.5, so a negative k still yields a positive size: the allocation and
the cgo crossing happened only for C to reject k with E_DOMAIN.

Add a Go-side k < 0 check that returns ErrDomain up front, matching
GridRing and GridRingUnsafe directly below and the pure-Go x/h3go
implementation. This skips the wasted allocation and cgo call on invalid
input. GridDisk now returns a nil slice alongside the error instead of an
empty one.

Add negative-k coverage for both functions.

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

6 of 6 new or added lines in 1 file covered. (100.0%)

4550 of 4550 relevant lines covered (100.0%)

4163498.27 hits per line

Relevant lines Covered
Build:
Build:
4550 RELEVANT LINES 4550 COVERED LINES
4163498.27 HITS PER LINE
Source Files on master
  • Tree
  • List 20
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
38000069320 master fix: guard GridDisk and GridDiskUnsafe against negative k (#165) GridDisk and GridDiskUnsafe passed k straight into cgo after sizing the output buffer with maxGridDiskSize(k). That polynomial is symmetric about k = -0.5, so a negative k still yie... push 09 Oct 2026 10:40PM UTC web-flow github
100.0
37692238133 master chore: remove deprecated badge (#164) push 07 Oct 2026 09:56PM UTC web-flow github
100.0
37691858234 master ci: run the deep tests nightly on linux-amd64, linux-arm64 and macOS (#163) The push workflow runs every test at its default depth, which is what fits in a few minutes under the race detector: conformance digests to resolution 3, the exhaustive i... push 07 Oct 2026 09:50PM UTC web-flow github
100.0
37685517332 master paritytest: scale the edge length tolerance by unit (#162) assertEdgeLengthMatches allowed 1e-12 radians, 1e-9 kilometres and 1e-6 metres between the pure-Go and cgo edge lengths. Those are not the same bound: 1e-12 radians is 6.4e-9 kilometres, ... push 07 Oct 2026 08:59PM UTC web-flow github
100.0
37685604085 master fix: round degree conversions before the haversine subtraction (#161) GreatCircleDistanceRads in the root package is pure Go. It converts each coordinate from degrees to radians and then subtracts, and the Go spec lets the compiler fuse a product... push 07 Oct 2026 08:58PM UTC web-flow github
100.0
37659339538 master conformance: derive resolution digests from base cells and add resolution 7 (#160) The per-resolution digest lines were SHA-256 over the whole resolution's stream text, which could only be produced by one process walking all cells in order. Resol... push 07 Oct 2026 05:32PM UTC web-flow github
100.0
37548259433 master conformance: add curated files of known-trap inputs (#159) Seeded sampling gives coverage density but is blind to the specific inputs that have broken implementations. Six curated files hold such inputs by hand, each in exactly its group's record... push 06 Oct 2026 11:50PM UTC web-flow github
100.0
37547306717 master h3go: check the tiling, shared points and grid metric exhaustively (#158) Four tests that enumerate every cell up to a resolution and need no reference to state what they check: - The areas of the cells of a resolution sum to the area of the sph... push 06 Oct 2026 11:39PM UTC web-flow github
100.0
37337061110 master conformance: add the polygons and validity digest streams (#157) Two streams the digests group was missing, both format additions, landed together so the digest files change shape once. polygons: for every cell at resolutions 0 through 2, the bo... push 05 Oct 2026 04:01PM UTC web-flow github
100.0
37079004759 master perf: compute latLngToVec3 with math.Sincos in x/h3go (#156) latLngToVec3 took the sine and cosine of both the latitude and the longitude through four separate math.Sin / math.Cos calls, range-reducing each angle twice. math.Sincos returns sine a... push 02 Oct 2026 11:46PM UTC web-flow github
100.0
See All Builds (469)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc