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

alexferl / zerohttp / 22886513442
94%

Build:
DEFAULT BRANCH: master
Ran 10 Mar 2026 04:03AM UTC
Jobs 1
Files 66
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 04:02AM UTC coverage: 93.36% (+0.04%) from 93.322%
22886513442

push

github

web-flow
fix: use type registry to eliminate reflection overhead in binding (MP-6) (#58)

Replace reflection-heavy binding with cached type information:

- Add type registry (type_registry.go) that caches struct field metadata
  using sync.Map for thread-safe concurrent access
- Pre-compute bindable fields for form/query tags and file uploads
- Use FieldByIndex with cached paths for O(1) field access instead of
  recursive reflection on each request
- Properly handle unexported embedded structs (their exported fields
  are still accessible and bindable)
- Return explicit error for non-pointer FileHeader fields

This eliminates repeated reflection overhead during request binding,
significantly improving performance on high-throughput endpoints.

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

214 of 225 new or added lines in 2 files covered. (95.11%)

6 existing lines in 2 files now uncovered.

8071 of 8645 relevant lines covered (93.36%)

49.6 hits per line

Uncovered Changes

Lines Coverage ∆ File
8
95.74
type_registry.go
3
91.53
0.23% bind.go

Coverage Regressions

Lines Coverage ∆ File
5
88.05
-0.57% server.go
1
91.53
0.23% bind.go
Jobs
ID Job ID Ran Files Coverage
1 22886513442.1 10 Mar 2026 04:03AM UTC 66
93.36
GitHub Action Run
Source Files on build 22886513442
  • Tree
  • List 66
  • Changed 3
  • Source Changed 1
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #22886513442
  • 405fdfe1 on github
  • Prev Build on master (#22883966775)
  • Next Build on master (#22886738734)
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