--- Box shortcuts ---
(t *testing.T)
| 295 | topicID: 100, |
| 296 | title: "Quarterly planning", |
| 297 | entries: []mail.Entry{{ |
| 298 | Creator: mail.Contact{Name: "Jane Doe"}, |
| 299 | CreatedAt: time.Date(2026, 1, 8, 13, 34, 0, 0, time.UTC), |
| 300 | Summary: "Can we meet Thursday?", |
| 301 | Body: htmlutil.ToMarkdown("<p>Can we meet Thursday to walk through the numbers?</p>"), |
| 302 | }}, |
| 303 | }) |
| 304 | |
| 305 | lines := strings.Split(ansi.Strip(v.topicContent), "\n") |
| 306 | if len(lines) < 5 { |
| 307 | t.Fatalf("thread content = %q", v.topicContent) |
| 308 | } |
| 309 | if strings.TrimSpace(lines[0]) != "Quarterly planning" || !strings.HasPrefix(lines[0], " ") { |
| 310 | t.Errorf("first line should be the centered subject: %q", lines[0]) |
| 311 | } |
| 312 | if strings.TrimSpace(lines[1]) != "" { |
nothing calls this directly
no test coverage detected