mocks

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 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 (*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) 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) OnAuth added in v1.13.2

func (_m *SMTPClient) OnAuth(a smtp.Auth) *SMTPClient_Auth

func (*SMTPClient) OnAuthMatch added in v1.13.2

func (_m *SMTPClient) OnAuthMatch(matchers ...interface{}) *SMTPClient_Auth

func (*SMTPClient) OnClose added in v1.13.2

func (_m *SMTPClient) OnClose() *SMTPClient_Close

func (*SMTPClient) OnCloseMatch added in v1.13.2

func (_m *SMTPClient) OnCloseMatch(matchers ...interface{}) *SMTPClient_Close

func (*SMTPClient) OnData added in v1.13.2

func (_m *SMTPClient) OnData() *SMTPClient_Data

func (*SMTPClient) OnDataMatch added in v1.13.2

func (_m *SMTPClient) OnDataMatch(matchers ...interface{}) *SMTPClient_Data

func (*SMTPClient) OnExtension added in v1.13.2

func (_m *SMTPClient) OnExtension(ext string) *SMTPClient_Extension

func (*SMTPClient) OnExtensionMatch added in v1.13.2

func (_m *SMTPClient) OnExtensionMatch(matchers ...interface{}) *SMTPClient_Extension

func (*SMTPClient) OnHello added in v1.13.2

func (_m *SMTPClient) OnHello(localName string) *SMTPClient_Hello

func (*SMTPClient) OnHelloMatch added in v1.13.2

func (_m *SMTPClient) OnHelloMatch(matchers ...interface{}) *SMTPClient_Hello

func (*SMTPClient) OnMail added in v1.13.2

func (_m *SMTPClient) OnMail(from string) *SMTPClient_Mail

func (*SMTPClient) OnMailMatch added in v1.13.2

func (_m *SMTPClient) OnMailMatch(matchers ...interface{}) *SMTPClient_Mail

func (*SMTPClient) OnNoop added in v1.13.2

func (_m *SMTPClient) OnNoop() *SMTPClient_Noop

func (*SMTPClient) OnNoopMatch added in v1.13.2

func (_m *SMTPClient) OnNoopMatch(matchers ...interface{}) *SMTPClient_Noop

func (*SMTPClient) OnRcpt added in v1.13.2

func (_m *SMTPClient) OnRcpt(to string) *SMTPClient_Rcpt

func (*SMTPClient) OnRcptMatch added in v1.13.2

func (_m *SMTPClient) OnRcptMatch(matchers ...interface{}) *SMTPClient_Rcpt

func (*SMTPClient) OnStartTLS added in v1.13.2

func (_m *SMTPClient) OnStartTLS(config *tls.Config) *SMTPClient_StartTLS

func (*SMTPClient) OnStartTLSMatch added in v1.13.2

func (_m *SMTPClient) OnStartTLSMatch(matchers ...interface{}) *SMTPClient_StartTLS

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

type SMTPClient_Auth struct {
	*mock.Call
}

func (SMTPClient_Auth) Return added in v1.13.2

func (_m SMTPClient_Auth) Return(_a0 error) *SMTPClient_Auth

type SMTPClient_Close added in v1.13.2

type SMTPClient_Close struct {
	*mock.Call
}

func (SMTPClient_Close) Return added in v1.13.2

func (_m SMTPClient_Close) Return(_a0 error) *SMTPClient_Close

type SMTPClient_Data added in v1.13.2

type SMTPClient_Data struct {
	*mock.Call
}

func (SMTPClient_Data) Return added in v1.13.2

func (_m SMTPClient_Data) Return(_a0 io.WriteCloser, _a1 error) *SMTPClient_Data

type SMTPClient_Extension added in v1.13.2

type SMTPClient_Extension struct {
	*mock.Call
}

func (SMTPClient_Extension) Return added in v1.13.2

type SMTPClient_Hello added in v1.13.2

type SMTPClient_Hello struct {
	*mock.Call
}

func (SMTPClient_Hello) Return added in v1.13.2

func (_m SMTPClient_Hello) Return(_a0 error) *SMTPClient_Hello

type SMTPClient_Mail added in v1.13.2

type SMTPClient_Mail struct {
	*mock.Call
}

func (SMTPClient_Mail) Return added in v1.13.2

func (_m SMTPClient_Mail) Return(_a0 error) *SMTPClient_Mail

type SMTPClient_Noop added in v1.13.2

type SMTPClient_Noop struct {
	*mock.Call
}

func (SMTPClient_Noop) Return added in v1.13.2

func (_m SMTPClient_Noop) Return(_a0 error) *SMTPClient_Noop

type SMTPClient_Rcpt added in v1.13.2

type SMTPClient_Rcpt struct {
	*mock.Call
}

func (SMTPClient_Rcpt) Return added in v1.13.2

func (_m SMTPClient_Rcpt) Return(_a0 error) *SMTPClient_Rcpt

type SMTPClient_StartTLS added in v1.13.2

type SMTPClient_StartTLS struct {
	*mock.Call
}

func (SMTPClient_StartTLS) Return added in v1.13.2

type SendgridClient added in v1.15.0

type SendgridClient struct {
	mock.Mock
}

SendgridClient is an autogenerated mock type for the SendgridClient type

func (*SendgridClient) OnSend added in v1.15.0

func (_m *SendgridClient) OnSend(email *mail.SGMailV3) *SendgridClient_Send

func (*SendgridClient) OnSendMatch added in v1.15.0

func (_m *SendgridClient) OnSendMatch(matchers ...interface{}) *SendgridClient_Send

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_Send added in v1.15.0

type SendgridClient_Send struct {
	*mock.Call
}

func (SendgridClient_Send) Return added in v1.15.0

Jump to

Keyboard shortcuts

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