mirror of
https://github.com/wneessen/go-mail.git
synced 2024-11-22 13:50:49 +01:00
Make golangci-lint gofumpt happy
This commit is contained in:
parent
419469c297
commit
5bea905ff9
2 changed files with 9 additions and 4 deletions
|
@ -20,9 +20,13 @@ func TestAuth(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
authTests := []authTest{
|
authTests := []authTest{
|
||||||
{LoginAuth("user", "pass", "testserver"),
|
{
|
||||||
[]string{"Username:", "Password:", "2.7.0 Authentication successful", "Invalid:"}, "LOGIN",
|
LoginAuth("user", "pass", "testserver"),
|
||||||
[]string{"", "user", "pass", "", ""}, []bool{false, false, false, true}},
|
[]string{"Username:", "Password:", "2.7.0 Authentication successful", "Invalid:"},
|
||||||
|
"LOGIN",
|
||||||
|
[]string{"", "user", "pass", "", ""},
|
||||||
|
[]bool{false, false, false, true},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
testLoop:
|
testLoop:
|
||||||
|
|
|
@ -9,12 +9,13 @@ import (
|
||||||
"crypto/tls"
|
"crypto/tls"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/wneessen/go-mail/auth"
|
|
||||||
"net"
|
"net"
|
||||||
"net/smtp"
|
"net/smtp"
|
||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"github.com/wneessen/go-mail/auth"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Defaults
|
// Defaults
|
||||||
|
|
Loading…
Reference in a new issue