diff options
author | Oleksandr Redko <oleksandr.red+github@gmail.com> | 2024-03-02 17:19:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-02 16:19:52 +0100 |
commit | bdd459ab0e018eb2cc8b722c218630f1c4811c5e (patch) | |
tree | 8b3d444787b844b58f0340a0c7bde355b5650bd1 /header_test.go | |
parent | Enable few gocritic checks; fix up issues (#1728) (diff) | |
download | fasthttp-bdd459ab0e018eb2cc8b722c218630f1c4811c5e.tar.gz fasthttp-bdd459ab0e018eb2cc8b722c218630f1c4811c5e.tar.bz2 fasthttp-bdd459ab0e018eb2cc8b722c218630f1c4811c5e.zip |
test: remove `//nolint:govet` comments (#1729)
Diffstat (limited to 'header_test.go')
-rw-r--r-- | header_test.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/header_test.go b/header_test.go index e7a6fad..de71584 100644 --- a/header_test.go +++ b/header_test.go @@ -1407,8 +1407,8 @@ func TestResponseHeaderCopyTo(t *testing.T) { h.bufKV = argsKV{} h1.bufKV = argsKV{} - if !reflect.DeepEqual(h, h1) { //nolint:govet - t.Fatalf("ResponseHeaderCopyTo fail, src: \n%+v\ndst: \n%+v\n", h, h1) //nolint:govet + if !reflect.DeepEqual(&h, &h1) { + t.Fatalf("ResponseHeaderCopyTo fail, src: \n%+v\ndst: \n%+v\n", &h, &h1) } } @@ -1450,8 +1450,8 @@ func TestRequestHeaderCopyTo(t *testing.T) { h.bufKV = argsKV{} h1.bufKV = argsKV{} - if !reflect.DeepEqual(h, h1) { //nolint:govet - t.Fatalf("RequestHeaderCopyTo fail, src: \n%+v\ndst: \n%+v\n", h, h1) //nolint:govet + if !reflect.DeepEqual(&h, &h1) { + t.Fatalf("RequestHeaderCopyTo fail, src: \n%+v\ndst: \n%+v\n", &h, &h1) } } @@ -1466,7 +1466,7 @@ func TestResponseContentTypeNoDefaultNotEmpty(t *testing.T) { headers := h.String() if strings.Contains(headers, "Content-Type: \r\n") { - t.Fatalf("ResponseContentTypeNoDefaultNotEmpty fail, response: \n%+v\noutcome: \n%q\n", h, headers) //nolint:govet + t.Fatalf("ResponseContentTypeNoDefaultNotEmpty fail, response: \n%+v\noutcome: \n%q\n", &h, headers) } } @@ -1534,7 +1534,7 @@ func TestResponseDateNoDefaultNotEmpty(t *testing.T) { headers := h.String() if strings.Contains(headers, "\r\nDate: ") { - t.Fatalf("ResponseDateNoDefaultNotEmpty fail, response: \n%+v\noutcome: \n%q\n", h, headers) //nolint:govet + t.Fatalf("ResponseDateNoDefaultNotEmpty fail, response: \n%+v\noutcome: \n%q\n", &h, headers) } } |