diff --git a/main_test.go b/main_test.go index 794ddf6..634fcfb 100644 --- a/main_test.go +++ b/main_test.go @@ -100,6 +100,7 @@ func TestNewTransformer(t *testing.T) { name := n tt := v + //nolint:jscpd t.Run("[transform.NewWriter]"+name, func(t *testing.T) { var buf bytes.Buffer w := transform.NewWriter(&buf, garbledreplacer.NewTransformer(tt.encoding, tt.replace)) @@ -118,6 +119,7 @@ func TestNewTransformer(t *testing.T) { } assertFunc(t, tt.want, buf, tt.encoding.NewDecoder()) }) + //nolint:jscpd t.Run("[transform.NewWriter with bufio.NewWriter]"+name, func(t *testing.T) { var buf bytes.Buffer w := bufio.NewWriter(transform.NewWriter(&buf, garbledreplacer.NewTransformer(tt.encoding, tt.replace)))