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.
This commit is contained in:
Winni Neessen 2024-10-25 17:05:22 +02:00
parent aa46b408ad
commit cb85a136c3
Signed by: wneessen
GPG key ID: 385AC9889632126E

View file

@ -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 {