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

alexferl / zerohttp / 22976549372
94%

Build:
DEFAULT BRANCH: master
Ran 11 Mar 2026 10:02PM UTC
Jobs 1
Files 74
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

11 Mar 2026 10:01PM UTC coverage: 93.44% (+0.01%) from 93.428%
22976549372

push

github

web-flow
perf: optimize 404/405 handling with pre-encoded responses and lazy l… (#81)

* perf: optimize 404/405 handling with pre-encoded responses and lazy logging

- Pre-encode JSON error responses at init time to avoid repeated encoding
- Add lazy request ID generation - only generated when logging is enabled
- Use pre-encoded plain text for default 404/405 handlers (faster than ProblemDetail)
- Add shouldLogRequest() helper to respect DisableDefaultMiddlewares setting

Also fixes RequestLogger.Enabled to use *bool so users can explicitly
disable logging with config.Bool(false).

Signed-off-by: alexferl <me@alexferl.com>

* use enum

Signed-off-by: alexferl <me@alexferl.com>

* add missing coverage

Signed-off-by: alexferl <me@alexferl.com>

* add missing coverage

Signed-off-by: alexferl <me@alexferl.com>

* add missing tests

Signed-off-by: alexferl <me@alexferl.com>

---------

Signed-off-by: alexferl <me@alexferl.com>

70 of 72 new or added lines in 2 files covered. (97.22%)

7 existing lines in 2 files now uncovered.

8361 of 8948 relevant lines covered (93.44%)

57.42 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
98.18
-0.42% router.go

Coverage Regressions

Lines Coverage ∆ File
5
87.63
-2.58% server_tls.go
2
94.34
0.51% sse.go
Jobs
ID Job ID Ran Files Coverage
1 22976549372.1 11 Mar 2026 10:02PM UTC 74
93.44
GitHub Action Run
Source Files on build 22976549372
  • Tree
  • List 74
  • Changed 6
  • Source Changed 3
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #22976549372
  • b1e0a4b9 on github
  • Prev Build on master (#22936107910)
  • Next Build on master (#22985798988)
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