Suppress inspection for deprecated method usage in test

Added GoLand directive to suppress deprecation warnings for SetAttachements method in msg_test.go. This method is already fully tested by SetAttachments and the test is marked to be skipped.
This commit is contained in:
Winni Neessen 2024-10-27 11:32:15 +01:00
parent 6376f29190
commit cb5ac8b0e2
Signed by: wneessen
GPG key ID: 385AC9889632126E

View file

@ -3431,6 +3431,7 @@ func TestMsg_SetAttachments(t *testing.T) {
func TestMsg_SetAttachements(t *testing.T) {
message := NewMsg()
//goland:noinspection GoDeprecation
message.SetAttachements(nil)
t.Skip("SetAttachements is deprecated and fully tested by SetAttachments already")
}
@ -3842,7 +3843,6 @@ func TestMsg_SetBodyWriter(t *testing.T) {
})
}
})
}
// checkAddrHeader verifies the correctness of an AddrHeader in a Msg based on the provided criteria.