Versions in this module Expand all Collapse all v0 v0.2.0 Mar 13, 2017 v0.1.0 Apr 29, 2015 Changes in this version + var CLOSE = func(s imap.MockServer) error + var DEFLATE = func(s imap.MockServer) error + var STARTTLS = func(s imap.MockServer) error + var ServerName = "imap.mock.net" + var Timeout = 500 * time.Millisecond + func NewConn(addrA, addrB string, bufSize int) (A *Conn, B *Conn) + type Conn struct + func (c *Conn) Close() error + func (c *Conn) LocalAddr() net.Addr + func (c *Conn) Read(b []byte) (n int, err error) + func (c *Conn) RemoteAddr() net.Addr + func (c *Conn) SetDeadline(t time.Time) error + func (c *Conn) SetReadDeadline(t time.Time) error + func (c *Conn) SetTimeout(d time.Duration) error + func (c *Conn) SetWriteDeadline(t time.Time) error + func (c *Conn) Write(b []byte) (n int, err error) + type Recv []byte + type ScriptFunc func(s imap.MockServer) error + type Send []byte + type T struct + func Server(t *testing.T, script ...interface{}) *T + func (t *T) Dial() (*imap.Client, error) + func (t *T) DialTLS(config *tls.Config) (*imap.Client, error) + func (t *T) Join(err error) + func (t *T) Script(script ...interface{}) + func (t *T) StartTLS(config *tls.Config) error