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

antchfx / xpath
78%
master: 78%

Build:
Build:
LAST BUILD BRANCH: fix-group-predicate-last
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-group-predicate-last
branch: fix-group-predicate-last
CHANGE BRANCH
x
Reset
  • fix-group-predicate-last
  • 0.1
  • 1.1.0
  • fix-ancestor-predicate-chain
  • master
  • 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
  • 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

13 Feb 2026 03:26PM UTC coverage: 78.078% (+0.07%) from 78.01%
21992530923

Pull #120

github

mislav
Fix last() predicate on grouped expressions

When evaluating expressions like (//author)[last()], the last() function
was counting sibling nodes per-parent instead of counting the total nodes
in the grouped result set. This caused incorrect matches when group
members came from different parent nodes.

The fix ensures that b.firstInput is always set to the groupQuery in the
nodeGroup case, and adds handling for *groupQuery in the lastFuncQuery
conversion, using a cloned query to avoid consuming the shared input.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Pull Request #120: Fix last() predicate on grouped expressions

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

2315 of 2965 relevant lines covered (78.08%)

240.69 hits per line

Relevant lines Covered
Build:
Build:
2965 RELEVANT LINES 2315 COVERED LINES
240.69 HITS PER LINE
Source Files on fix-group-predicate-last
  • Tree
  • List 8
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
21992530923 fix-group-predicate-last Fix last() predicate on grouped expressions When evaluating expressions like (//author)[last()], the last() function was counting sibling nodes per-parent instead of counting the total nodes in the grouped result set. This caused incorrect matche... Pull #120 13 Feb 2026 03:31PM UTC mislav github
78.08
See All Builds (155)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc