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

pmcelhaney / counterfact / 22882848157
83%
main: 83%

Build:
Build:
LAST BUILD BRANCH: agent-skill-admin-api
DEFAULT BRANCH: main
Ran 10 Mar 2026 02:39AM UTC
Jobs 1
Files 50
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

10 Mar 2026 01:30AM UTC coverage: 82.905% (+0.02%) from 82.884%
22882848157

Pull #1524

github

Copilot
Fix root middleware not being executed for all routes

The recurse() function in registry.ts traversed paths as:
/admin/users → /admin → "" → null, never checking "/".
Root middleware is registered at key "/" by the module-loader,
so it was never applied.

Fix: change nextPath calculation to traverse through "/" instead
of "", so traversal goes: /admin/users → /admin → / → null.

Also update tests to use "/" key for root middleware (consistent
with how module-loader registers it), and add a test specifically
for the root middleware case described in the issue.

Co-authored-by: pmcelhaney <51504+pmcelhaney@users.noreply.github.com>
Pull Request #1524: Fix root middleware not executed for any routes

1272 of 1423 branches covered (89.39%)

Branch coverage included in aggregate %.

3 of 3 new or added lines in 1 file covered. (100.0%)

4053 of 5000 relevant lines covered (81.06%)

60.04 hits per line

Jobs
ID Job ID Ran Files Coverage
1 22882848157.1 10 Mar 2026 02:39AM UTC 100
82.26
GitHub Action Run
Source Files on build 22882848157
  • Tree
  • List 50
  • Changed 43
  • Source Changed 1
  • Coverage Changed 43
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #22882848157
  • Pull Request #1524
  • PR Base - main (#22782999967)
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