Documentation ¶
Index ¶
- type Mail
- func (_m *Mail) Attach(files []string) mail.Mail
- func (_m *Mail) Bcc(addresses []string) mail.Mail
- func (_m *Mail) Cc(addresses []string) mail.Mail
- func (_m *Mail) Content(content mail.Content) mail.Mail
- func (_m *Mail) EXPECT() *Mail_Expecter
- func (_m *Mail) From(address mail.Address) mail.Mail
- func (_m *Mail) Queue(mailable ...mail.Mailable) error
- func (_m *Mail) Send(mailable ...mail.Mailable) error
- func (_m *Mail) Subject(subject string) mail.Mail
- func (_m *Mail) To(addresses []string) mail.Mail
- type Mail_Attach_Call
- type Mail_Bcc_Call
- type Mail_Cc_Call
- type Mail_Content_Call
- type Mail_Expecter
- func (_e *Mail_Expecter) Attach(files interface{}) *Mail_Attach_Call
- func (_e *Mail_Expecter) Bcc(addresses interface{}) *Mail_Bcc_Call
- func (_e *Mail_Expecter) Cc(addresses interface{}) *Mail_Cc_Call
- func (_e *Mail_Expecter) Content(content interface{}) *Mail_Content_Call
- func (_e *Mail_Expecter) From(address interface{}) *Mail_From_Call
- func (_e *Mail_Expecter) Queue(mailable ...interface{}) *Mail_Queue_Call
- func (_e *Mail_Expecter) Send(mailable ...interface{}) *Mail_Send_Call
- func (_e *Mail_Expecter) Subject(subject interface{}) *Mail_Subject_Call
- func (_e *Mail_Expecter) To(addresses interface{}) *Mail_To_Call
- type Mail_From_Call
- type Mail_Queue_Call
- type Mail_Send_Call
- type Mail_Subject_Call
- type Mail_To_Call
- type Mailable
- type Mailable_Attachments_Call
- type Mailable_Content_Call
- type Mailable_Envelope_Call
- type Mailable_Expecter
- type Mailable_Queue_Call
- type ShouldQueue
- type ShouldQueue_Attachments_Call
- type ShouldQueue_Content_Call
- type ShouldQueue_Envelope_Call
- type ShouldQueue_Expecter
- type ShouldQueue_Queue_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mail ¶
Mail is an autogenerated mock type for the Mail type
func NewMail ¶
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) EXPECT ¶
func (_m *Mail) EXPECT() *Mail_Expecter
type Mail_Attach_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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
Mailable is an autogenerated mock type for the Mailable type
func NewMailable ¶
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 ¶
Attachments provides a mock function with given fields:
func (*Mailable) EXPECT ¶
func (_m *Mailable) EXPECT() *Mailable_Expecter
type Mailable_Attachments_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 (_c *Mailable_Attachments_Call) Return(_a0 []string) *Mailable_Attachments_Call
func (*Mailable_Attachments_Call) Run ¶
func (_c *Mailable_Attachments_Call) Run(run func()) *Mailable_Attachments_Call
func (*Mailable_Attachments_Call) RunAndReturn ¶
func (_c *Mailable_Attachments_Call) RunAndReturn(run func() []string) *Mailable_Attachments_Call
type Mailable_Content_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 (_c *Mailable_Content_Call) Return(_a0 *mail.Content) *Mailable_Content_Call
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 ¶
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 (_c *Mailable_Envelope_Call) Return(_a0 *mail.Envelope) *Mailable_Envelope_Call
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 ¶
func (_e *Mailable_Expecter) Content() *Mailable_Content_Call
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 ¶
func (_e *Mailable_Expecter) Queue() *Mailable_Queue_Call
Queue is a helper method to define mock.On call
type Mailable_Queue_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 (_c *Mailable_Queue_Call) Return(_a0 *mail.Queue) *Mailable_Queue_Call
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 ¶
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 ¶
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 (_c *ShouldQueue_Attachments_Call) Return(_a0 []string) *ShouldQueue_Attachments_Call
func (*ShouldQueue_Attachments_Call) Run ¶
func (_c *ShouldQueue_Attachments_Call) Run(run func()) *ShouldQueue_Attachments_Call
func (*ShouldQueue_Attachments_Call) RunAndReturn ¶
func (_c *ShouldQueue_Attachments_Call) RunAndReturn(run func() []string) *ShouldQueue_Attachments_Call
type ShouldQueue_Content_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 (_c *ShouldQueue_Content_Call) Return(_a0 *mail.Content) *ShouldQueue_Content_Call
func (*ShouldQueue_Content_Call) Run ¶
func (_c *ShouldQueue_Content_Call) Run(run func()) *ShouldQueue_Content_Call
func (*ShouldQueue_Content_Call) RunAndReturn ¶
func (_c *ShouldQueue_Content_Call) RunAndReturn(run func() *mail.Content) *ShouldQueue_Content_Call
type ShouldQueue_Envelope_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 (_c *ShouldQueue_Envelope_Call) Return(_a0 *mail.Envelope) *ShouldQueue_Envelope_Call
func (*ShouldQueue_Envelope_Call) Run ¶
func (_c *ShouldQueue_Envelope_Call) Run(run func()) *ShouldQueue_Envelope_Call
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 ¶
func (_e *ShouldQueue_Expecter) Attachments() *ShouldQueue_Attachments_Call
Attachments is a helper method to define mock.On call
func (*ShouldQueue_Expecter) Content ¶
func (_e *ShouldQueue_Expecter) Content() *ShouldQueue_Content_Call
Content is a helper method to define mock.On call
func (*ShouldQueue_Expecter) Envelope ¶
func (_e *ShouldQueue_Expecter) Envelope() *ShouldQueue_Envelope_Call
Envelope is a helper method to define mock.On call
func (*ShouldQueue_Expecter) Queue ¶
func (_e *ShouldQueue_Expecter) Queue() *ShouldQueue_Queue_Call
Queue is a helper method to define mock.On call
type ShouldQueue_Queue_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 (_c *ShouldQueue_Queue_Call) Return(_a0 *mail.Queue) *ShouldQueue_Queue_Call
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