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

tecnickcom / gogen / 28813046103
100%

Build:
DEFAULT BRANCH: main
Ran 06 Jul 2026 06:16PM UTC
Jobs 1
Files 167
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

06 Jul 2026 06:11PM UTC coverage: 99.971%. Remained the same
28813046103

push

github

nicolaasuni
feat(decint)!: correct the safe range to the float64-exact 2^33 boundary, add sentinel errors, and format strings exactly from integers

- Fix the safe-range constants: MaxFloat is now 2^33 (8_589_934_592) and MaxInt is 2^33*1e6, the largest magnitude at which a float64 still resolves a 1e-6 step; the previous 2^53-derived range overstated what float64 can hold and silently dropped the sixth decimal digit above ~8.59e9 on both the parse and format paths.
- Add exported sentinel errors ErrInvalidNumber and ErrOutOfRange, wrapped by StringToInt and StringToUint so callers can distinguish unparseable or non-finite input from out-of-range values while keeping the underlying strconv error in the chain.
- Format IntToString and UintToString directly from the scaled integer, so output is exact for every value (including out-of-range inputs) and no longer depends on float64 precision.
- Document the StringToUint rule (non-finite input errors, finite non-positive clamps to zero, above-max errors) and align the FloatToUint rounding wording with FloatToInt.
- Add benchmarks for all conversions and regression tests pinning the corrected boundary, exact round-trips near the maximum, and half-away-from-zero rounding.

BREAKING CHANGE: MaxInt and MaxFloat change value (the safe range shrinks from ~2^53/1e6 to 2^33), and StringToInt/StringToUint now return errors wrapping ErrInvalidNumber or ErrOutOfRange instead of bare formatted strings.

20 of 20 new or added lines in 2 files covered. (100.0%)

13706 of 13710 relevant lines covered (99.97%)

138733.71 hits per line

Jobs
ID Job ID Ran Files Coverage
1 28813046103.1 06 Jul 2026 06:16PM UTC 167
99.97
GitHub Action Run
Source Files on build 28813046103
  • Tree
  • List 167
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #28813046103
  • b1967d93 on github
  • Prev Build on main (#28811427142)
  • Next Build on main (#28814129572)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc