mocks

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SlackClient

type SlackClient struct {
	mock.Mock
}

SlackClient is an autogenerated mock type for the SlackClient type

func NewSlackClient

func NewSlackClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *SlackClient

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

func (_m *SlackClient) EXPECT() *SlackClient_Expecter

func (*SlackClient) GetChannels

func (_m *SlackClient) GetChannels() ([]string, error)

GetChannels provides a mock function with given fields:

func (*SlackClient) GetMessage

func (_m *SlackClient) GetMessage() chan *slack.MessageEvent

GetMessage provides a mock function with given fields:

func (*SlackClient) GetUserID

func (_m *SlackClient) GetUserID() (string, error)

GetUserID provides a mock function with given fields:

func (*SlackClient) Run

func (_m *SlackClient) Run(_a0 context.Context)

Run provides a mock function with given fields: _a0

func (*SlackClient) Send

func (_m *SlackClient) Send(channelID string, attachments []slack.Attachment) error

Send provides a mock function with given fields: channelID, attachments

type SlackClient_Expecter

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

func (*SlackClient_Expecter) GetChannels

GetChannels is a helper method to define mock.On call

func (*SlackClient_Expecter) GetMessage

GetMessage is a helper method to define mock.On call

func (*SlackClient_Expecter) GetUserID

GetUserID is a helper method to define mock.On call

func (*SlackClient_Expecter) Run

func (_e *SlackClient_Expecter) Run(_a0 interface{}) *SlackClient_Run_Call

Run is a helper method to define mock.On call

  • _a0 context.Context

func (*SlackClient_Expecter) Send

func (_e *SlackClient_Expecter) Send(channelID interface{}, attachments interface{}) *SlackClient_Send_Call

Send is a helper method to define mock.On call

  • channelID string
  • attachments []slack.Attachment

type SlackClient_GetChannels_Call

type SlackClient_GetChannels_Call struct {
	*mock.Call
}

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

func (*SlackClient_GetChannels_Call) Return

func (*SlackClient_GetChannels_Call) Run

func (*SlackClient_GetChannels_Call) RunAndReturn

func (_c *SlackClient_GetChannels_Call) RunAndReturn(run func() ([]string, error)) *SlackClient_GetChannels_Call

type SlackClient_GetMessage_Call

type SlackClient_GetMessage_Call struct {
	*mock.Call
}

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

func (*SlackClient_GetMessage_Call) Return

func (*SlackClient_GetMessage_Call) Run

func (*SlackClient_GetMessage_Call) RunAndReturn

func (_c *SlackClient_GetMessage_Call) RunAndReturn(run func() chan *slack.MessageEvent) *SlackClient_GetMessage_Call

type SlackClient_GetUserID_Call

type SlackClient_GetUserID_Call struct {
	*mock.Call
}

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

func (*SlackClient_GetUserID_Call) Return

func (*SlackClient_GetUserID_Call) Run

func (*SlackClient_GetUserID_Call) RunAndReturn

func (_c *SlackClient_GetUserID_Call) RunAndReturn(run func() (string, error)) *SlackClient_GetUserID_Call

type SlackClient_Run_Call

type SlackClient_Run_Call struct {
	*mock.Call
}

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

func (*SlackClient_Run_Call) Return

func (*SlackClient_Run_Call) Run

func (_c *SlackClient_Run_Call) Run(run func(_a0 context.Context)) *SlackClient_Run_Call

func (*SlackClient_Run_Call) RunAndReturn

func (_c *SlackClient_Run_Call) RunAndReturn(run func(context.Context)) *SlackClient_Run_Call

type SlackClient_Send_Call

type SlackClient_Send_Call struct {
	*mock.Call
}

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

func (*SlackClient_Send_Call) Return

func (*SlackClient_Send_Call) Run

func (_c *SlackClient_Send_Call) Run(run func(channelID string, attachments []slack.Attachment)) *SlackClient_Send_Call

func (*SlackClient_Send_Call) RunAndReturn

func (_c *SlackClient_Send_Call) RunAndReturn(run func(string, []slack.Attachment) error) *SlackClient_Send_Call

Jump to

Keyboard shortcuts

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