From cb5ac8b0e259f3daea1c28497911a30bfb9876b8 Mon Sep 17 00:00:00 2001 From: Winni Neessen Date: Sun, 27 Oct 2024 11:32:15 +0100 Subject: [PATCH] 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. --- msg_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/msg_test.go b/msg_test.go index af05cf8..0411675 100644 --- a/msg_test.go +++ b/msg_test.go @@ -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.