Documentation
¶
Index ¶
- func AssertSlackJSON(t *testing.T, slackClient *SlackClient, message msg.Ref, expected url.Values)
- func AssertSlackMessage(slackClient *SlackClient, ref msg.Ref, text string)
- type Client
- type SlackClient
- func (_m *SlackClient) AddReaction(reaction string, ref msg.Ref)
- func (_m *SlackClient) GetConversationHistory(_a0 *slack.GetConversationHistoryParameters) (*slack.GetConversationHistoryResponse, error)
- func (_m *SlackClient) GetReactions(item slack.ItemRef, params slack.GetReactionsParameters) ([]slack.ItemReaction, error)
- func (_m *SlackClient) RemoveReaction(reaction string, ref msg.Ref)
- func (_m *SlackClient) ReplyError(ref msg.Ref, err error)
- func (_m *SlackClient) SendMessage(ref msg.Ref, text string, options ...slack.MsgOption) string
- func (_m *SlackClient) SendToUser(user string, text string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertSlackJSON ¶ added in v1.6.0
AssertSlackJSON is a test helper to assert full slack attachments
func AssertSlackMessage ¶ added in v1.6.4
func AssertSlackMessage(slackClient *SlackClient, ref msg.Ref, text string)
Types ¶
type Client ¶
Client is an autogenerated mock type for the Client type
func (*Client) GetAllNodes ¶
GetAllNodes provides a mock function with given fields:
type SlackClient ¶
SlackClient is an autogenerated mock type for the SlackClient type
func (*SlackClient) AddReaction ¶
func (_m *SlackClient) AddReaction(reaction string, ref msg.Ref)
AddReaction provides a mock function with given fields: reaction, ref
func (*SlackClient) GetConversationHistory ¶ added in v1.6.4
func (_m *SlackClient) GetConversationHistory(_a0 *slack.GetConversationHistoryParameters) (*slack.GetConversationHistoryResponse, error)
GetConversationHistory provides a mock function with given fields: _a0
func (*SlackClient) GetReactions ¶
func (_m *SlackClient) GetReactions(item slack.ItemRef, params slack.GetReactionsParameters) ([]slack.ItemReaction, error)
GetReactions provides a mock function with given fields: item, params
func (*SlackClient) RemoveReaction ¶
func (_m *SlackClient) RemoveReaction(reaction string, ref msg.Ref)
RemoveReaction provides a mock function with given fields: reaction, ref
func (*SlackClient) ReplyError ¶
func (_m *SlackClient) ReplyError(ref msg.Ref, err error)
ReplyError provides a mock function with given fields: ref, err
func (*SlackClient) SendMessage ¶
SendMessage provides a mock function with given fields: ref, text, options
func (*SlackClient) SendToUser ¶
func (_m *SlackClient) SendToUser(user string, text string)
SendToUser provides a mock function with given fields: user, text