mirror of
https://github.com/wneessen/go-mail.git
synced 2024-11-15 02:12:55 +01:00
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:
parent
6376f29190
commit
cb5ac8b0e2
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue