(t *testing.T)
| 139 | } |
| 140 | |
| 141 | func 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 | |
| 151 | func TestEnvelopeFromTrusted(t *testing.T) { |
| 152 | s := &session{ |
nothing calls this directly
no test coverage detected