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

DrRataplan / xq-lsp / 29937279937
93%

Build:
DEFAULT BRANCH: main
Ran 22 Jul 2026 04:17PM UTC
Jobs 1
Files 31
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

22 Jul 2026 04:16PM UTC coverage: 92.732% (-0.03%) from 92.761%
29937279937

push

github

DrRataplan
fix: infer arithmetic types and stop misinferring literal path exprs as nodes

Two real bugs found via inlay hints showing wrong/missing info:

- inferExprType had no case for AdditiveExpr/MultiplicativeExpr at all,
  so any arithmetic (+, -, *, div, idiv, mod) inferred as unknown —
  e.g. "let $y := 23 div 24" showed no hint whatsoever. Added arithmetic
  result inference reusing the existing isAtomicSubtype/xs:numeric
  promotion chain rather than a new hardcoded numeric ordering: normal
  numeric widening for +/-/*';  mod, plus the two special cases per
  XPath F&O (integer div integer always yields xs:decimal; idiv always
  yields xs:integer).

- The PathExpr/RelativePathExpr case assumed any expression containing
  a bare "/" was node-producing, purely from the presence of the
  operator terminal. Since XQuery's grammar allows any PrimaryExpr
  (including plain literals) as a path step, "23 / 2" parses as a
  syntactically valid two-step path and was inferred as node()* — a
  case checkTypes would have surfaced as a bogus type error had that
  path been passed to a node()-typed parameter. Now checks every step
  via inferExprType itself and only assumes node()* when no step is
  provably a non-node type.

1402 of 1664 branches covered (84.25%)

Branch coverage included in aggregate %.

55 of 56 new or added lines in 1 file covered. (98.21%)

1 existing line in 1 file now uncovered.

5169 of 5422 relevant lines covered (95.33%)

334339.93 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
98.11
0.15% src/typechecker.ts

Coverage Regressions

Lines Coverage ∆ File
1
98.11
0.15% src/typechecker.ts
Jobs
ID Job ID Ran Files Coverage
1 29937279937.1 22 Jul 2026 04:17PM UTC 31
92.73
GitHub Action Run
Source Files on build 29937279937
  • Tree
  • List 31
  • Changed 12
  • Source Changed 1
  • Coverage Changed 12
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #29937279937
  • 825a9ab1 on github
  • Prev Build on main (#29937249904)
  • Next Build on main (#29999072243)
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