aboutsummaryrefslogtreecommitdiff
path: root/pkg/rfc822/writer_test.go
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.eu>2021-02-16 00:16:35 +0100
committerRené 'Necoro' Neumann <necoro@necoro.eu>2021-02-16 00:16:35 +0100
commitc2b6e7ff346e3373a4e33c946594bb6f08393ad3 (patch)
tree584016f7eda2672f8c25645d05cc3be9d9e9b999 /pkg/rfc822/writer_test.go
parent9d927b399e409990003b25efa8ca7395e9cad021 (diff)
downloadfeed2imap-go-c2b6e7ff346e3373a4e33c946594bb6f08393ad3.tar.gz
feed2imap-go-c2b6e7ff346e3373a4e33c946594bb6f08393ad3.tar.bz2
feed2imap-go-c2b6e7ff346e3373a4e33c946594bb6f08393ad3.zip
Issue #46: Move and rename writer; add comments
Diffstat (limited to '')
-rw-r--r--pkg/rfc822/writer_test.go (renamed from pkg/util/fixWriter_test.go)6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/util/fixWriter_test.go b/pkg/rfc822/writer_test.go
index 91961be..7beae8d 100644
--- a/pkg/util/fixWriter_test.go
+++ b/pkg/rfc822/writer_test.go
@@ -1,4 +1,4 @@
-package util
+package rfc822
import (
"bytes"
@@ -6,7 +6,7 @@ import (
"testing"
)
-func TestFixWriter_Write(t *testing.T) {
+func TestRfc822Writer_Write(t *testing.T) {
tests := []struct {
before string
after string
@@ -33,7 +33,7 @@ func TestFixWriter_Write(t *testing.T) {
for _, tt := range tests {
t.Run(tt.before, func(t *testing.T) {
b := bytes.Buffer{}
- w := FixWriter(&b)
+ w := Writer(&b)
if _, err := io.WriteString(w, tt.before); err != nil {
t.Errorf("Error: %v", err)
return