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

romshark / jscan / 30394507426
98%
main: 99%

Build:
Build:
LAST BUILD BRANCH: tokenizer
DEFAULT BRANCH: main
Ran 28 Jul 2026 08:02PM UTC
Jobs 1
Files 4
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

28 Jul 2026 08:00PM UTC coverage: 98.292% (-0.4%) from 98.687%
30394507426

Pull #27

github

romshark
fix: Missed overflow in I8, I16 and I32

The signed parsers inferred overflow from the sign of the result, which
only holds if the value wraps once. The longest accepted digit strings
can wrap several times and land back in the correct sign, so Token.Int8
returned (44, nil) for the JSON value 300 instead of ErrOverflow.

The cases that can overflow now compute in the next wider type and
bound-check before narrowing. U8, U16, U32, U64 and I64 were unaffected.

test: Add FuzzAtoi, exhaustive 8/16-bit and boundary tests against
strconv, and regression rows for the affected ranges.
Pull Request #27: Tokenizer API

718 of 731 new or added lines in 1 file covered. (98.22%)

4 existing lines in 1 file now uncovered.

1841 of 1873 relevant lines covered (98.29%)

33533.6 hits per line

Uncovered Changes

Lines Coverage ∆ File
13
98.22
tokenize.go

Coverage Regressions

Lines Coverage ∆ File
4
94.93
-2.9% jscan.go
Jobs
ID Job ID Ran Files Coverage
1 30394507426.1 28 Jul 2026 08:02PM UTC 4
98.29
GitHub Action Run
Source Files on build 30394507426
  • Tree
  • List 4
  • Changed 3
  • Source Changed 3
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #30394507426
  • Pull Request #27
  • PR Base - main (#30386852643)
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