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

digidem / multi-core-indexer / 31517730058
100%

Build:
DEFAULT BRANCH: main
Ran 11 Aug 2026 05:29PM UTC
Jobs 4
Files 6
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

11 Aug 2026 05:28PM UTC coverage: 100.0%. Remained the same
31517730058

push

github

web-flow
feat: custom error classes with stable codes (#55)

* feat: custom error classes with stable codes

All errors created by this module are now custom classes built with
custom-error-creator, each with a stable machine-readable code
(INDEXER_CLOSED, INDEXER_NOT_CLOSED, MISSING_CORE_KEY,
MISSING_DISCOVERY_KEY) documented in a new Errors section in the readme.
Messages are unchanged; consumers should match on error.code.

* feat: identify error sources and export error classes

Errors delivered via the 'error' event are now wrapped in a coded class
identifying their source - BATCH_ERROR (the batch function threw or
rejected), HYPERCORE_ERROR (a core failed to open or a block read failed),
or STORAGE_ERROR (reading or writing index state storage failed, also used
for unlink() failures) - with the underlying error unchanged as cause.

The error classes are exported from multi-core-indexer/error.js so
consumers can match with instanceof as well as by code.

MISSING_CORE_KEY and MISSING_DISCOVERY_KEY are back to plain Errors: those
are impossible states thrown only to satisfy type narrowing, not part of
the error API.

291 of 291 branches covered (100.0%)

Branch coverage included in aggregate %.

78 of 78 new or added lines in 3 files covered. (100.0%)

1215 of 1215 relevant lines covered (100.0%)

31358.49 hits per line

Jobs
ID Job ID Ran Files Coverage
1 31517730058.1 11 Aug 2026 05:29PM UTC 6
100.0
GitHub Action Run
2 31517730058.2 11 Aug 2026 05:29PM UTC 6
100.0
GitHub Action Run
3 31517730058.3 11 Aug 2026 05:29PM UTC 6
100.0
GitHub Action Run
4 31517730058.4 11 Aug 2026 05:29PM UTC 6
100.0
GitHub Action Run
Source Files on build 31517730058
  • Tree
  • List 6
  • Changed 5
  • Source Changed 5
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #31517730058
  • 3359b1ee on github
  • Prev Build on main (#31515029493)
  • Next Build on main (#31519882734)
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