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

antchfx / xpath
86%
master: 86%

Build:
Build:
LAST BUILD BRANCH: fix/predicate-context-node
DEFAULT BRANCH: master
Repo Added 08 May 2017 11:19AM UTC
Files 8
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

LAST BUILD ON BRANCH fix/predicate-context-node
branch: fix/predicate-context-node
CHANGE BRANCH
x
Reset
  • fix/predicate-context-node
  • 0.1
  • 1.1.0
  • feat/lang-function
  • fix-ancestor-predicate-chain
  • fix-group-predicate-last
  • fix-name-of-non-element-nodes
  • fix-round-mod-numeric-spec
  • fix/attribute-axis-from-attribute
  • fix/boolean-relational-comparison
  • fix/clone-nil-input
  • fix/contains-starts-with-args
  • fix/ends-with-node-suffix-20261029
  • fix/evaluate-nodeset-comparison-20261101
  • fix/fractional-position-predicates
  • fix/function-argument-counts-20261029
  • fix/last-following-axis
  • fix/last-on-remaining-axes
  • fix/namespace-axis-unsupported
  • fix/nil-input-clone
  • fix/not-number-string-argument
  • fix/number-boolean-args
  • fix/number-string-conversion
  • fix/position-predicate-step
  • fix/positional-step-document-order
  • fix/string-length-context-node
  • fix/substring-after-empty-pattern
  • fix/translate-const-precompute
  • fix/unary-minus-number
  • fix/union-document-order
  • following-axis-position
  • master
  • matches-empty-nodeset
  • positional-predicate-after-predicate
  • preceding-axis-position
  • refs/tags/v1.3.0
  • refs/tags/v1.3.1
  • refs/tags/v1.3.2
  • refs/tags/v1.3.3
  • refs/tags/v1.3.4
  • refs/tags/v1.3.5
  • refs/tags/v1.3.6
  • refs/tags/v1.3.7
  • refs/tags/v1.3.8
  • refs/tags/v1.3.9
  • rune-correct-string-functions
  • scalar-string-args
  • substring-ind-asstring
  • v1.0.0
  • v1.1.0
  • v1.1.1
  • v1.1.10
  • v1.1.11
  • v1.1.2
  • v1.1.3
  • v1.1.4
  • v1.1.5
  • v1.1.6
  • v1.1.7
  • v1.1.8
  • v1.1.9
  • v1.2.0

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

Relevant lines Covered
Build:
Build:
3337 RELEVANT LINES 2862 COVERED LINES
652.0 HITS PER LINE
Source Files on fix/predicate-context-node
  • Tree
  • List 8
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
44087509928 fix/predicate-context-node 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 nod... Pull #193 17 Nov 2026 12:54PM UTC LuisFigueroaG github
85.77
See All Builds (254)
  • Repo on GitHub
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