test

package
v0.0.0-...-9bcf0d1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 25, 2024 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmailCheckerMock

type EmailCheckerMock struct {
	Trusted []string
}

func (EmailCheckerMock) IsAllowed

func (ecm EmailCheckerMock) IsAllowed(email string) bool

type EmailSenderMock

type EmailSenderMock struct {
	Emails []string
	Codes  []string
	Dates  []int64
}

func (*EmailSenderMock) CheckEmail

func (esm *EmailSenderMock) CheckEmail(t *testing.T, email string)

func (*EmailSenderMock) CheckEmail2

func (esm *EmailSenderMock) CheckEmail2(t *testing.T, email0, email1 string)

func (*EmailSenderMock) Clear

func (esm *EmailSenderMock) Clear()

func (*EmailSenderMock) SendAdmReceived

func (esm *EmailSenderMock) SendAdmReceived(address, toShowName string)

func (*EmailSenderMock) SendAdmSent

func (esm *EmailSenderMock) SendAdmSent(address, toShowName string)

func (*EmailSenderMock) SendCommentComplain

func (esm *EmailSenderMock) SendCommentComplain(from, against, content, comment string, commentID, entryID int64)

func (*EmailSenderMock) SendEmailChanged

func (esm *EmailSenderMock) SendEmailChanged(address, name string)

func (*EmailSenderMock) SendEntryComplain

func (esm *EmailSenderMock) SendEntryComplain(from, against, content, entry string, entryID int64)

func (*EmailSenderMock) SendGreeting

func (esm *EmailSenderMock) SendGreeting(address, name, code string)

func (*EmailSenderMock) SendInvited

func (esm *EmailSenderMock) SendInvited(address, fromShowName, fromGender, toShowName string)

func (*EmailSenderMock) SendNewAccept

func (esm *EmailSenderMock) SendNewAccept(address, fromName, fromShowName, fromGender, toShowName string)

func (*EmailSenderMock) SendNewComment

func (esm *EmailSenderMock) SendNewComment(address, fromGender, toShowName, entryTitle string, cmt *models.Comment)

func (*EmailSenderMock) SendNewFollower

func (esm *EmailSenderMock) SendNewFollower(address, fromName, fromShowName, fromGender string, toPrivate bool, toShowName string)

func (*EmailSenderMock) SendNewInvite

func (esm *EmailSenderMock) SendNewInvite(address, name string)

func (*EmailSenderMock) SendPasswordChanged

func (esm *EmailSenderMock) SendPasswordChanged(address, name string)

func (*EmailSenderMock) SendResetPassword

func (esm *EmailSenderMock) SendResetPassword(address, name, gender, code string, date int64)

func (*EmailSenderMock) Stop

func (esm *EmailSenderMock) Stop()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL