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

Function TestExtractThreadInfoNoReplyTo

internal/relay/server_test.go:90–98  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

88}
89
90func TestExtractThreadInfoNoReplyTo(t *testing.T) {
91 raw := []byte("Message-Id: <x@gmail.com>\r\nSubject: Hi\r\nFrom: alice@example.com\r\nTo: bot@agent.example.com\r\n\r\nBody\r\n")
92
93 info := extractThreadInfo(raw)
94
95 if info.ReplyTo != nil {
96 t.Errorf("ReplyTo should be nil, got %v", info.ReplyTo)
97 }
98}
99
100func TestExtractThreadInfoReplyToMultiAddress(t *testing.T) {
101 // RFC 5322 § 3.6.2 permits Reply-To to carry multiple addresses; SDK

Callers

nothing calls this directly

Calls 1

extractThreadInfoFunction · 0.85

Tested by

no test coverage detected