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

gookit / rux / 35879182980
92%

Build:
DEFAULT BRANCH: master
Ran 23 Sep 2026 03:07PM UTC
Jobs 4
Files 40
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

23 Sep 2026 03:02PM UTC coverage: 92.561% (-0.3%) from 92.905%
35879182980

push

github

inhere
feat(core): Group value (NewGroup) alongside the closure form

gin-style grouping was impossible: Group only existed as a closure that registers
on the outer router, and there was no *Group to hold a prefix plus middleware.

- Router.NewGroup(prefix, middles...) returns a *Group with the verb shortcuts,
  Add / AddNamed / Any, Use (affects later registrations) and the static helpers;
  Prefix() / Router() expose the context
- both forms share one registration path: applyGroup now takes the prefix and
  middleware explicitly, closure-style groups keep using the router-level state
- a group created inside a closure group inherits its prefix and middleware;
  registration after freeze panics exactly like Router.GET
- fixed a latent bug found while wiring the static helpers: StaticDir / StaticFS
  stripped the un-prefixed URL, so a static dir registered inside a closure group
  answered 404. Both forms now strip the group-prefixed path (checked: old code
  404, new code 200 for GET /api/assets/hello.txt)
- tests: prefix/middleware, global->group->nested->route->handler order, Use
  scope, closure-group inheritance, methods, named routes, freeze panic, static
  dir/fs (both forms)
- README + README.zh-CN: route group sections rewritten for the two forms

88 of 107 new or added lines in 2 files covered. (82.24%)

27 existing lines in 2 files now uncovered.

3061 of 3307 relevant lines covered (92.56%)

3.91 hits per line

Uncovered Changes

Lines Coverage ∆ File
19
78.16
internal/core/group.go

Coverage Regressions

Lines Coverage ∆ File
18
90.57
1.19% internal/core/dispatch.go
9
97.46
0.09% internal/core/router.go
Jobs
ID Job ID Ran Files Coverage
1 Go-stable - 35879182980.1 23 Sep 2026 03:08PM UTC 40
90.96
GitHub Action Run
2 Go-1.23 - 35879182980.2 23 Sep 2026 03:07PM UTC 40
91.57
GitHub Action Run
3 Go-1.24 - 35879182980.3 23 Sep 2026 03:08PM UTC 40
91.69
GitHub Action Run
4 Go-1.25 - 35879182980.4 23 Sep 2026 03:10PM UTC 40
91.57
GitHub Action Run
Source Files on build 35879182980
  • Tree
  • List 40
  • Changed 5
  • Source Changed 0
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 63bc573d on github
  • Prev Build on master (#35871058653)
  • Next Build on master (#35883056141)
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