mocks

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoSlackCaller

type GoSlackCaller struct {
	mock.Mock
}

GoSlackCaller is an autogenerated mock type for the GoSlackCaller type

func NewGoSlackCaller

func NewGoSlackCaller(t mockConstructorTestingTNewGoSlackCaller) *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.

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

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

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

Jump to

Keyboard shortcuts

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