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

shexjs / shex.js / 29374493162
75%

Build:
DEFAULT BRANCH: main
Ran 14 Jul 2026 10:56PM UTC
Jobs 1
Files 61
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 10:54PM UTC coverage: 73.815% (+0.1%) from 73.711%
29374493162

push

github

Eric Prud'hommeaux
shexmap: report never-bound variables and unused statics after materialization

A typo'd variable name in a required constraint silently produces an
empty graph: the unbound variable kills every thread needing it, and an
enclosing starred subshape legally absorbs the collapse by taking zero
iterations -- 'success', no quads, no clue (observed: a static keyed
Map:#foo referenced as bp:foo, i.e. Map:#BPDAM-foo).

ThreadedMaterializer now finishes every materialize() -- success or
throw -- with this.lastReport (also attached to MaterializationError as
.report):
- unboundVariables: referenced variables that exist in NO binding frame
  and NO static, each with its TripleConstraint for editor anchoring.
  Benignly-exhausted variables (normal loop-termination dead ends) are
  excluded, so healthy runs report nothing.
- unusedStatics: staticVars nothing referenced -- the same typo seen
  from the other side.

The shexmap app surfaces the report even on successful materialization:
warning squiggles on the affected constraints in the outputSchema pane
and on the unreferenced keys in the statics pane, so a mismatched name
lights up in both editors pointing at each other.  Error anchoring on
MaterializationError merges with the warnings.

Tests: silent-collapse case (empty graph + both report entries with tc
anchoring) and healthy-run quietness; 5046 passing.

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

2254 of 3577 branches covered (63.01%)

Branch coverage included in aggregate %.

37 of 38 new or added lines in 2 files covered. (97.37%)

5064 of 6337 relevant lines covered (79.91%)

7024.2 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
84.86
0.75% packages/extension-map/lib/ThreadedMaterializer.js
Jobs
ID Job ID Ran Files Coverage
1 29374493162.1 14 Jul 2026 10:56PM UTC 61
73.81
GitHub Action Run
Source Files on build 29374493162
  • Tree
  • List 61
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #29374493162
  • b247a669 on github
  • Prev Build on main (#29372960304)
  • Next Build on main (#29375716904)
  • 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