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

reactivando / use-pubsub-js / 28126603664
100%
master: 80%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 24 Jun 2026 08:12PM UTC
Jobs 1
Files 4
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

24 Jun 2026 08:11PM UTC coverage: 100.0%. Remained the same
28126603664

push

github

web-flow
test: harden against silent behavior drift (semantic gap hunt) (#80)

A subagent gap-hunt over the (already 100%-covered) suite found behaviors that
no test asserts — where a refactor could change runtime behavior without failing
CI. Adds 11 regression tests; the two trickiest are mutation-verified (each
fails against a plausible wrong implementation):

Bus (src/pubsub):
- by-reference unsubscribe returns false on the second call
- a sibling unsubscribed by an earlier handler mid-dispatch still fires (proves
  the publish-time snapshot, not live-channel iteration) [mutation-verified]
- subscribeOnce cleans its channel (later publish reports no subscribers)
- subscribeOnce is cancellable via its returned token before firing
- on(): manual unsubscribe removes the abort listener from the signal (no
  AbortController leak) [mutation-verified], and aborting after off() is safe
- hierarchical: a trailing-dot topic still walks ancestors (targetsFor parsing)

Hooks:
- usePublish re-routes to the new bus when the bus prop changes
- auto-publish skips null and undefined message sentinels (with 0/false/'' these
  pin all guarded cases)

debounce: immediate mode fires again on a new burst after the cooldown elapses

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

26 of 26 branches covered (100.0%)

Branch coverage included in aggregate %.

165 of 165 relevant lines covered (100.0%)

36.19 hits per line

Jobs
ID Job ID Ran Files Coverage
1 28126603664.1 24 Jun 2026 08:12PM UTC 4
100.0
GitHub Action Run
Source Files on build 28126603664
  • Tree
  • List 4
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #28126603664
  • eda85a57 on github
  • Prev Build on main (#28125785771)
  • Next Build on main (#28128132141)
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