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

romshark / datapages / 37697167846

07 Oct 2026 10:33PM UTC coverage: 44.342% (+0.1%) from 44.228%
37697167846

push

github

romshark
fix: Read nested signals bound to subject fields

A page that handles an event scoped by a nested signal
never receives the event:

    // EventChatSaid is "chat.said"
    type EventChatSaid struct {
        Room datapages.Subject `signal:"chat.room"`
        Text string            `json:"text"`
    }

    func (PageChat) OnChatSaid(e EventChatSaid, sse datapages.SSE) error

    <div data-signals="{chat: {room: 'lobby'}}">

The browser opens the page's stream with {"chat":{"room":"lobby"}}.
The stream looks for the flat key "chat.room", finds nothing and
answers 400. The page retries, gets 400 again, and OnChatSaid never
runs.

Refuse a page whose events need one signal both as a value and as
an object, such as chat and chat.room. $chat.room exists only when
$chat is an object.

91 of 93 new or added lines in 3 files covered. (97.85%)

1 existing line in 1 file now uncovered.

16375 of 36929 relevant lines covered (44.34%)

582.34 hits per line

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

89.24
/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