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

Function testPostings

internal/tui/tui_test.go:42–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40}
41
42func testBoxes() []mail.Source {
43 return []mail.Source{
44 {Kind: mail.KindBox, ID: 1, Name: "Imbox", BoxKind: hey.BoxKindImbox},
45 {Kind: mail.KindBox, ID: 2, Name: "The Feed", BoxKind: hey.BoxKindFeed},
46 {Kind: mail.KindBox, ID: 3, Name: "Paper Trail", BoxKind: hey.BoxKindTrail},
47 }
48}
49
50func testPostings() []mail.Posting {
51 return []mail.Posting{
52 {
53 ID: 100,
54 Summary: "Hello world",
55 CreatedAt: time.Date(2025, 3, 1, 10, 0, 0, 0, time.UTC),
56 Seen: false,
57 Creator: mail.Contact{Name: "Alice"},
58 },
59 {
60 ID: 101,
61 Summary: "Meeting notes",
62 CreatedAt: time.Date(2025, 3, 1, 9, 0, 0, 0, time.UTC),

Callers 5

modelWithBoxesFunction · 0.85
mailWithPostingsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected