(t *testing.T)
| 277 | } |
| 278 | |
| 279 | func TestComposeMessageNoConversationIDHeader(t *testing.T) { |
| 280 | raw, err := ComposeMessage( |
| 281 | "from@test.com", []string{"to@test.com"}, nil, |
| 282 | "Hello", "Body", "text/plain", "", nil, "test.dev", "", "", |
| 283 | ) |
| 284 | if err != nil { |
| 285 | t.Fatalf("ComposeMessage failed: %v", err) |
| 286 | } |
| 287 | if strings.Contains(string(raw), "X-E2A-Conversation-Id") { |
| 288 | t.Error("empty conversation_id should not emit X-E2A-Conversation-Id header") |
| 289 | } |
| 290 | } |
| 291 | |
| 292 | func TestComposeMultipartMessage(t *testing.T) { |
| 293 | raw, err := ComposeMultipartMessage( |
nothing calls this directly
no test coverage detected