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

Function TestAttachments_NoneOnPlainMessage

internal/mailparse/attachments_test.go:72–77  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

70}
71
72func TestAttachments_NoneOnPlainMessage(t *testing.T) {
73 plain := []byte("From: a@x.com\r\nSubject: hi\r\nContent-Type: text/plain\r\n\r\njust text, no attachments\r\n")
74 if atts := Attachments(plain); len(atts) != 0 {
75 t.Errorf("plain message should have no attachments, got %d", len(atts))
76 }
77}
78
79func TestAttachments_QuotedPrintable(t *testing.T) {
80 raw := []byte("Content-Type: multipart/mixed; boundary=B\r\n\r\n" +

Callers

nothing calls this directly

Calls 1

AttachmentsFunction · 0.85

Tested by

no test coverage detected