From e5d0dbdd9b3de40c44bdbfe3bdff9ae915b8c5d5 Mon Sep 17 00:00:00 2001 From: tom twinkle Date: Tue, 23 Jan 2024 14:22:12 +0900 Subject: [PATCH] ignore lint jscpd --- main_test.go | 2 ++ 1 file changed, 2 insertions(+) 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)))