Documentation
¶
Index ¶
- type Sender
- type Sender_Expecter
- type Sender_SendEmail_Call
- type SmtpClient
- type SmtpClient_Expecter
- type SmtpClient_SendMail_Call
- func (_c *SmtpClient_SendMail_Call) Return(err error) *SmtpClient_SendMail_Call
- func (_c *SmtpClient_SendMail_Call) Run(run func(from string, to []string, msg io.Reader)) *SmtpClient_SendMail_Call
- func (_c *SmtpClient_SendMail_Call) RunAndReturn(run func(string, []string, io.Reader) error) *SmtpClient_SendMail_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Sender ¶
Sender is an autogenerated mock type for the Sender type
func NewSender ¶
NewSender creates a new instance of Sender. 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 (*Sender) EXPECT ¶
func (_m *Sender) EXPECT() *Sender_Expecter
type Sender_Expecter ¶
type Sender_Expecter struct {
// contains filtered or unexported fields
}
func (*Sender_Expecter) SendEmail ¶
func (_e *Sender_Expecter) SendEmail(ctx interface{}, _a1 interface{}) *Sender_SendEmail_Call
SendEmail is a helper method to define mock.On call
- ctx context.Context
- _a1 email.Email
type Sender_SendEmail_Call ¶
Sender_SendEmail_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SendEmail'
func (*Sender_SendEmail_Call) Return ¶
func (_c *Sender_SendEmail_Call) Return(_a0 error) *Sender_SendEmail_Call
func (*Sender_SendEmail_Call) Run ¶
func (_c *Sender_SendEmail_Call) Run(run func(ctx context.Context, _a1 email.Email)) *Sender_SendEmail_Call
func (*Sender_SendEmail_Call) RunAndReturn ¶
func (_c *Sender_SendEmail_Call) RunAndReturn(run func(context.Context, email.Email) error) *Sender_SendEmail_Call
type SmtpClient ¶ added in v0.40.5
SmtpClient is an autogenerated mock type for the SmtpClient type
func NewSmtpClient ¶ added in v0.40.5
func NewSmtpClient(t interface {
mock.TestingT
Cleanup(func())
}) *SmtpClient
NewSmtpClient creates a new instance of SmtpClient. 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 (*SmtpClient) EXPECT ¶ added in v0.40.5
func (_m *SmtpClient) EXPECT() *SmtpClient_Expecter
type SmtpClient_Expecter ¶ added in v0.40.5
type SmtpClient_Expecter struct {
// contains filtered or unexported fields
}
func (*SmtpClient_Expecter) SendMail ¶ added in v0.40.5
func (_e *SmtpClient_Expecter) SendMail(from interface{}, to interface{}, msg interface{}) *SmtpClient_SendMail_Call
SendMail is a helper method to define mock.On call
- from string
- to []string
- msg io.Reader
type SmtpClient_SendMail_Call ¶ added in v0.40.5
SmtpClient_SendMail_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SendMail'
func (*SmtpClient_SendMail_Call) Return ¶ added in v0.40.5
func (_c *SmtpClient_SendMail_Call) Return(err error) *SmtpClient_SendMail_Call
func (*SmtpClient_SendMail_Call) Run ¶ added in v0.40.5
func (_c *SmtpClient_SendMail_Call) Run(run func(from string, to []string, msg io.Reader)) *SmtpClient_SendMail_Call
func (*SmtpClient_SendMail_Call) RunAndReturn ¶ added in v0.40.5
func (_c *SmtpClient_SendMail_Call) RunAndReturn(run func(string, []string, io.Reader) error) *SmtpClient_SendMail_Call