mail

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: MIT Imports: 2 Imported by: 0

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.Address) mail.Mail

From provides a mock function with given fields: address

func (*Mail) Queue

func (_m *Mail) Queue(mailable ...mail.Mailable) error

Queue provides a mock function with given fields: mailable

func (*Mail) Send

func (_m *Mail) Send(mailable ...mail.Mailable) error

Send provides a mock function with given fields: mailable

func (*Mail) Subject

func (_m *Mail) Subject(subject string) mail.Mail

Subject provides a mock function with given fields: subject

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.Address

func (*Mail_Expecter) Queue

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

Queue is a helper method to define mock.On call

  • mailable ...mail.Mailable

func (*Mail_Expecter) Send

func (_e *Mail_Expecter) Send(mailable ...interface{}) *Mail_Send_Call

Send is a helper method to define mock.On call

  • mailable ...mail.Mailable

func (*Mail_Expecter) Subject

func (_e *Mail_Expecter) Subject(subject interface{}) *Mail_Subject_Call

Subject is a helper method to define mock.On call

  • subject string

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.Address)) *Mail_From_Call

func (*Mail_From_Call) RunAndReturn

func (_c *Mail_From_Call) RunAndReturn(run func(mail.Address) 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(mailable ...mail.Mailable)) *Mail_Queue_Call

func (*Mail_Queue_Call) RunAndReturn

func (_c *Mail_Queue_Call) RunAndReturn(run func(...mail.Mailable) 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(mailable ...mail.Mailable)) *Mail_Send_Call

func (*Mail_Send_Call) RunAndReturn

func (_c *Mail_Send_Call) RunAndReturn(run func(...mail.Mailable) error) *Mail_Send_Call

type Mail_Subject_Call

type Mail_Subject_Call struct {
	*mock.Call
}

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

func (*Mail_Subject_Call) Return

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

func (*Mail_Subject_Call) Run

func (_c *Mail_Subject_Call) Run(run func(subject string)) *Mail_Subject_Call

func (*Mail_Subject_Call) RunAndReturn

func (_c *Mail_Subject_Call) RunAndReturn(run func(string) mail.Mail) *Mail_Subject_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

type Mailable

type Mailable struct {
	mock.Mock
}

Mailable is an autogenerated mock type for the Mailable type

func NewMailable

func NewMailable(t interface {
	mock.TestingT
	Cleanup(func())
}) *Mailable

NewMailable creates a new instance of Mailable. 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 (*Mailable) Attachments

func (_m *Mailable) Attachments() []string

Attachments provides a mock function with given fields:

func (*Mailable) Content

func (_m *Mailable) Content() *mail.Content

Content provides a mock function with given fields:

func (*Mailable) EXPECT

func (_m *Mailable) EXPECT() *Mailable_Expecter

func (*Mailable) Envelope

func (_m *Mailable) Envelope() *mail.Envelope

Envelope provides a mock function with given fields:

func (*Mailable) Queue

func (_m *Mailable) Queue() *mail.Queue

Queue provides a mock function with given fields:

type Mailable_Attachments_Call

type Mailable_Attachments_Call struct {
	*mock.Call
}

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

func (*Mailable_Attachments_Call) Return

func (*Mailable_Attachments_Call) Run

func (*Mailable_Attachments_Call) RunAndReturn

func (_c *Mailable_Attachments_Call) RunAndReturn(run func() []string) *Mailable_Attachments_Call

type Mailable_Content_Call

type Mailable_Content_Call struct {
	*mock.Call
}

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

func (*Mailable_Content_Call) Return

func (*Mailable_Content_Call) Run

func (_c *Mailable_Content_Call) Run(run func()) *Mailable_Content_Call

func (*Mailable_Content_Call) RunAndReturn

func (_c *Mailable_Content_Call) RunAndReturn(run func() *mail.Content) *Mailable_Content_Call

type Mailable_Envelope_Call

type Mailable_Envelope_Call struct {
	*mock.Call
}

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

func (*Mailable_Envelope_Call) Return

func (*Mailable_Envelope_Call) Run

func (_c *Mailable_Envelope_Call) Run(run func()) *Mailable_Envelope_Call

func (*Mailable_Envelope_Call) RunAndReturn

func (_c *Mailable_Envelope_Call) RunAndReturn(run func() *mail.Envelope) *Mailable_Envelope_Call

type Mailable_Expecter

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

func (*Mailable_Expecter) Attachments

func (_e *Mailable_Expecter) Attachments() *Mailable_Attachments_Call

Attachments is a helper method to define mock.On call

func (*Mailable_Expecter) Content

Content is a helper method to define mock.On call

func (*Mailable_Expecter) Envelope

func (_e *Mailable_Expecter) Envelope() *Mailable_Envelope_Call

Envelope is a helper method to define mock.On call

func (*Mailable_Expecter) Queue

Queue is a helper method to define mock.On call

type Mailable_Queue_Call

type Mailable_Queue_Call struct {
	*mock.Call
}

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

func (*Mailable_Queue_Call) Return

func (*Mailable_Queue_Call) Run

func (_c *Mailable_Queue_Call) Run(run func()) *Mailable_Queue_Call

func (*Mailable_Queue_Call) RunAndReturn

func (_c *Mailable_Queue_Call) RunAndReturn(run func() *mail.Queue) *Mailable_Queue_Call

type ShouldQueue

type ShouldQueue struct {
	mock.Mock
}

ShouldQueue is an autogenerated mock type for the ShouldQueue type

func NewShouldQueue

func NewShouldQueue(t interface {
	mock.TestingT
	Cleanup(func())
}) *ShouldQueue

NewShouldQueue creates a new instance of ShouldQueue. 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 (*ShouldQueue) Attachments

func (_m *ShouldQueue) Attachments() []string

Attachments provides a mock function with given fields:

func (*ShouldQueue) Content

func (_m *ShouldQueue) Content() *mail.Content

Content provides a mock function with given fields:

func (*ShouldQueue) EXPECT

func (_m *ShouldQueue) EXPECT() *ShouldQueue_Expecter

func (*ShouldQueue) Envelope

func (_m *ShouldQueue) Envelope() *mail.Envelope

Envelope provides a mock function with given fields:

func (*ShouldQueue) Queue

func (_m *ShouldQueue) Queue() *mail.Queue

Queue provides a mock function with given fields:

type ShouldQueue_Attachments_Call

type ShouldQueue_Attachments_Call struct {
	*mock.Call
}

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

func (*ShouldQueue_Attachments_Call) Return

func (*ShouldQueue_Attachments_Call) Run

func (*ShouldQueue_Attachments_Call) RunAndReturn

func (_c *ShouldQueue_Attachments_Call) RunAndReturn(run func() []string) *ShouldQueue_Attachments_Call

type ShouldQueue_Content_Call

type ShouldQueue_Content_Call struct {
	*mock.Call
}

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

func (*ShouldQueue_Content_Call) Return

func (*ShouldQueue_Content_Call) Run

func (*ShouldQueue_Content_Call) RunAndReturn

func (_c *ShouldQueue_Content_Call) RunAndReturn(run func() *mail.Content) *ShouldQueue_Content_Call

type ShouldQueue_Envelope_Call

type ShouldQueue_Envelope_Call struct {
	*mock.Call
}

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

func (*ShouldQueue_Envelope_Call) Return

func (*ShouldQueue_Envelope_Call) Run

func (*ShouldQueue_Envelope_Call) RunAndReturn

func (_c *ShouldQueue_Envelope_Call) RunAndReturn(run func() *mail.Envelope) *ShouldQueue_Envelope_Call

type ShouldQueue_Expecter

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

func (*ShouldQueue_Expecter) Attachments

Attachments is a helper method to define mock.On call

func (*ShouldQueue_Expecter) Content

Content is a helper method to define mock.On call

func (*ShouldQueue_Expecter) Envelope

Envelope is a helper method to define mock.On call

func (*ShouldQueue_Expecter) Queue

Queue is a helper method to define mock.On call

type ShouldQueue_Queue_Call

type ShouldQueue_Queue_Call struct {
	*mock.Call
}

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

func (*ShouldQueue_Queue_Call) Return

func (*ShouldQueue_Queue_Call) Run

func (_c *ShouldQueue_Queue_Call) Run(run func()) *ShouldQueue_Queue_Call

func (*ShouldQueue_Queue_Call) RunAndReturn

func (_c *ShouldQueue_Queue_Call) RunAndReturn(run func() *mail.Queue) *ShouldQueue_Queue_Call

Jump to

Keyboard shortcuts

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