MCPcopy Create free account
hub / github.com/basecamp/hey-cli / TestQExitsThread

Function TestQExitsThread

internal/tui/tui_test.go:214–223  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

212 m.mailView.requests.kind = mailRequestTopic
213 updated, _ = m.Update(topicLoadedMsg{
214 requestID: 7,
215 boxID: 1,
216 topicID: 100,
217 title: "Quarterly planning",
218 entries: []mail.Entry{{ID: 501, Creator: mail.Contact{Name: "Alice"}}},
219 attachments: []messageAttachment{{ID: "501:1", MessageID: 501, Filename: "agenda.pdf"}},
220 })
221 m = updated.(model)
222
223 wantHeight := m.height - headerHeight - m.help.height() - 3
224 if wantHeight < 1 {
225 wantHeight = 1
226 }

Callers

nothing calls this directly

Calls 5

modelWithBoxesFunction · 0.85
keyPressFunction · 0.85
UpdateMethod · 0.65
InThreadMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected