fumpt'ed formatting

This commit is contained in:
Winni Neessen 2024-10-25 11:36:05 +02:00
parent 64aeb683ba
commit 425a190eb1
Signed by: wneessen
GPG key ID: 385AC9889632126E

View file

@ -901,7 +901,8 @@ func TestEMLToMsgFromReader(t *testing.T) {
}{ }{
{ {
"RFC5322 A1.1 example mail", exampleMailRFC5322A11, EncodingUSASCII, "RFC5322 A1.1 example mail", exampleMailRFC5322A11, EncodingUSASCII,
"Saying Hello"}, "Saying Hello",
},
{ {
"Plain text no encoding (7bit)", exampleMailPlain7Bit, EncodingUSASCII, "Plain text no encoding (7bit)", exampleMailPlain7Bit, EncodingUSASCII,
"Example mail // plain text without encoding", "Example mail // plain text without encoding",
@ -1158,7 +1159,6 @@ func TestEMLToMsgFromFile(t *testing.T) {
t.Errorf("failed to parse EML string: want subject %s, got %s", "Saying Hello", t.Errorf("failed to parse EML string: want subject %s, got %s", "Saying Hello",
gotSubject[0]) gotSubject[0])
} }
}) })
t.Run("EMLToMsgFromFile fails on file not found", func(t *testing.T) { t.Run("EMLToMsgFromFile fails on file not found", func(t *testing.T) {
if _, err := EMLToMsgFromFile("testdata/not-existing.eml"); err == nil { if _, err := EMLToMsgFromFile("testdata/not-existing.eml"); err == nil {