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

uber / h3-go / 38000069320 / 1
100%
master: 100%

Build:
DEFAULT BRANCH: master
Ran 09 Oct 2026 10:42PM UTC
Files 20
Run time 1s
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

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

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>

4550 of 4550 relevant lines covered (100.0%)

4163498.27 hits per line

Source Files on job Go- - 38000069320.1
  • Tree
  • List 20
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 38000069320
  • 8e869f01 on github
  • Prev Job for on master (#37692238133.1)
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