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

klokare / decimal / #1
92%

Build:
DEFAULT BRANCH: master
Ran 24 Aug 2026 03:56PM UTC
Jobs 1
Files 12
Run time 1min
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

24 Aug 2026 02:41PM UTC coverage: 92.43%. First build
#1

push

klokare
Fix the two CI failures, and close the gap that let one through

The 32-bit job caught a real hole. Three test assertions passed an untyped
constant to FromInt, which infers int -- 32 bits on a 386 or arm target, so
FromInt(math.MinInt64) does not compile there. The library itself was fine;
the build step passed and only the test step failed.

One of the three could not be fixed with a cast. It guarded a 64-bit
literal behind `if bits := ^uint(0) >> 63; bits == 1`, which does nothing:
Go type-checks both branches, so the constant still has to fit. It now
checks the platform's own boundary with math.MinInt and math.MaxInt, which
is the invariant that actually matters for Int and Uint and holds on 32-
and 64-bit alike.

`make cross` used `go build`, and build ignores _test.go files -- which is
exactly why this passed locally and failed in CI. It now uses `go vet`,
which type-checks the tests, and the CI per-architecture step does the
same. Both would have caught this before the push.

The lint job failed for an unrelated reason: golangci-lint-action v6 only
understands golangci-lint v1 version strings, so pinning v2.13.1 made it
error out. Bumped to the v7 action.

Worth recording what did pass: the s390x job ran the full suite under QEMU
and was green, so the big-endian word accessors are now verified by an
actual test run rather than only by compiling.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

3260 of 3527 relevant lines covered (92.43%)

21825.01 hits per line

Jobs
ID Job ID Ran Files Coverage
1 #1.1 24 Aug 2026 03:56PM UTC 12
92.43
Source Files on build #1
  • Tree
  • List 12
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 834d3a94 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