Documentation ¶
Index ¶
- type SenderMock
- func (_m *SenderMock) EXPECT() *SenderMock_Expecter
- func (_m *SenderMock) HealthCheck() bool
- func (_m *SenderMock) SendHtmlMessage(subject string, content string, to string, attachments ...string) error
- func (_m *SenderMock) SendHtmlMessages(subject string, content string, to []string, attachments ...string) error
- func (_m *SenderMock) SendPlainMessage(subject string, content string, to string, attachments ...string) error
- func (_m *SenderMock) SendPlainMessages(subject string, content string, to []string, attachments ...string) error
- type SenderMock_Expecter
- func (_e *SenderMock_Expecter) HealthCheck() *SenderMock_HealthCheck_Call
- func (_e *SenderMock_Expecter) SendHtmlMessage(subject interface{}, content interface{}, to interface{}, ...) *SenderMock_SendHtmlMessage_Call
- func (_e *SenderMock_Expecter) SendHtmlMessages(subject interface{}, content interface{}, to interface{}, ...) *SenderMock_SendHtmlMessages_Call
- func (_e *SenderMock_Expecter) SendPlainMessage(subject interface{}, content interface{}, to interface{}, ...) *SenderMock_SendPlainMessage_Call
- func (_e *SenderMock_Expecter) SendPlainMessages(subject interface{}, content interface{}, to interface{}, ...) *SenderMock_SendPlainMessages_Call
- type SenderMock_HealthCheck_Call
- type SenderMock_SendHtmlMessage_Call
- func (_c *SenderMock_SendHtmlMessage_Call) Return(_a0 error) *SenderMock_SendHtmlMessage_Call
- func (_c *SenderMock_SendHtmlMessage_Call) Run(run func(subject string, content string, to string, attachments ...string)) *SenderMock_SendHtmlMessage_Call
- func (_c *SenderMock_SendHtmlMessage_Call) RunAndReturn(run func(string, string, string, ...string) error) *SenderMock_SendHtmlMessage_Call
- type SenderMock_SendHtmlMessages_Call
- func (_c *SenderMock_SendHtmlMessages_Call) Return(_a0 error) *SenderMock_SendHtmlMessages_Call
- func (_c *SenderMock_SendHtmlMessages_Call) Run(run func(subject string, content string, to []string, attachments ...string)) *SenderMock_SendHtmlMessages_Call
- func (_c *SenderMock_SendHtmlMessages_Call) RunAndReturn(run func(string, string, []string, ...string) error) *SenderMock_SendHtmlMessages_Call
- type SenderMock_SendPlainMessage_Call
- func (_c *SenderMock_SendPlainMessage_Call) Return(_a0 error) *SenderMock_SendPlainMessage_Call
- func (_c *SenderMock_SendPlainMessage_Call) Run(run func(subject string, content string, to string, attachments ...string)) *SenderMock_SendPlainMessage_Call
- func (_c *SenderMock_SendPlainMessage_Call) RunAndReturn(run func(string, string, string, ...string) error) *SenderMock_SendPlainMessage_Call
- type SenderMock_SendPlainMessages_Call
- func (_c *SenderMock_SendPlainMessages_Call) Return(_a0 error) *SenderMock_SendPlainMessages_Call
- func (_c *SenderMock_SendPlainMessages_Call) Run(run func(subject string, content string, to []string, attachments ...string)) *SenderMock_SendPlainMessages_Call
- func (_c *SenderMock_SendPlainMessages_Call) RunAndReturn(run func(string, string, []string, ...string) error) *SenderMock_SendPlainMessages_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SenderMock ¶
SenderMock is an autogenerated mock type for the Sender type
func NewSenderMock ¶
func NewSenderMock(t interface { mock.TestingT Cleanup(func()) }) *SenderMock
NewSenderMock creates a new instance of SenderMock. 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 (*SenderMock) EXPECT ¶
func (_m *SenderMock) EXPECT() *SenderMock_Expecter
func (*SenderMock) HealthCheck ¶
func (_m *SenderMock) HealthCheck() bool
HealthCheck provides a mock function with given fields:
func (*SenderMock) SendHtmlMessage ¶
func (_m *SenderMock) SendHtmlMessage(subject string, content string, to string, attachments ...string) error
SendHtmlMessage provides a mock function with given fields: subject, content, to, attachments
func (*SenderMock) SendHtmlMessages ¶
func (_m *SenderMock) SendHtmlMessages(subject string, content string, to []string, attachments ...string) error
SendHtmlMessages provides a mock function with given fields: subject, content, to, attachments
func (*SenderMock) SendPlainMessage ¶
func (_m *SenderMock) SendPlainMessage(subject string, content string, to string, attachments ...string) error
SendPlainMessage provides a mock function with given fields: subject, content, to, attachments
func (*SenderMock) SendPlainMessages ¶
func (_m *SenderMock) SendPlainMessages(subject string, content string, to []string, attachments ...string) error
SendPlainMessages provides a mock function with given fields: subject, content, to, attachments
type SenderMock_Expecter ¶
type SenderMock_Expecter struct {
// contains filtered or unexported fields
}
func (*SenderMock_Expecter) HealthCheck ¶
func (_e *SenderMock_Expecter) HealthCheck() *SenderMock_HealthCheck_Call
HealthCheck is a helper method to define mock.On call
func (*SenderMock_Expecter) SendHtmlMessage ¶
func (_e *SenderMock_Expecter) SendHtmlMessage(subject interface{}, content interface{}, to interface{}, attachments ...interface{}) *SenderMock_SendHtmlMessage_Call
SendHtmlMessage is a helper method to define mock.On call
- subject string
- content string
- to string
- attachments ...string
func (*SenderMock_Expecter) SendHtmlMessages ¶
func (_e *SenderMock_Expecter) SendHtmlMessages(subject interface{}, content interface{}, to interface{}, attachments ...interface{}) *SenderMock_SendHtmlMessages_Call
SendHtmlMessages is a helper method to define mock.On call
- subject string
- content string
- to []string
- attachments ...string
func (*SenderMock_Expecter) SendPlainMessage ¶
func (_e *SenderMock_Expecter) SendPlainMessage(subject interface{}, content interface{}, to interface{}, attachments ...interface{}) *SenderMock_SendPlainMessage_Call
SendPlainMessage is a helper method to define mock.On call
- subject string
- content string
- to string
- attachments ...string
func (*SenderMock_Expecter) SendPlainMessages ¶
func (_e *SenderMock_Expecter) SendPlainMessages(subject interface{}, content interface{}, to interface{}, attachments ...interface{}) *SenderMock_SendPlainMessages_Call
SendPlainMessages is a helper method to define mock.On call
- subject string
- content string
- to []string
- attachments ...string
type SenderMock_HealthCheck_Call ¶
SenderMock_HealthCheck_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HealthCheck'
func (*SenderMock_HealthCheck_Call) Return ¶
func (_c *SenderMock_HealthCheck_Call) Return(_a0 bool) *SenderMock_HealthCheck_Call
func (*SenderMock_HealthCheck_Call) Run ¶
func (_c *SenderMock_HealthCheck_Call) Run(run func()) *SenderMock_HealthCheck_Call
func (*SenderMock_HealthCheck_Call) RunAndReturn ¶
func (_c *SenderMock_HealthCheck_Call) RunAndReturn(run func() bool) *SenderMock_HealthCheck_Call
type SenderMock_SendHtmlMessage_Call ¶
SenderMock_SendHtmlMessage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SendHtmlMessage'
func (*SenderMock_SendHtmlMessage_Call) Return ¶
func (_c *SenderMock_SendHtmlMessage_Call) Return(_a0 error) *SenderMock_SendHtmlMessage_Call
func (*SenderMock_SendHtmlMessage_Call) Run ¶
func (_c *SenderMock_SendHtmlMessage_Call) Run(run func(subject string, content string, to string, attachments ...string)) *SenderMock_SendHtmlMessage_Call
func (*SenderMock_SendHtmlMessage_Call) RunAndReturn ¶
func (_c *SenderMock_SendHtmlMessage_Call) RunAndReturn(run func(string, string, string, ...string) error) *SenderMock_SendHtmlMessage_Call
type SenderMock_SendHtmlMessages_Call ¶
SenderMock_SendHtmlMessages_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SendHtmlMessages'
func (*SenderMock_SendHtmlMessages_Call) Return ¶
func (_c *SenderMock_SendHtmlMessages_Call) Return(_a0 error) *SenderMock_SendHtmlMessages_Call
func (*SenderMock_SendHtmlMessages_Call) Run ¶
func (_c *SenderMock_SendHtmlMessages_Call) Run(run func(subject string, content string, to []string, attachments ...string)) *SenderMock_SendHtmlMessages_Call
func (*SenderMock_SendHtmlMessages_Call) RunAndReturn ¶
func (_c *SenderMock_SendHtmlMessages_Call) RunAndReturn(run func(string, string, []string, ...string) error) *SenderMock_SendHtmlMessages_Call
type SenderMock_SendPlainMessage_Call ¶
SenderMock_SendPlainMessage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SendPlainMessage'
func (*SenderMock_SendPlainMessage_Call) Return ¶
func (_c *SenderMock_SendPlainMessage_Call) Return(_a0 error) *SenderMock_SendPlainMessage_Call
func (*SenderMock_SendPlainMessage_Call) Run ¶
func (_c *SenderMock_SendPlainMessage_Call) Run(run func(subject string, content string, to string, attachments ...string)) *SenderMock_SendPlainMessage_Call
func (*SenderMock_SendPlainMessage_Call) RunAndReturn ¶
func (_c *SenderMock_SendPlainMessage_Call) RunAndReturn(run func(string, string, string, ...string) error) *SenderMock_SendPlainMessage_Call
type SenderMock_SendPlainMessages_Call ¶
SenderMock_SendPlainMessages_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SendPlainMessages'
func (*SenderMock_SendPlainMessages_Call) Return ¶
func (_c *SenderMock_SendPlainMessages_Call) Return(_a0 error) *SenderMock_SendPlainMessages_Call
func (*SenderMock_SendPlainMessages_Call) Run ¶
func (_c *SenderMock_SendPlainMessages_Call) Run(run func(subject string, content string, to []string, attachments ...string)) *SenderMock_SendPlainMessages_Call
func (*SenderMock_SendPlainMessages_Call) RunAndReturn ¶
func (_c *SenderMock_SendPlainMessages_Call) RunAndReturn(run func(string, string, []string, ...string) error) *SenderMock_SendPlainMessages_Call