mocks

package
v1.15.2 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AwsSendEmailFunc

type AwsSendEmailFunc func(input *ses.SendEmailInput) (*ses.SendEmailOutput, error)

type Emailer added in v1.15.0

type Emailer struct {
	mock.Mock
}

Emailer is an autogenerated mock type for the Emailer type

func NewEmailer added in v1.15.0

func NewEmailer(t interface {
	mock.TestingT
	Cleanup(func())
}) *Emailer

NewEmailer creates a new instance of Emailer. 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 (*Emailer) EXPECT added in v1.15.0

func (_m *Emailer) EXPECT() *Emailer_Expecter

func (*Emailer) SendEmail added in v1.15.0

func (_m *Emailer) SendEmail(ctx context.Context, email *admin.EmailMessage) error

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

type Emailer_Expecter added in v1.15.0

type Emailer_Expecter struct {
	// contains filtered or unexported fields
}

func (*Emailer_Expecter) SendEmail added in v1.15.0

func (_e *Emailer_Expecter) SendEmail(ctx interface{}, email interface{}) *Emailer_SendEmail_Call

SendEmail is a helper method to define mock.On call

  • ctx context.Context
  • email *admin.EmailMessage

type Emailer_SendEmail_Call added in v1.15.0

type Emailer_SendEmail_Call struct {
	*mock.Call
}

Emailer_SendEmail_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SendEmail'

func (*Emailer_SendEmail_Call) Return added in v1.15.0

func (*Emailer_SendEmail_Call) Run added in v1.15.0

func (*Emailer_SendEmail_Call) RunAndReturn added in v1.15.0

type Processor added in v1.15.0

type Processor struct {
	mock.Mock
}

Processor is an autogenerated mock type for the Processor type

func NewProcessor added in v1.15.0

func NewProcessor(t interface {
	mock.TestingT
	Cleanup(func())
}) *Processor

NewProcessor creates a new instance of Processor. 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 (*Processor) EXPECT added in v1.15.0

func (_m *Processor) EXPECT() *Processor_Expecter

func (*Processor) StartProcessing added in v1.15.0

func (_m *Processor) StartProcessing()

StartProcessing provides a mock function with given fields:

func (*Processor) StopProcessing added in v1.15.0

func (_m *Processor) StopProcessing() error

StopProcessing provides a mock function with given fields:

type Processor_Expecter added in v1.15.0

type Processor_Expecter struct {
	// contains filtered or unexported fields
}

func (*Processor_Expecter) StartProcessing added in v1.15.0

func (_e *Processor_Expecter) StartProcessing() *Processor_StartProcessing_Call

StartProcessing is a helper method to define mock.On call

func (*Processor_Expecter) StopProcessing added in v1.15.0

func (_e *Processor_Expecter) StopProcessing() *Processor_StopProcessing_Call

StopProcessing is a helper method to define mock.On call

type Processor_StartProcessing_Call added in v1.15.0

type Processor_StartProcessing_Call struct {
	*mock.Call
}

Processor_StartProcessing_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StartProcessing'

func (*Processor_StartProcessing_Call) Return added in v1.15.0

func (*Processor_StartProcessing_Call) Run added in v1.15.0

func (*Processor_StartProcessing_Call) RunAndReturn added in v1.15.0

func (_c *Processor_StartProcessing_Call) RunAndReturn(run func()) *Processor_StartProcessing_Call

type Processor_StopProcessing_Call added in v1.15.0

type Processor_StopProcessing_Call struct {
	*mock.Call
}

Processor_StopProcessing_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StopProcessing'

func (*Processor_StopProcessing_Call) Return added in v1.15.0

func (*Processor_StopProcessing_Call) Run added in v1.15.0

func (*Processor_StopProcessing_Call) RunAndReturn added in v1.15.0

type Publisher added in v1.15.0

type Publisher struct {
	mock.Mock
}

Publisher is an autogenerated mock type for the Publisher type

func NewPublisher added in v1.15.0

func NewPublisher(t interface {
	mock.TestingT
	Cleanup(func())
}) *Publisher

NewPublisher creates a new instance of Publisher. 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 (*Publisher) EXPECT added in v1.15.0

func (_m *Publisher) EXPECT() *Publisher_Expecter

func (*Publisher) Publish added in v1.15.0

func (_m *Publisher) Publish(ctx context.Context, notificationType string, msg protoiface.MessageV1) error

Publish provides a mock function with given fields: ctx, notificationType, msg

type Publisher_Expecter added in v1.15.0

type Publisher_Expecter struct {
	// contains filtered or unexported fields
}

func (*Publisher_Expecter) Publish added in v1.15.0

func (_e *Publisher_Expecter) Publish(ctx interface{}, notificationType interface{}, msg interface{}) *Publisher_Publish_Call

Publish is a helper method to define mock.On call

  • ctx context.Context
  • notificationType string
  • msg protoiface.MessageV1

type Publisher_Publish_Call added in v1.15.0

type Publisher_Publish_Call struct {
	*mock.Call
}

Publisher_Publish_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Publish'

func (*Publisher_Publish_Call) Return added in v1.15.0

func (*Publisher_Publish_Call) Run added in v1.15.0

func (_c *Publisher_Publish_Call) Run(run func(ctx context.Context, notificationType string, msg protoiface.MessageV1)) *Publisher_Publish_Call

func (*Publisher_Publish_Call) RunAndReturn added in v1.15.0

type SESClient

type SESClient struct {
	sesiface.SESAPI
	// contains filtered or unexported fields
}

func (*SESClient) SendEmail

func (m *SESClient) SendEmail(input *ses.SendEmailInput) (*ses.SendEmailOutput, error)

func (*SESClient) SetSendEmailFunc

func (m *SESClient) SetSendEmailFunc(emailFunc AwsSendEmailFunc)

type SMTPClient added in v1.13.2

type SMTPClient struct {
	mock.Mock
}

SMTPClient is an autogenerated mock type for the SMTPClient type

func NewSMTPClient added in v1.15.1

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) Auth added in v1.13.2

func (_m *SMTPClient) Auth(a smtp.Auth) error

Auth provides a mock function with given fields: a

func (*SMTPClient) Close added in v1.13.2

func (_m *SMTPClient) Close() error

Close provides a mock function with given fields:

func (*SMTPClient) Data added in v1.13.2

func (_m *SMTPClient) Data() (io.WriteCloser, error)

Data provides a mock function with given fields:

func (*SMTPClient) EXPECT added in v1.15.1

func (_m *SMTPClient) EXPECT() *SMTPClient_Expecter

func (*SMTPClient) Extension added in v1.13.2

func (_m *SMTPClient) Extension(ext string) (bool, string)

Extension provides a mock function with given fields: ext

func (*SMTPClient) Hello added in v1.13.2

func (_m *SMTPClient) Hello(localName string) error

Hello provides a mock function with given fields: localName

func (*SMTPClient) Mail added in v1.13.2

func (_m *SMTPClient) Mail(from string) error

Mail provides a mock function with given fields: from

func (*SMTPClient) Noop added in v1.13.2

func (_m *SMTPClient) Noop() error

Noop provides a mock function with given fields:

func (*SMTPClient) Rcpt added in v1.13.2

func (_m *SMTPClient) Rcpt(to string) error

Rcpt provides a mock function with given fields: to

func (*SMTPClient) StartTLS added in v1.13.2

func (_m *SMTPClient) StartTLS(config *tls.Config) error

StartTLS provides a mock function with given fields: config

type SMTPClient_Auth_Call added in v1.15.1

type SMTPClient_Auth_Call struct {
	*mock.Call
}

SMTPClient_Auth_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Auth'

func (*SMTPClient_Auth_Call) Return added in v1.15.1

func (*SMTPClient_Auth_Call) Run added in v1.15.1

func (_c *SMTPClient_Auth_Call) Run(run func(a smtp.Auth)) *SMTPClient_Auth_Call

func (*SMTPClient_Auth_Call) RunAndReturn added in v1.15.1

func (_c *SMTPClient_Auth_Call) RunAndReturn(run func(smtp.Auth) error) *SMTPClient_Auth_Call

type SMTPClient_Close_Call added in v1.15.1

type SMTPClient_Close_Call struct {
	*mock.Call
}

SMTPClient_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'

func (*SMTPClient_Close_Call) Return added in v1.15.1

func (*SMTPClient_Close_Call) Run added in v1.15.1

func (_c *SMTPClient_Close_Call) Run(run func()) *SMTPClient_Close_Call

func (*SMTPClient_Close_Call) RunAndReturn added in v1.15.1

func (_c *SMTPClient_Close_Call) RunAndReturn(run func() error) *SMTPClient_Close_Call

type SMTPClient_Data_Call added in v1.15.1

type SMTPClient_Data_Call struct {
	*mock.Call
}

SMTPClient_Data_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Data'

func (*SMTPClient_Data_Call) Return added in v1.15.1

func (*SMTPClient_Data_Call) Run added in v1.15.1

func (_c *SMTPClient_Data_Call) Run(run func()) *SMTPClient_Data_Call

func (*SMTPClient_Data_Call) RunAndReturn added in v1.15.1

func (_c *SMTPClient_Data_Call) RunAndReturn(run func() (io.WriteCloser, error)) *SMTPClient_Data_Call

type SMTPClient_Expecter added in v1.15.1

type SMTPClient_Expecter struct {
	// contains filtered or unexported fields
}

func (*SMTPClient_Expecter) Auth added in v1.15.1

func (_e *SMTPClient_Expecter) Auth(a interface{}) *SMTPClient_Auth_Call

Auth is a helper method to define mock.On call

  • a smtp.Auth

func (*SMTPClient_Expecter) Close added in v1.15.1

Close is a helper method to define mock.On call

func (*SMTPClient_Expecter) Data added in v1.15.1

Data is a helper method to define mock.On call

func (*SMTPClient_Expecter) Extension added in v1.15.1

func (_e *SMTPClient_Expecter) Extension(ext interface{}) *SMTPClient_Extension_Call

Extension is a helper method to define mock.On call

  • ext string

func (*SMTPClient_Expecter) Hello added in v1.15.1

func (_e *SMTPClient_Expecter) Hello(localName interface{}) *SMTPClient_Hello_Call

Hello is a helper method to define mock.On call

  • localName string

func (*SMTPClient_Expecter) Mail added in v1.15.1

func (_e *SMTPClient_Expecter) Mail(from interface{}) *SMTPClient_Mail_Call

Mail is a helper method to define mock.On call

  • from string

func (*SMTPClient_Expecter) Noop added in v1.15.1

Noop is a helper method to define mock.On call

func (*SMTPClient_Expecter) Rcpt added in v1.15.1

func (_e *SMTPClient_Expecter) Rcpt(to interface{}) *SMTPClient_Rcpt_Call

Rcpt is a helper method to define mock.On call

  • to string

func (*SMTPClient_Expecter) StartTLS added in v1.15.1

func (_e *SMTPClient_Expecter) StartTLS(config interface{}) *SMTPClient_StartTLS_Call

StartTLS is a helper method to define mock.On call

  • config *tls.Config

type SMTPClient_Extension_Call added in v1.15.1

type SMTPClient_Extension_Call struct {
	*mock.Call
}

SMTPClient_Extension_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Extension'

func (*SMTPClient_Extension_Call) Return added in v1.15.1

func (*SMTPClient_Extension_Call) Run added in v1.15.1

func (*SMTPClient_Extension_Call) RunAndReturn added in v1.15.1

func (_c *SMTPClient_Extension_Call) RunAndReturn(run func(string) (bool, string)) *SMTPClient_Extension_Call

type SMTPClient_Hello_Call added in v1.15.1

type SMTPClient_Hello_Call struct {
	*mock.Call
}

SMTPClient_Hello_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Hello'

func (*SMTPClient_Hello_Call) Return added in v1.15.1

func (*SMTPClient_Hello_Call) Run added in v1.15.1

func (_c *SMTPClient_Hello_Call) Run(run func(localName string)) *SMTPClient_Hello_Call

func (*SMTPClient_Hello_Call) RunAndReturn added in v1.15.1

func (_c *SMTPClient_Hello_Call) RunAndReturn(run func(string) error) *SMTPClient_Hello_Call

type SMTPClient_Mail_Call added in v1.15.1

type SMTPClient_Mail_Call struct {
	*mock.Call
}

SMTPClient_Mail_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Mail'

func (*SMTPClient_Mail_Call) Return added in v1.15.1

func (*SMTPClient_Mail_Call) Run added in v1.15.1

func (_c *SMTPClient_Mail_Call) Run(run func(from string)) *SMTPClient_Mail_Call

func (*SMTPClient_Mail_Call) RunAndReturn added in v1.15.1

func (_c *SMTPClient_Mail_Call) RunAndReturn(run func(string) error) *SMTPClient_Mail_Call

type SMTPClient_Noop_Call added in v1.15.1

type SMTPClient_Noop_Call struct {
	*mock.Call
}

SMTPClient_Noop_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Noop'

func (*SMTPClient_Noop_Call) Return added in v1.15.1

func (*SMTPClient_Noop_Call) Run added in v1.15.1

func (_c *SMTPClient_Noop_Call) Run(run func()) *SMTPClient_Noop_Call

func (*SMTPClient_Noop_Call) RunAndReturn added in v1.15.1

func (_c *SMTPClient_Noop_Call) RunAndReturn(run func() error) *SMTPClient_Noop_Call

type SMTPClient_Rcpt_Call added in v1.15.1

type SMTPClient_Rcpt_Call struct {
	*mock.Call
}

SMTPClient_Rcpt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Rcpt'

func (*SMTPClient_Rcpt_Call) Return added in v1.15.1

func (*SMTPClient_Rcpt_Call) Run added in v1.15.1

func (_c *SMTPClient_Rcpt_Call) Run(run func(to string)) *SMTPClient_Rcpt_Call

func (*SMTPClient_Rcpt_Call) RunAndReturn added in v1.15.1

func (_c *SMTPClient_Rcpt_Call) RunAndReturn(run func(string) error) *SMTPClient_Rcpt_Call

type SMTPClient_StartTLS_Call added in v1.15.1

type SMTPClient_StartTLS_Call struct {
	*mock.Call
}

SMTPClient_StartTLS_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StartTLS'

func (*SMTPClient_StartTLS_Call) Return added in v1.15.1

func (*SMTPClient_StartTLS_Call) Run added in v1.15.1

func (_c *SMTPClient_StartTLS_Call) Run(run func(config *tls.Config)) *SMTPClient_StartTLS_Call

func (*SMTPClient_StartTLS_Call) RunAndReturn added in v1.15.1

func (_c *SMTPClient_StartTLS_Call) RunAndReturn(run func(*tls.Config) error) *SMTPClient_StartTLS_Call

type SendgridClient added in v1.15.0

type SendgridClient struct {
	mock.Mock
}

SendgridClient is an autogenerated mock type for the SendgridClient type

func NewSendgridClient added in v1.15.1

func NewSendgridClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *SendgridClient

NewSendgridClient creates a new instance of SendgridClient. 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 (*SendgridClient) EXPECT added in v1.15.1

func (*SendgridClient) Send added in v1.15.0

func (_m *SendgridClient) Send(email *mail.SGMailV3) (*rest.Response, error)

Send provides a mock function with given fields: email

type SendgridClient_Expecter added in v1.15.1

type SendgridClient_Expecter struct {
	// contains filtered or unexported fields
}

func (*SendgridClient_Expecter) Send added in v1.15.1

func (_e *SendgridClient_Expecter) Send(email interface{}) *SendgridClient_Send_Call

Send is a helper method to define mock.On call

  • email *mail.SGMailV3

type SendgridClient_Send_Call added in v1.15.1

type SendgridClient_Send_Call struct {
	*mock.Call
}

SendgridClient_Send_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Send'

func (*SendgridClient_Send_Call) Return added in v1.15.1

func (*SendgridClient_Send_Call) Run added in v1.15.1

func (*SendgridClient_Send_Call) RunAndReturn added in v1.15.1

Jump to

Keyboard shortcuts

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