Documentation
¶
Index ¶
- type SlackSender
- func (_mock *SlackSender) AuthTest() (*slack.AuthTestResponse, error)
- func (_m *SlackSender) EXPECT() *SlackSender_Expecter
- func (_mock *SlackSender) GetConversations(getConversationsParameters *slack.GetConversationsParameters) ([]slack.Channel, string, error)
- func (_mock *SlackSender) GetUsersInConversation(params *slack.GetUsersInConversationParameters) ([]string, string, error)
- func (_mock *SlackSender) PostMessage(s string, msgOptions ...slack.MsgOption) (string, string, error)
- type SlackSender_AuthTest_Call
- func (_c *SlackSender_AuthTest_Call) Return(authTestResponse *slack.AuthTestResponse, err error) *SlackSender_AuthTest_Call
- func (_c *SlackSender_AuthTest_Call) Run(run func()) *SlackSender_AuthTest_Call
- func (_c *SlackSender_AuthTest_Call) RunAndReturn(run func() (*slack.AuthTestResponse, error)) *SlackSender_AuthTest_Call
- type SlackSender_Expecter
- func (_e *SlackSender_Expecter) AuthTest() *SlackSender_AuthTest_Call
- func (_e *SlackSender_Expecter) GetConversations(getConversationsParameters interface{}) *SlackSender_GetConversations_Call
- func (_e *SlackSender_Expecter) GetUsersInConversation(params interface{}) *SlackSender_GetUsersInConversation_Call
- func (_e *SlackSender_Expecter) PostMessage(s interface{}, msgOptions ...interface{}) *SlackSender_PostMessage_Call
- type SlackSender_GetConversations_Call
- func (_c *SlackSender_GetConversations_Call) Return(channels []slack.Channel, s string, err error) *SlackSender_GetConversations_Call
- func (_c *SlackSender_GetConversations_Call) Run(run func(getConversationsParameters *slack.GetConversationsParameters)) *SlackSender_GetConversations_Call
- func (_c *SlackSender_GetConversations_Call) RunAndReturn(...) *SlackSender_GetConversations_Call
- type SlackSender_GetUsersInConversation_Call
- func (_c *SlackSender_GetUsersInConversation_Call) Return(strings []string, s string, err error) *SlackSender_GetUsersInConversation_Call
- func (_c *SlackSender_GetUsersInConversation_Call) Run(run func(params *slack.GetUsersInConversationParameters)) *SlackSender_GetUsersInConversation_Call
- func (_c *SlackSender_GetUsersInConversation_Call) RunAndReturn(...) *SlackSender_GetUsersInConversation_Call
- type SlackSender_PostMessage_Call
- func (_c *SlackSender_PostMessage_Call) Return(s1 string, s2 string, err error) *SlackSender_PostMessage_Call
- func (_c *SlackSender_PostMessage_Call) Run(run func(s string, msgOptions ...slack.MsgOption)) *SlackSender_PostMessage_Call
- func (_c *SlackSender_PostMessage_Call) RunAndReturn(run func(s string, msgOptions ...slack.MsgOption) (string, string, error)) *SlackSender_PostMessage_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SlackSender ¶
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 ¶
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 (_c *SlackSender_AuthTest_Call) Return(authTestResponse *slack.AuthTestResponse, err error) *SlackSender_AuthTest_Call
func (*SlackSender_AuthTest_Call) Run ¶
func (_c *SlackSender_AuthTest_Call) Run(run func()) *SlackSender_AuthTest_Call
func (*SlackSender_AuthTest_Call) RunAndReturn ¶
func (_c *SlackSender_AuthTest_Call) RunAndReturn(run func() (*slack.AuthTestResponse, error)) *SlackSender_AuthTest_Call
type SlackSender_Expecter ¶
type SlackSender_Expecter struct {
// contains filtered or unexported fields
}
func (*SlackSender_Expecter) AuthTest ¶
func (_e *SlackSender_Expecter) AuthTest() *SlackSender_AuthTest_Call
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 ¶
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 (_c *SlackSender_GetConversations_Call) Return(channels []slack.Channel, s string, err error) *SlackSender_GetConversations_Call
func (*SlackSender_GetConversations_Call) Run ¶
func (_c *SlackSender_GetConversations_Call) Run(run func(getConversationsParameters *slack.GetConversationsParameters)) *SlackSender_GetConversations_Call
func (*SlackSender_GetConversations_Call) RunAndReturn ¶
func (_c *SlackSender_GetConversations_Call) RunAndReturn(run func(getConversationsParameters *slack.GetConversationsParameters) ([]slack.Channel, string, error)) *SlackSender_GetConversations_Call
type SlackSender_GetUsersInConversation_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 (_c *SlackSender_GetUsersInConversation_Call) Return(strings []string, s string, err error) *SlackSender_GetUsersInConversation_Call
func (*SlackSender_GetUsersInConversation_Call) Run ¶
func (_c *SlackSender_GetUsersInConversation_Call) Run(run func(params *slack.GetUsersInConversationParameters)) *SlackSender_GetUsersInConversation_Call
func (*SlackSender_GetUsersInConversation_Call) RunAndReturn ¶
func (_c *SlackSender_GetUsersInConversation_Call) RunAndReturn(run func(params *slack.GetUsersInConversationParameters) ([]string, string, error)) *SlackSender_GetUsersInConversation_Call
type SlackSender_PostMessage_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 (_c *SlackSender_PostMessage_Call) Return(s1 string, s2 string, err error) *SlackSender_PostMessage_Call
func (*SlackSender_PostMessage_Call) Run ¶
func (_c *SlackSender_PostMessage_Call) Run(run func(s string, msgOptions ...slack.MsgOption)) *SlackSender_PostMessage_Call
func (*SlackSender_PostMessage_Call) RunAndReturn ¶
func (_c *SlackSender_PostMessage_Call) RunAndReturn(run func(s string, msgOptions ...slack.MsgOption) (string, string, error)) *SlackSender_PostMessage_Call