From cb85a136c39f622d65a2333a2beebbe665665d9f Mon Sep 17 00:00:00 2001 From: Winni Neessen Date: Fri, 25 Oct 2024 17:05:22 +0200 Subject: [PATCH] Add Goland noinspection comments to suppress deprecation warnings This change adds `//goland:noinspection GoDeprecation` comments in the `msg_test.go` file. These comments suppress deprecation warnings for the `SetHeader` and `SetHeaderPreformatted` methods during test execution. --- msg_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/msg_test.go b/msg_test.go index f33d1bd..b5534ac 100644 --- a/msg_test.go +++ b/msg_test.go @@ -465,6 +465,7 @@ func TestMsg_SetHeader(t *testing.T) { } for _, tt := range genHeaderTests { t.Run(tt.name, func(t *testing.T) { + //goland:noinspection GoDeprecation message.SetHeader(tt.header, "test", "foo", "bar") values, ok := message.genHeader[tt.header] if !ok { @@ -561,6 +562,7 @@ func TestMsg_SetHeaderPreformatted(t *testing.T) { } for _, tt := range genHeaderTests { t.Run(tt.name, func(t *testing.T) { + //goland:noinspection GoDeprecation message.SetHeaderPreformatted(tt.header, "test") value, ok := message.preformHeader[tt.header] if !ok {