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

antchfx / xpath / 34819574471
85%
master: 85%

Build:
Build:
LAST BUILD BRANCH: rune-correct-string-functions
DEFAULT BRANCH: master
Ran 14 Sep 2026 07:48AM UTC
Jobs 1
Files 8
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

14 Sep 2026 07:47AM UTC coverage: 84.623% (+0.02%) from 84.602%
34819574471

Pull #139

github

youdie006
Make string-length, substring and translate count characters

XPath 1.0 4.2 defines these in characters; all three index by byte, so
string-length("日本語") is 9 and substring("日本語abc", 2, 2) returns a
byte slice that is not valid UTF-8. stringLengthFunc's own doc comment
already says "number of characters".

The three move together: fixing string-length alone turns the common
idiom substring(s, 1, string-length(s)) from "hello" into a truncated
string, because the length is then in characters but the slice is in
bytes.

normalizespaceFunc already converts to []rune for the same reason.
Pull Request #139: Make string-length, substring and translate count characters

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

2526 of 2985 relevant lines covered (84.62%)

336.04 hits per line

Jobs
ID Job ID Ran Files Coverage
1 34819574471.1 14 Sep 2026 07:48AM UTC 8
84.62
GitHub Action Run
Source Files on build 34819574471
  • Tree
  • List 8
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #139
  • PR Base - master (#34624692880)
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