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

Function TestComposeMessageNoReplyTo

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

Source from the content-addressed store, hash-verified

248}
249
250func TestComposeMessageNoReplyTo(t *testing.T) {
251 raw, err := ComposeMessage("from@test.com", []string{"to@test.com"}, nil, "Sub", "Body", "", "", nil, "test.dev", "", "")
252 if err != nil {
253 t.Fatalf("ComposeMessage failed: %v", err)
254 }
255
256 msg, _ := mail.ReadMessage(strings.NewReader(string(raw)))
257 if got := msg.Header.Get("In-Reply-To"); got != "" {
258 t.Errorf("expected no In-Reply-To header, got %q", got)
259 }
260 if got := msg.Header.Get("References"); got != "" {
261 t.Errorf("expected no References header, got %q", got)
262 }
263}
264
265func TestComposeMessageConversationIDHeader(t *testing.T) {
266 raw, err := ComposeMessage(

Callers

nothing calls this directly

Calls 2

ComposeMessageFunction · 0.85
GetMethod · 0.65

Tested by

no test coverage detected