mocks

package
v0.8.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Encryptor

type Encryptor struct {
	mock.Mock
}

Encryptor is an autogenerated mock type for the Encryptor type

func NewEncryptor

func NewEncryptor(t interface {
	mock.TestingT
	Cleanup(func())
}) *Encryptor

NewEncryptor creates a new instance of Encryptor. 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 (*Encryptor) Decrypt

Decrypt provides a mock function with given fields: str

func (*Encryptor) EXPECT

func (_m *Encryptor) EXPECT() *Encryptor_Expecter

func (*Encryptor) Encrypt

Encrypt provides a mock function with given fields: str

type Encryptor_Decrypt_Call

type Encryptor_Decrypt_Call struct {
	*mock.Call
}

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

func (*Encryptor_Decrypt_Call) Return

func (*Encryptor_Decrypt_Call) Run

func (*Encryptor_Decrypt_Call) RunAndReturn

type Encryptor_Encrypt_Call

type Encryptor_Encrypt_Call struct {
	*mock.Call
}

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

func (*Encryptor_Encrypt_Call) Return

func (*Encryptor_Encrypt_Call) Run

func (*Encryptor_Encrypt_Call) RunAndReturn

type Encryptor_Expecter

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

func (*Encryptor_Expecter) Decrypt

func (_e *Encryptor_Expecter) Decrypt(str interface{}) *Encryptor_Decrypt_Call

Decrypt is a helper method to define mock.On call

  • str secret.MaskableString

func (*Encryptor_Expecter) Encrypt

func (_e *Encryptor_Expecter) Encrypt(str interface{}) *Encryptor_Encrypt_Call

Encrypt is a helper method to define mock.On call

  • str secret.MaskableString

type LarkCaller

type LarkCaller struct {
	mock.Mock
}

LarkCaller is an autogenerated mock type for the LarkCaller type

func NewLarkCaller

func NewLarkCaller(t interface {
	mock.TestingT
	Cleanup(func())
}) *LarkCaller

NewLarkCaller creates a new instance of LarkCaller. 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 (*LarkCaller) EXPECT

func (_m *LarkCaller) EXPECT() *LarkCaller_Expecter

func (*LarkCaller) GetWorkspaceChannels

func (_m *LarkCaller) GetWorkspaceChannels(ctx context.Context, clientID secret.MaskableString, clientSecret secret.MaskableString) ([]lark.Channel, error)

GetWorkspaceChannels provides a mock function with given fields: ctx, clientID, clientSecret

func (*LarkCaller) Notify

func (_m *LarkCaller) Notify(ctx context.Context, conf lark.NotificationConfig, message lark.Message) error

Notify provides a mock function with given fields: ctx, conf, message

type LarkCaller_Expecter

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

func (*LarkCaller_Expecter) GetWorkspaceChannels

func (_e *LarkCaller_Expecter) GetWorkspaceChannels(ctx interface{}, clientID interface{}, clientSecret interface{}) *LarkCaller_GetWorkspaceChannels_Call

GetWorkspaceChannels is a helper method to define mock.On call

  • ctx context.Context
  • clientID secret.MaskableString
  • clientSecret secret.MaskableString

func (*LarkCaller_Expecter) Notify

func (_e *LarkCaller_Expecter) Notify(ctx interface{}, conf interface{}, message interface{}) *LarkCaller_Notify_Call

Notify is a helper method to define mock.On call

  • ctx context.Context
  • conf lark.NotificationConfig
  • message lark.Message

type LarkCaller_GetWorkspaceChannels_Call

type LarkCaller_GetWorkspaceChannels_Call struct {
	*mock.Call
}

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

func (*LarkCaller_GetWorkspaceChannels_Call) Return

func (*LarkCaller_GetWorkspaceChannels_Call) Run

type LarkCaller_Notify_Call

type LarkCaller_Notify_Call struct {
	*mock.Call
}

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

func (*LarkCaller_Notify_Call) Return

func (*LarkCaller_Notify_Call) Run

func (*LarkCaller_Notify_Call) RunAndReturn

Jump to

Keyboard shortcuts

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