MCPcopy Create free account
hub / github.com/Mnexa-AI/e2a / TestComposeMessageNoConversationIDHeader

Function TestComposeMessageNoConversationIDHeader

internal/outbound/compose_test.go:279–290  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

277}
278
279func 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
292func TestComposeMultipartMessage(t *testing.T) {
293 raw, err := ComposeMultipartMessage(

Callers

nothing calls this directly

Calls 2

ComposeMessageFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected