mock

package
v0.0.0-rc7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SenderMock

type SenderMock struct {
	mock.Mock
}

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

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

type SenderMock_HealthCheck_Call struct {
	*mock.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 (*SenderMock_HealthCheck_Call) Run

func (*SenderMock_HealthCheck_Call) RunAndReturn

func (_c *SenderMock_HealthCheck_Call) RunAndReturn(run func() bool) *SenderMock_HealthCheck_Call

type SenderMock_SendHtmlMessage_Call

type SenderMock_SendHtmlMessage_Call struct {
	*mock.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 (*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

type SenderMock_SendHtmlMessages_Call

type SenderMock_SendHtmlMessages_Call struct {
	*mock.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 (*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

type SenderMock_SendPlainMessage_Call

type SenderMock_SendPlainMessage_Call struct {
	*mock.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 (*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

type SenderMock_SendPlainMessages_Call

type SenderMock_SendPlainMessages_Call struct {
	*mock.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 (*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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL