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

Function TestExtractThreadInfoConversationID

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

Source from the content-addressed store, hash-verified

139}
140
141func TestExtractThreadInfoConversationID(t *testing.T) {
142 raw := []byte("Message-Id: <x@send.e2a.dev>\r\nSubject: e2e ping\r\nFrom: agent@send.e2a.dev\r\nReply-To: alice@agent.mnexa.ai\r\nTo: bob@agent.mnexa.ai\r\nX-E2A-Conversation-ID: 081158ac-bf25-4eb6-a6b0-02828ec670c3\r\n\r\nHi Bob\r\n")
143
144 info := extractThreadInfo(raw)
145
146 if info.ConversationID != "081158ac-bf25-4eb6-a6b0-02828ec670c3" {
147 t.Errorf("ConversationID = %q, want the UUID", info.ConversationID)
148 }
149}
150
151func TestEnvelopeFromTrusted(t *testing.T) {
152 s := &session{

Callers

nothing calls this directly

Calls 1

extractThreadInfoFunction · 0.85

Tested by

no test coverage detected