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

antchfx / xpath / 35672739326
84%
master: 84%

Build:
Build:
LAST BUILD BRANCH: scalar-string-args
DEFAULT BRANCH: master
Ran 22 Sep 2026 12:38AM 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

22 Sep 2026 12:37AM UTC coverage: 84.163% (+0.4%) from 83.798%
35672739326

Pull #141

github

youdie006
Return false from matches() when the node-set argument selects nothing

starts-with, ends-with and contains all return false when their node-set
argument selects no node (func.go:354, :381, :408). matches() returned ""
instead, so a boolean function handed back a string.

notFunc has no case for string and falls through to its default, so
not(matches(//no-such, 'x')) answered false where the three siblings answer
true. Idiomatically //a[not(matches(@href, '^https'))] dropped every <a> with
no href. boolean(X) and not(not(X)) also disagreed for the same X.

asBool maps "" to false, which is why a bare predicate looked right and this
went unnoticed.
Pull Request #141: Return false from matches() when the node-set argument selects nothing

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

2535 of 3012 relevant lines covered (84.16%)

311.14 hits per line

Jobs
ID Job ID Ran Files Coverage
1 35672739326.1 22 Sep 2026 12:38AM UTC 8
84.16
GitHub Action Run
Source Files on build 35672739326
  • Tree
  • List 8
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #141
  • PR Base - master (#35522170556)
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