mocks

package
v0.61.2 Latest Latest
Warning

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

Go to latest
Published: May 4, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sender

type Sender struct {
	mock.Mock
}

Sender is an autogenerated mock type for the Sender type

func NewSender

func NewSender(t interface {
	mock.TestingT
	Cleanup(func())
}) *Sender

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

func (*Sender) SendEmail

func (_m *Sender) SendEmail(ctx context.Context, _a1 email.Email) error

SendEmail provides a mock function with given fields: ctx, _a1

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

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

func (*Sender_SendEmail_Call) RunAndReturn

type SmtpClient added in v0.40.5

type SmtpClient struct {
	mock.Mock
}

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

func (*SmtpClient) SendMail added in v0.40.5

func (_m *SmtpClient) SendMail(from string, to []string, msg io.Reader) error

SendMail provides a mock function with given fields: from, to, msg

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

type SmtpClient_SendMail_Call struct {
	*mock.Call
}

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 (*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

Jump to

Keyboard shortcuts

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