(t *testing.T)
| 70 | } |
| 71 | |
| 72 | func 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 | |
| 79 | func TestAttachments_QuotedPrintable(t *testing.T) { |
| 80 | raw := []byte("Content-Type: multipart/mixed; boundary=B\r\n\r\n" + |
nothing calls this directly
no test coverage detected