mocks

package
v0.6.8-cortex Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: Apache-2.0 Imports: 5 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 added in v0.6.1

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 added in v0.6.1

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 GoSlackCaller

type GoSlackCaller struct {
	mock.Mock
}

GoSlackCaller is an autogenerated mock type for the GoSlackCaller type

func NewGoSlackCaller

func NewGoSlackCaller(t interface {
	mock.TestingT
	Cleanup(func())
}) *GoSlackCaller

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

func (_m *GoSlackCaller) EXPECT() *GoSlackCaller_Expecter

func (*GoSlackCaller) GetConversationsForUserContext

func (_m *GoSlackCaller) GetConversationsForUserContext(ctx context.Context, params *slack.GetConversationsForUserParameters) ([]slack.Channel, string, error)

GetConversationsForUserContext provides a mock function with given fields: ctx, params

func (*GoSlackCaller) GetUserByEmailContext

func (_m *GoSlackCaller) GetUserByEmailContext(ctx context.Context, email string) (*slack.User, error)

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

func (*GoSlackCaller) SendMessageContext

func (_m *GoSlackCaller) SendMessageContext(ctx context.Context, channel string, options ...slack.MsgOption) (string, string, string, error)

SendMessageContext provides a mock function with given fields: ctx, channel, options

type GoSlackCaller_Expecter

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

func (*GoSlackCaller_Expecter) GetConversationsForUserContext

func (_e *GoSlackCaller_Expecter) GetConversationsForUserContext(ctx interface{}, params interface{}) *GoSlackCaller_GetConversationsForUserContext_Call

GetConversationsForUserContext is a helper method to define mock.On call

  • ctx context.Context
  • params *slack.GetConversationsForUserParameters

func (*GoSlackCaller_Expecter) GetUserByEmailContext

func (_e *GoSlackCaller_Expecter) GetUserByEmailContext(ctx interface{}, email interface{}) *GoSlackCaller_GetUserByEmailContext_Call

GetUserByEmailContext is a helper method to define mock.On call

  • ctx context.Context
  • email string

func (*GoSlackCaller_Expecter) SendMessageContext

func (_e *GoSlackCaller_Expecter) SendMessageContext(ctx interface{}, channel interface{}, options ...interface{}) *GoSlackCaller_SendMessageContext_Call

SendMessageContext is a helper method to define mock.On call

  • ctx context.Context
  • channel string
  • options ...slack.MsgOption

type GoSlackCaller_GetConversationsForUserContext_Call

type GoSlackCaller_GetConversationsForUserContext_Call struct {
	*mock.Call
}

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

func (*GoSlackCaller_GetConversationsForUserContext_Call) Return

func (*GoSlackCaller_GetConversationsForUserContext_Call) Run

func (*GoSlackCaller_GetConversationsForUserContext_Call) RunAndReturn added in v0.6.1

type GoSlackCaller_GetUserByEmailContext_Call

type GoSlackCaller_GetUserByEmailContext_Call struct {
	*mock.Call
}

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

func (*GoSlackCaller_GetUserByEmailContext_Call) Return

func (*GoSlackCaller_GetUserByEmailContext_Call) Run

func (*GoSlackCaller_GetUserByEmailContext_Call) RunAndReturn added in v0.6.1

type GoSlackCaller_SendMessageContext_Call

type GoSlackCaller_SendMessageContext_Call struct {
	*mock.Call
}

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

func (*GoSlackCaller_SendMessageContext_Call) Return

func (*GoSlackCaller_SendMessageContext_Call) Run

func (*GoSlackCaller_SendMessageContext_Call) RunAndReturn added in v0.6.1

type SlackCaller

type SlackCaller struct {
	mock.Mock
}

SlackCaller is an autogenerated mock type for the SlackCaller type

func NewSlackCaller

func NewSlackCaller(t interface {
	mock.TestingT
	Cleanup(func())
}) *SlackCaller

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

func (_m *SlackCaller) EXPECT() *SlackCaller_Expecter

func (*SlackCaller) ExchangeAuth

func (_m *SlackCaller) ExchangeAuth(ctx context.Context, authCode string, clientID string, clientSecret string) (slack.Credential, error)

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

func (*SlackCaller) GetWorkspaceChannels

func (_m *SlackCaller) GetWorkspaceChannels(ctx context.Context, token secret.MaskableString) ([]slack.Channel, error)

GetWorkspaceChannels provides a mock function with given fields: ctx, token

func (*SlackCaller) Notify

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

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

type SlackCaller_ExchangeAuth_Call

type SlackCaller_ExchangeAuth_Call struct {
	*mock.Call
}

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

func (*SlackCaller_ExchangeAuth_Call) Return

func (*SlackCaller_ExchangeAuth_Call) Run

func (_c *SlackCaller_ExchangeAuth_Call) Run(run func(ctx context.Context, authCode string, clientID string, clientSecret string)) *SlackCaller_ExchangeAuth_Call

func (*SlackCaller_ExchangeAuth_Call) RunAndReturn added in v0.6.1

type SlackCaller_Expecter

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

func (*SlackCaller_Expecter) ExchangeAuth

func (_e *SlackCaller_Expecter) ExchangeAuth(ctx interface{}, authCode interface{}, clientID interface{}, clientSecret interface{}) *SlackCaller_ExchangeAuth_Call

ExchangeAuth is a helper method to define mock.On call

  • ctx context.Context
  • authCode string
  • clientID string
  • clientSecret string

func (*SlackCaller_Expecter) GetWorkspaceChannels

func (_e *SlackCaller_Expecter) GetWorkspaceChannels(ctx interface{}, token interface{}) *SlackCaller_GetWorkspaceChannels_Call

GetWorkspaceChannels is a helper method to define mock.On call

  • ctx context.Context
  • token secret.MaskableString

func (*SlackCaller_Expecter) Notify

func (_e *SlackCaller_Expecter) Notify(ctx interface{}, conf interface{}, message interface{}) *SlackCaller_Notify_Call

Notify is a helper method to define mock.On call

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

type SlackCaller_GetWorkspaceChannels_Call

type SlackCaller_GetWorkspaceChannels_Call struct {
	*mock.Call
}

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

func (*SlackCaller_GetWorkspaceChannels_Call) Return

func (*SlackCaller_GetWorkspaceChannels_Call) Run

func (*SlackCaller_GetWorkspaceChannels_Call) RunAndReturn added in v0.6.1

type SlackCaller_Notify_Call

type SlackCaller_Notify_Call struct {
	*mock.Call
}

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

func (*SlackCaller_Notify_Call) Return

func (*SlackCaller_Notify_Call) Run

func (*SlackCaller_Notify_Call) RunAndReturn added in v0.6.1

Jump to

Keyboard shortcuts

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