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.From) mail.Mail
- func (_m *Mail) Queue(queue ...mail.Queue) error
- func (_m *Mail) Send() error
- 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(queue ...interface{}) *Mail_Queue_Call
- func (_e *Mail_Expecter) Send() *Mail_Send_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_To_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.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 ¶
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 ¶
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 ¶
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 ¶
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