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

archetech / archon / 30714431035 / 1
92%
main: 94%

Build:
Build:
LAST BUILD BRANCH: dependabot/github_actions/github-actions-minor-and-patch-f1bf8013f3
DEFAULT BRANCH: main
Ran 01 Aug 2026 07:20PM UTC
Files 196
Run time 4s
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

01 Aug 2026 07:17PM UTC coverage: 93.328% (+2.5%) from 90.805%
30714431035.1

Pull #821

github

macterra
test(herald): cover the deferred route handlers

Follow-up to #820, which landed the routes extraction with routes.ts at
45% and split the awkward handlers out rather than rushing them.

Adds 41 tests (42 -> 83), taking routes.ts to 80.8% and the repo total
from 92.91% to 95.42%.

- Inbound email webhook (the largest single gap): unconfigured bridge,
  missing fields, spam-score rejection, expired reply token, a reply
  delivered as a dmail referencing the original, unrecognized recipient,
  unknown herald name, and unsolicited delivery to a known name. Also the
  deliberate 200 {action:'error'} on failure — worth knowing, since it
  means the provider will not retry a genuinely broken delivery.
- Outbound send-email: bridge gate, bearer auth, the herald-name
  requirement, field validation, success, and failure.
- IPNS publication: the IPFS add -> IPNS publish sequence with fetch
  stubbed, asserting the actual URLs, both failure modes, and the
  owner-only gate.
- Session-based profile name: read, cross-user 403, invalid and taken
  names, assignment with credential issuance, deletion with revocation.
- Admin user deletion, including the guard refusing to delete the owner.
- Member lookup with name normalization; LNURLp payRequest, amount-range
  rejection, msat->sat conversion, both invoice field spellings, and
  endpoint failure.
- Login challenge and avatar serving, including the content-type
  allowlist falling back to octet-stream for image/svg+xml.

The dmail poll loop (~45 lines) is deliberately left uncovered.
startDmailPollLoop installs a setInterval, and an un-cleared interval is
the leaked-handle pattern that hangs Jest in CI, which runs without
--forceExit. Testing it needs fake timers plus a teardown hook, which is
worth doing deliberately rather than bolting on here.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Pull Request #821: test(herald): cover the deferred route handlers

3756 of 4412 branches covered (85.13%)

Branch coverage included in aggregate %.

16554 of 17350 relevant lines covered (95.41%)

328.9 hits per line

Source Files on job 30714431035.1
  • Tree
  • List 196
  • Changed 81
  • Source Changed 0
  • Coverage Changed 81
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 30714431035
  • 6d89ecd7 on github
  • Prev Job for on test/herald-remaining-handlers (#30713830006.1)
  • Delete
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