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

shexjs / shex.js / 29376363217
75%

Build:
DEFAULT BRANCH: main
Ran 14 Jul 2026 11:32PM UTC
Jobs 1
Files 67
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

14 Jul 2026 11:30PM UTC coverage: 74.287% (+0.2%) from 74.131%
29376363217

push

github

Eric Prud'hommeaux
debuggers: shexmap-debug and shex-debug CLIs (design doc phases 2 and 4-CLI)

Both REPLs suspend by blocking on stdin -- the prompt IS the pause, so
no worker is needed in a terminal.  I/O is injected, so the command
loops are unit-tested with scripted sessions; the bins add a
one-byte-at-a-time fs.readSync(0) line reader.

shexmap-debug (@shexjs/extension-map): drives MaterializerDebugger.
  -t target.shex (--val file | --bindings file) [-j vars] [-r root]
  (stdin is the command channel, so the validation output moves to
  --val).  Commands: s/n/o/c, b LINE[:COL] (via locate.exprAt),
  bp PREDICATE, bn NODE, info/l/h/q.  Pauses print the constraint's
  source line with a caret; completion prints the quad count and the
  never-bound/unused-static warnings.

shex-debug (@shexjs/cli): shape-level validation stepping over the
  validator's tracker (enter/exit/recurse events, depth-based
  into/over/out).  -x schema -d data -n node [-s shape] with
  shex-validate's resolution conventions (node against the data source,
  shape against the schema source).  Breakpoints: b LINE[:COL] (via
  locate.shapeAt), bs SHAPE, bn NODE (the lexical form of a focus node).
  q aborts via a DebugQuit throw.  Constraint-level granularity awaits
  the regex engines' debugHooks (design doc phase 5).

Shared: EditorServices.sourceExcerpt renders the gutter-numbered
source/caret display for both.  Relative IRIs in breakpoint arguments
resolve against the schema base.

Tests: 7 shexmap-debug REPL cases, 6 shex-debug REPL cases, CLI
integration entries for both harnesses; 5071 passing.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

2438 of 3852 branches covered (63.29%)

Branch coverage included in aggregate %.

291 of 341 new or added lines in 5 files covered. (85.34%)

5484 of 6812 relevant lines covered (80.5%)

6539.59 hits per line

Uncovered Changes

Lines Coverage ∆ File
26
73.11
packages/shex-cli/lib/ShExDebugRepl.js
23
68.16
packages/extension-map/lib/ShExMapDebugRepl.js
1
72.73
packages/shex-cli/test/Debug-cli-test.js
Jobs
ID Job ID Ran Files Coverage
1 29376363217.1 14 Jul 2026 11:32PM UTC 67
74.29
GitHub Action Run
Source Files on build 29376363217
  • Tree
  • List 67
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #29376363217
  • 75644f70 on github
  • Prev Build on main (#29375716904)
  • Next Build on main (#29376718409)
  • Delete
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