mirror of
https://github.com/wneessen/go-mail.git
synced 2024-12-23 02:50:39 +01:00
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:
parent
aa46b408ad
commit
cb85a136c3
1 changed files with 2 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue