Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dialer ¶
Dialer is an autogenerated mock type for the Dialer type
func NewDialer ¶
NewDialer creates a new instance of Dialer. 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 (*Dialer) DialAndSend ¶
DialAndSend provides a mock function with given fields: m
func (*Dialer) EXPECT ¶
func (_m *Dialer) EXPECT() *Dialer_Expecter
func (*Dialer) FromHeader ¶
FromHeader provides a mock function with given fields:
type Dialer_DialAndSend_Call ¶
Dialer_DialAndSend_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DialAndSend'
func (*Dialer_DialAndSend_Call) Return ¶
func (_c *Dialer_DialAndSend_Call) Return(_a0 error) *Dialer_DialAndSend_Call
func (*Dialer_DialAndSend_Call) Run ¶
func (_c *Dialer_DialAndSend_Call) Run(run func(m *mail.Message)) *Dialer_DialAndSend_Call
func (*Dialer_DialAndSend_Call) RunAndReturn ¶
func (_c *Dialer_DialAndSend_Call) RunAndReturn(run func(*mail.Message) error) *Dialer_DialAndSend_Call
type Dialer_Expecter ¶
type Dialer_Expecter struct {
// contains filtered or unexported fields
}
func (*Dialer_Expecter) DialAndSend ¶
func (_e *Dialer_Expecter) DialAndSend(m interface{}) *Dialer_DialAndSend_Call
DialAndSend is a helper method to define mock.On call
- m *mail.Message
func (*Dialer_Expecter) FromHeader ¶
func (_e *Dialer_Expecter) FromHeader() *Dialer_FromHeader_Call
FromHeader is a helper method to define mock.On call
type Dialer_FromHeader_Call ¶
Dialer_FromHeader_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FromHeader'
func (*Dialer_FromHeader_Call) Return ¶
func (_c *Dialer_FromHeader_Call) Return(_a0 string) *Dialer_FromHeader_Call
func (*Dialer_FromHeader_Call) Run ¶
func (_c *Dialer_FromHeader_Call) Run(run func()) *Dialer_FromHeader_Call
func (*Dialer_FromHeader_Call) RunAndReturn ¶
func (_c *Dialer_FromHeader_Call) RunAndReturn(run func() string) *Dialer_FromHeader_Call