mail

package
v1.14.3 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2024 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mail

type Mail struct {
	mock.Mock
}

Mail is an autogenerated mock type for the Mail type

func NewMail

func NewMail(t interface {
	mock.TestingT
	Cleanup(func())
}) *Mail

NewMail creates a new instance of Mail. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Mail) Attach

func (_m *Mail) Attach(files []string) mail.Mail

Attach provides a mock function with given fields: files

func (*Mail) Bcc

func (_m *Mail) Bcc(addresses []string) mail.Mail

Bcc provides a mock function with given fields: addresses

func (*Mail) Cc

func (_m *Mail) Cc(addresses []string) mail.Mail

Cc provides a mock function with given fields: addresses

func (*Mail) Content

func (_m *Mail) Content(content mail.Content) mail.Mail

Content provides a mock function with given fields: content

func (*Mail) EXPECT

func (_m *Mail) EXPECT() *Mail_Expecter

func (*Mail) From

func (_m *Mail) From(address mail.From) mail.Mail

From provides a mock function with given fields: address

func (*Mail) Queue

func (_m *Mail) Queue(queue ...mail.Queue) error

Queue provides a mock function with given fields: queue

func (*Mail) Send

func (_m *Mail) Send() error

Send provides a mock function with given fields:

func (*Mail) To

func (_m *Mail) To(addresses []string) mail.Mail

To provides a mock function with given fields: addresses

type Mail_Attach_Call

type Mail_Attach_Call struct {
	*mock.Call
}

Mail_Attach_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Attach'

func (*Mail_Attach_Call) Return

func (_c *Mail_Attach_Call) Return(_a0 mail.Mail) *Mail_Attach_Call

func (*Mail_Attach_Call) Run

func (_c *Mail_Attach_Call) Run(run func(files []string)) *Mail_Attach_Call

func (*Mail_Attach_Call) RunAndReturn

func (_c *Mail_Attach_Call) RunAndReturn(run func([]string) mail.Mail) *Mail_Attach_Call

type Mail_Bcc_Call

type Mail_Bcc_Call struct {
	*mock.Call
}

Mail_Bcc_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Bcc'

func (*Mail_Bcc_Call) Return

func (_c *Mail_Bcc_Call) Return(_a0 mail.Mail) *Mail_Bcc_Call

func (*Mail_Bcc_Call) Run

func (_c *Mail_Bcc_Call) Run(run func(addresses []string)) *Mail_Bcc_Call

func (*Mail_Bcc_Call) RunAndReturn

func (_c *Mail_Bcc_Call) RunAndReturn(run func([]string) mail.Mail) *Mail_Bcc_Call

type Mail_Cc_Call

type Mail_Cc_Call struct {
	*mock.Call
}

Mail_Cc_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Cc'

func (*Mail_Cc_Call) Return

func (_c *Mail_Cc_Call) Return(_a0 mail.Mail) *Mail_Cc_Call

func (*Mail_Cc_Call) Run

func (_c *Mail_Cc_Call) Run(run func(addresses []string)) *Mail_Cc_Call

func (*Mail_Cc_Call) RunAndReturn

func (_c *Mail_Cc_Call) RunAndReturn(run func([]string) mail.Mail) *Mail_Cc_Call

type Mail_Content_Call

type Mail_Content_Call struct {
	*mock.Call
}

Mail_Content_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Content'

func (*Mail_Content_Call) Return

func (_c *Mail_Content_Call) Return(_a0 mail.Mail) *Mail_Content_Call

func (*Mail_Content_Call) Run

func (_c *Mail_Content_Call) Run(run func(content mail.Content)) *Mail_Content_Call

func (*Mail_Content_Call) RunAndReturn

func (_c *Mail_Content_Call) RunAndReturn(run func(mail.Content) mail.Mail) *Mail_Content_Call

type Mail_Expecter

type Mail_Expecter struct {
	// contains filtered or unexported fields
}

func (*Mail_Expecter) Attach

func (_e *Mail_Expecter) Attach(files interface{}) *Mail_Attach_Call

Attach is a helper method to define mock.On call

  • files []string

func (*Mail_Expecter) Bcc

func (_e *Mail_Expecter) Bcc(addresses interface{}) *Mail_Bcc_Call

Bcc is a helper method to define mock.On call

  • addresses []string

func (*Mail_Expecter) Cc

func (_e *Mail_Expecter) Cc(addresses interface{}) *Mail_Cc_Call

Cc is a helper method to define mock.On call

  • addresses []string

func (*Mail_Expecter) Content

func (_e *Mail_Expecter) Content(content interface{}) *Mail_Content_Call

Content is a helper method to define mock.On call

  • content mail.Content

func (*Mail_Expecter) From

func (_e *Mail_Expecter) From(address interface{}) *Mail_From_Call

From is a helper method to define mock.On call

  • address mail.From

func (*Mail_Expecter) Queue

func (_e *Mail_Expecter) Queue(queue ...interface{}) *Mail_Queue_Call

Queue is a helper method to define mock.On call

  • queue ...mail.Queue

func (*Mail_Expecter) Send

func (_e *Mail_Expecter) Send() *Mail_Send_Call

Send is a helper method to define mock.On call

func (*Mail_Expecter) To

func (_e *Mail_Expecter) To(addresses interface{}) *Mail_To_Call

To is a helper method to define mock.On call

  • addresses []string

type Mail_From_Call

type Mail_From_Call struct {
	*mock.Call
}

Mail_From_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'From'

func (*Mail_From_Call) Return

func (_c *Mail_From_Call) Return(_a0 mail.Mail) *Mail_From_Call

func (*Mail_From_Call) Run

func (_c *Mail_From_Call) Run(run func(address mail.From)) *Mail_From_Call

func (*Mail_From_Call) RunAndReturn

func (_c *Mail_From_Call) RunAndReturn(run func(mail.From) mail.Mail) *Mail_From_Call

type Mail_Queue_Call

type Mail_Queue_Call struct {
	*mock.Call
}

Mail_Queue_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Queue'

func (*Mail_Queue_Call) Return

func (_c *Mail_Queue_Call) Return(_a0 error) *Mail_Queue_Call

func (*Mail_Queue_Call) Run

func (_c *Mail_Queue_Call) Run(run func(queue ...mail.Queue)) *Mail_Queue_Call

func (*Mail_Queue_Call) RunAndReturn

func (_c *Mail_Queue_Call) RunAndReturn(run func(...mail.Queue) error) *Mail_Queue_Call

type Mail_Send_Call

type Mail_Send_Call struct {
	*mock.Call
}

Mail_Send_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Send'

func (*Mail_Send_Call) Return

func (_c *Mail_Send_Call) Return(_a0 error) *Mail_Send_Call

func (*Mail_Send_Call) Run

func (_c *Mail_Send_Call) Run(run func()) *Mail_Send_Call

func (*Mail_Send_Call) RunAndReturn

func (_c *Mail_Send_Call) RunAndReturn(run func() error) *Mail_Send_Call

type Mail_To_Call

type Mail_To_Call struct {
	*mock.Call
}

Mail_To_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'To'

func (*Mail_To_Call) Return

func (_c *Mail_To_Call) Return(_a0 mail.Mail) *Mail_To_Call

func (*Mail_To_Call) Run

func (_c *Mail_To_Call) Run(run func(addresses []string)) *Mail_To_Call

func (*Mail_To_Call) RunAndReturn

func (_c *Mail_To_Call) RunAndReturn(run func([]string) mail.Mail) *Mail_To_Call

Jump to

Keyboard shortcuts

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