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

antchfx / xpath / 44087509928
86%
master: 86%

Build:
Build:
LAST BUILD BRANCH: fix/predicate-context-node
DEFAULT BRANCH: master
Ran 17 Nov 2026 12:54PM 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

17 Nov 2026 12:53PM UTC coverage: 85.766% (+0.1%) from 85.624%
44087509928

Pull #193

github

LuisFigueroaG
Keep the context node after a nested predicate

filterQuery moves t.Current() to each node while it evaluates the
predicate and leaves it there. When the filter is one operand of an
expression, the operands after it were evaluated against that node
instead of the original context node, so //p[a[@x] = @id] compared a
with the id of a instead of the id of p. The same happened with
string(), number(), contains(), concat() and the other functions that
take a filtered node-set before another argument.

Move t.Current() back to the context node after each predicate. The
saved node is kept on the filter and reused with MoveTo, so it is only
copied once per query.
Pull Request #193: Keep the context node after a nested predicate

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

2862 of 3337 relevant lines covered (85.77%)

652.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 44087509928.1 17 Nov 2026 12:54PM UTC 8
85.77
GitHub Action Run
Source Files on build 44087509928
  • Tree
  • List 8
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #193
  • PR Base - master (#43164561694)
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