MCPcopy
hub / github.com/basecamp/once / processMsg

Method processMsg

integration/ui_test.go:160–169  ·  view source on GitHub ↗
(msg tea.Msg)

Source from the content-addressed store, hash-verified

158}
159
160func (d *appDriver) processMsg(msg tea.Msg) {
161 if batch, ok := msg.(tea.BatchMsg); ok {
162 for _, cmd := range batch {
163 d.enqueueCmd(cmd)
164 }
165 return
166 }
167 _, cmd := d.app.Update(msg)
168 d.enqueueCmd(cmd)
169}
170
171func (d *appDriver) enqueueCmd(cmd tea.Cmd) {
172 if cmd == nil {

Callers 2

waitForViewMethod · 0.95
flushMethod · 0.95

Calls 2

enqueueCmdMethod · 0.95
UpdateMethod · 0.65

Tested by

no test coverage detected