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

Function TestMailViewHandlesBoxesLoaded

internal/tui/mail_test.go:51–60  ·  view source on GitHub ↗

--- Update: message routing ---

(t *testing.T)

Source from the content-addressed store, hash-verified

49 }
50}
51
52func mailWithPostings() *mailView {
53 v := newMailView(testVC())
54 v.boxes = orderBoxes(testBoxes())
55 v.boxIndex = 0
56 v.Update(currentPostingsLoaded(v, testPostings()))
57 return v
58}
59
60func currentPostingsLoaded(v *mailView, postings []mail.Posting) postingsLoadedMsg {
61 return postingsLoadedMsg{
62 requestID: v.requests.id,
63 boxID: v.currentBoxID(),

Callers

nothing calls this directly

Calls 6

newMailViewFunction · 0.85
testVCFunction · 0.85
boxesLoadedMsgTypeAlias · 0.85
testBoxesFunction · 0.85
UpdateMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected