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

romshark / datapages / 37116721471

03 Oct 2026 10:30AM UTC coverage: 40.598% (+0.005%) from 40.593%
37116721471

push

github

romshark
fix: Accept aliases of Path, Query, Signals, State

Read a Path, Query, Signals or State parameter typed with an alias
through to its type argument, as for the type written out:

    type FormSignals = datapages.Signals[struct {
        Text string `json:"text"`
    }]

    // POSTSave is /save
    func (PageIndex) POSTSave(
        r *http.Request, signals FormSignals,
    ) error

datapages lint and gen check the Values field of datapages.Signals
instead of the struct, and report "signals struct field must
have a json:"..." tag: field Values" at datapages.go.
They refuse an alias of datapages.State as not a struct.

22 of 28 new or added lines in 2 files covered. (78.57%)

4 existing lines in 2 files now uncovered.

14776 of 36396 relevant lines covered (40.6%)

544.54 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

85.8
/runtime/httpserve/core.go


Source Not Available

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