• 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: SELECT
CHANGE BRANCH
x
  • No branch selected
  • 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/predicate-context-node
  • 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 master
  • 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
43164561694 master Improve normalize-space() performance (#191) Speed up `normalizespaceFunc` push 12 Nov 2026 05:55AM UTC web-flow github
85.62
43162700343 master Return positional step results in document order (#187) push 12 Nov 2026 05:38AM UTC zhengchun github
85.62
43113271951 fix/last-on-remaining-axes Count last() over the remaining axes Pull #192 11 Nov 2026 10:37PM UTC lprnmns github
85.94
42387361295 master Count `last()` over the following and following-sibling axes (PR #188) push 07 Nov 2026 03:38PM UTC zhengchun github
85.74
42254521954 master fix: keep the node test of a descendant-or-self step before a child step (#186) push 06 Nov 2026 04:40PM UTC zhengchun github
85.59
42251350001 master #185 Add `NodeIdentity` to replace `getHashCode()` for node identity push 06 Nov 2026 04:20PM UTC zhengchun github
85.58
42069455466 master performance: union result avoids a second getHashCode() walk by sorting before dedup. #178, #185 push 05 Nov 2026 04:55PM UTC zhengchun github
87.27
42016953277 master Traverse preceding axis in reverse document order (#183) push 05 Nov 2026 11:11AM UTC zhengchun github
87.22
41960311153 fix/last-following-axis Count last() over the following and following-sibling axes last() in a predicate on the following or following-sibling axis counted all siblings of the candidate node that the node test matched, so the count included nodes before the context node... Pull #188 05 Nov 2026 03:14AM UTC rudycelekli github
87.34
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