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

Function TestMailViewHandlesPostingsLoaded

internal/tui/mail_test.go:62–77  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

60func currentPostingsLoaded(v *mailView, postings []mail.Posting) postingsLoadedMsg {
61 return postingsLoadedMsg{
62 requestID: v.requests.id,
63 boxID: v.currentBoxID(),
64 postings: postings,
65 }
66}
67
68func hasHelpBinding(bindings []helpBinding, key string) bool {
69 for _, binding := range bindings {
70 if binding.key == key {
71 return true
72 }
73 }
74 return false
75}
76
77type recordedMailRequest struct {
78 method string
79 path string
80 requests []string

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected