Versions in this module Expand all Collapse all v1 v1.8.12 Nov 16, 2021 v1.8.11 Nov 15, 2021 Changes in this version + const EnvFake + const EnvLive + const EnvName + func AfterRun() + func BeforeRun() + type Cleaner struct + func (c *Cleaner) Execute() + func (c *Cleaner) From() string + type PMAPIController interface + AddUser func(account *accounts.TestAccount) error + AddUserLabel func(username string, label *pmapi.Label) error + AddUserMessage func(username string, message *pmapi.Message) (string, error) + GetAuthClient func(username string) pmapi.Client + GetCalls func(method, path string) [][]byte + GetLabelIDs func(username string, labelNames []string) ([]string, error) + GetMessages func(username, labelID string) ([]*pmapi.Message, error) + PrintCalls func() + ReorderAddresses func(user *pmapi.User, addressIDs []string) error + TurnInternetConnectionOff func() + TurnInternetConnectionOn func() + WasCalled func(method, path string, expectedRequest []byte) bool + WasCalledRegex func(methodRegex, pathRegex string, expectedRequest []byte) (bool, error) + type TestContext struct + func New(app string) *TestContext + func (ctx *TestContext) Cleanup() *TestContext + func (ctx *TestContext) DeleteUser(query string, deleteStore bool) (err error) + func (ctx *TestContext) EnsureAddress(bddUserID, addressOrAddressTestID string) string + func (ctx *TestContext) EnsureAddressID(bddUserID, addressOrAddressTestID string) string + func (ctx *TestContext) EventLoopTimeout() time.Duration + func (ctx *TestContext) EventuallySyncIsFinishedForUsername(username string) + func (ctx *TestContext) FinishLogin(client pmapi.Client, mailboxPassword []byte) error + func (ctx *TestContext) GetAPIMessageID(username, bddMessageID string) (string, error) + func (ctx *TestContext) GetBridge() *bridge.Bridge + func (ctx *TestContext) GetClientManager() pmapi.Manager + func (ctx *TestContext) GetDatabaseFilePath(userID string) string + func (ctx *TestContext) GetIMAPClient(handle string) *mocks.IMAPClient + func (ctx *TestContext) GetIMAPLastResponse(handle string) *mocks.IMAPResponse + func (ctx *TestContext) GetImportExport() *importexport.ImportExport + func (ctx *TestContext) GetLastError() error + func (ctx *TestContext) GetPMAPIController() PMAPIController + func (ctx *TestContext) GetSMTPClient(handle string) *mocks.SMTPClient + func (ctx *TestContext) GetSMTPLastResponse(handle string) *mocks.SMTPResponse + func (ctx *TestContext) GetStore(username string) (*store.Store, error) + func (ctx *TestContext) GetStoreAddress(username, addressID string) (*store.Address, error) + func (ctx *TestContext) GetStoreMailbox(username, addressID, mailboxName string) (*store.Mailbox, error) + func (ctx *TestContext) GetTestAccount(bddUserID string) *accounts.TestAccount + func (ctx *TestContext) GetTestAccountWithAddress(bddUserID, bddAddressID string) *accounts.TestAccount + func (ctx *TestContext) GetTestingError() error + func (ctx *TestContext) GetTestingT() *bddT + func (ctx *TestContext) GetTransferLocalRootForExport() string + func (ctx *TestContext) GetTransferLocalRootForImport() string + func (ctx *TestContext) GetTransferProgress() *transfer.Progress + func (ctx *TestContext) GetTransferRemoteIMAPServer() *mocks.IMAPServer + func (ctx *TestContext) GetTransferSkipEncryptedMessages() bool + func (ctx *TestContext) GetUser(username string) (*users.User, error) + func (ctx *TestContext) GetUserAgent() string + func (ctx *TestContext) GetUsers() *users.Users + func (ctx *TestContext) LoginUser(username string, password, mailboxPassword []byte) error + func (ctx *TestContext) LogoutUser(query string) (err error) + func (ctx *TestContext) PairMessageID(username, bddMessageID, realMessageID string) + func (ctx *TestContext) ReorderAddresses(userID, addressA, addressB string) + func (ctx *TestContext) RestartBridge() error + func (ctx *TestContext) SetIMAPLastResponse(handle string, resp *mocks.IMAPResponse) + func (ctx *TestContext) SetLastError(err error) + func (ctx *TestContext) SetSMTPLastResponse(handle string, resp *mocks.SMTPResponse) + func (ctx *TestContext) SetTransferProgress(progress *transfer.Progress) + func (ctx *TestContext) SetTransferSkipEncryptedMessages(value bool) + func (ctx *TestContext) WaitForSync(username string) error