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

go-pkgz / routegroup / 37723797254
98%
master: 98%

Build:
Build:
LAST BUILD BRANCH: handlefiles-method-pattern
DEFAULT BRANCH: master
Ran 08 Oct 2026 03:40AM UTC
Jobs 1
Files 1
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

08 Oct 2026 03:38AM UTC coverage: 98.165% (+0.04%) from 98.122%
37723797254

Pull #34

github

umputun
fix: handle method patterns in HandleFiles

HandleFiles prepended the mount prefix to the whole pattern, so
"GET /static/" on a mounted group built "/apiGET /static/" and panicked
at registration. On a root group it registered, but the method ended up
in the prefix passed to StripPrefix and every file returned 404.

Split the method off first and apply the prefix, the trailing slash and
StripPrefix to the path only.
Pull Request #34: fix: handle method patterns in HandleFiles

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

214 of 218 relevant lines covered (98.17%)

54.76 hits per line

Jobs
ID Job ID Ran Files Coverage
1 37723797254.1 08 Oct 2026 03:40AM UTC 1
98.17
GitHub Action Run
Source Files on build 37723797254
  • Tree
  • List 1
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #34
  • PR Base - master (#37723194245)
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