mocks

package
v0.17.7 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SlackSender

type SlackSender struct {
	mock.Mock
}

SlackSender is an autogenerated mock type for the SlackSender type

func NewSlackSender

func NewSlackSender(t interface {
	mock.TestingT
	Cleanup(func())
}) *SlackSender

NewSlackSender creates a new instance of SlackSender. 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 (*SlackSender) AuthTest added in v0.16.0

func (_m *SlackSender) AuthTest() (*slack.AuthTestResponse, error)

AuthTest provides a mock function with no fields

func (*SlackSender) EXPECT

func (_m *SlackSender) EXPECT() *SlackSender_Expecter

func (*SlackSender) GetConversations added in v0.16.0

func (_m *SlackSender) GetConversations(_a0 *slack.GetConversationsParameters) ([]slack.Channel, string, error)

GetConversations provides a mock function with given fields: _a0

func (*SlackSender) GetUsersInConversation added in v0.16.0

func (_m *SlackSender) GetUsersInConversation(params *slack.GetUsersInConversationParameters) ([]string, string, error)

GetUsersInConversation provides a mock function with given fields: params

func (*SlackSender) PostMessage added in v0.16.0

func (_m *SlackSender) PostMessage(_a0 string, _a1 ...slack.MsgOption) (string, string, error)

PostMessage provides a mock function with given fields: _a0, _a1

type SlackSender_AuthTest_Call added in v0.16.0

type SlackSender_AuthTest_Call struct {
	*mock.Call
}

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

func (*SlackSender_AuthTest_Call) Return added in v0.16.0

func (*SlackSender_AuthTest_Call) Run added in v0.16.0

func (*SlackSender_AuthTest_Call) RunAndReturn added in v0.16.0

type SlackSender_Expecter

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

func (*SlackSender_Expecter) AuthTest added in v0.16.0

AuthTest is a helper method to define mock.On call

func (*SlackSender_Expecter) GetConversations added in v0.16.0

func (_e *SlackSender_Expecter) GetConversations(_a0 interface{}) *SlackSender_GetConversations_Call

GetConversations is a helper method to define mock.On call

  • _a0 *slack.GetConversationsParameters

func (*SlackSender_Expecter) GetUsersInConversation added in v0.16.0

func (_e *SlackSender_Expecter) GetUsersInConversation(params interface{}) *SlackSender_GetUsersInConversation_Call

GetUsersInConversation is a helper method to define mock.On call

  • params *slack.GetUsersInConversationParameters

func (*SlackSender_Expecter) PostMessage added in v0.16.0

func (_e *SlackSender_Expecter) PostMessage(_a0 interface{}, _a1 ...interface{}) *SlackSender_PostMessage_Call

PostMessage is a helper method to define mock.On call

  • _a0 string
  • _a1 ...slack.MsgOption

type SlackSender_GetConversations_Call added in v0.16.0

type SlackSender_GetConversations_Call struct {
	*mock.Call
}

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

func (*SlackSender_GetConversations_Call) Return added in v0.16.0

func (*SlackSender_GetConversations_Call) Run added in v0.16.0

func (*SlackSender_GetConversations_Call) RunAndReturn added in v0.16.0

type SlackSender_GetUsersInConversation_Call added in v0.16.0

type SlackSender_GetUsersInConversation_Call struct {
	*mock.Call
}

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

func (*SlackSender_GetUsersInConversation_Call) Return added in v0.16.0

func (*SlackSender_GetUsersInConversation_Call) Run added in v0.16.0

func (*SlackSender_GetUsersInConversation_Call) RunAndReturn added in v0.16.0

type SlackSender_PostMessage_Call added in v0.16.0

type SlackSender_PostMessage_Call struct {
	*mock.Call
}

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

func (*SlackSender_PostMessage_Call) Return added in v0.16.0

func (*SlackSender_PostMessage_Call) Run added in v0.16.0

func (*SlackSender_PostMessage_Call) RunAndReturn added in v0.16.0

Jump to

Keyboard shortcuts

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