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

romshark / icumsg / 38147566563
98%

Build:
DEFAULT BRANCH: main
Ran 11 Oct 2026 02:32PM UTC
Jobs 1
Files 7
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

11 Oct 2026 02:26PM UTC coverage: 97.638% (-0.002%) from 97.64%
38147566563

push

github

romshark
fix: Return buffer unchanged when Tokenize fails

On error, return buffer as passed, without the tokens of the invalid
message. Some of those tokens don't link to their terminators yet, so
Token.String, Options and Analyze misbehave on them, and a caller that
tokenizes many messages into one buffer has to truncate it after each
failure:

    buf, err := tokenizer.Tokenize(language.English, nil,
        "{a, select, other{{n, plural, other{x}")

    Before: err == ErrUnexpectedEOF, len(buf) == 8, and buf[3].String
            panics with "slice bounds out of range [18:0]"
    After:  err == ErrUnexpectedEOF, len(buf) == 0

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

1736 of 1778 relevant lines covered (97.64%)

964.45 hits per line

Jobs
ID Job ID Ran Files Coverage
1 38147566563.1 11 Oct 2026 02:32PM UTC 7
97.64
GitHub Action Run
Source Files on build 38147566563
  • Tree
  • List 7
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #38147566563
  • 6be8ec5e on github
  • Prev Build on main (#38145829389)
  • Next Build on main (#38149500006)
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