go/src/net/smtp/smtp_test.go

type authTest

var authTests

func TestAuth(t *testing.T) {}

func TestAuthPlain(t *testing.T) {}

// Issue 17794: don't send a trailing space on AUTH command when there's no password.
func TestClientAuthTrimSpace(t *testing.T) {}

type toServerEmptyAuth

func (toServerEmptyAuth) Start(server *ServerInfo) (proto string, toServer []byte, err error) {}

func (toServerEmptyAuth) Next(fromServer []byte, more bool) (toServer []byte, err error) {}

type faker

func (f faker) Close() error                     {}

func (f faker) LocalAddr() net.Addr              {}

func (f faker) RemoteAddr() net.Addr             {}

func (f faker) SetDeadline(time.Time) error      {}

func (f faker) SetReadDeadline(time.Time) error  {}

func (f faker) SetWriteDeadline(time.Time) error {}

func TestBasic(t *testing.T) {}

var basicServer

var basicClient

func TestHELOFailed(t *testing.T) {}

func TestExtensions(t *testing.T) {}

func TestNewClient(t *testing.T) {}

var newClientServer

var newClientClient

func TestNewClient2(t *testing.T) {}

var newClient2Server

var newClient2Client

func TestNewClientWithTLS(t *testing.T) {}

func TestHello(t *testing.T) {}

var baseHelloServer

var helloServer

var baseHelloClient

var helloClient

func TestSendMail(t *testing.T) {}

var sendMailServer

var sendMailClient

func TestSendMailWithAuth(t *testing.T) {}

func TestAuthFailed(t *testing.T) {}

var authFailedServer

var authFailedClient

func TestTLSClient(t *testing.T) {}

func TestTLSConnState(t *testing.T) {}

func newLocalListener(t *testing.T) net.Listener {}

type smtpSender

func (s smtpSender) send(f string) {}

// smtp server, finely tailored to deal with our own client only!
func serverHandle(c net.Conn, t *testing.T) error {}

func serverHandleTLS(c net.Conn, t *testing.T) error {}

func init() {}

func sendMail(hostPort string) error {}

var localhostCert

var localhostKey

func testingKey(s string) string {}