mocks

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 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

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

AuthTest provides a mock function for the type SlackSender

func (*SlackSender) EXPECT

func (_m *SlackSender) EXPECT() *SlackSender_Expecter

func (*SlackSender) GetConversations

func (_mock *SlackSender) GetConversations(getConversationsParameters *slack.GetConversationsParameters) ([]slack.Channel, string, error)

GetConversations provides a mock function for the type SlackSender

func (*SlackSender) GetUsersInConversation

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

GetUsersInConversation provides a mock function for the type SlackSender

func (*SlackSender) PostMessage

func (_mock *SlackSender) PostMessage(s string, msgOptions ...slack.MsgOption) (string, string, error)

PostMessage provides a mock function for the type SlackSender

type SlackSender_AuthTest_Call

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

func (*SlackSender_AuthTest_Call) Run

func (*SlackSender_AuthTest_Call) RunAndReturn

type SlackSender_Expecter

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

func (*SlackSender_Expecter) AuthTest

AuthTest is a helper method to define mock.On call

func (*SlackSender_Expecter) GetConversations

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

GetConversations is a helper method to define mock.On call

  • getConversationsParameters *slack.GetConversationsParameters

func (*SlackSender_Expecter) GetUsersInConversation

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

func (_e *SlackSender_Expecter) PostMessage(s interface{}, msgOptions ...interface{}) *SlackSender_PostMessage_Call

PostMessage is a helper method to define mock.On call

  • s string
  • msgOptions ...slack.MsgOption

type SlackSender_GetConversations_Call

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

func (*SlackSender_GetConversations_Call) Run

func (*SlackSender_GetConversations_Call) RunAndReturn

type SlackSender_GetUsersInConversation_Call

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

func (*SlackSender_GetUsersInConversation_Call) Run

func (*SlackSender_GetUsersInConversation_Call) RunAndReturn

type SlackSender_PostMessage_Call

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

func (*SlackSender_PostMessage_Call) Run

func (*SlackSender_PostMessage_Call) RunAndReturn

func (_c *SlackSender_PostMessage_Call) RunAndReturn(run func(s string, msgOptions ...slack.MsgOption) (string, string, error)) *SlackSender_PostMessage_Call

Jump to

Keyboard shortcuts

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