mocks

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertSlackJSON added in v1.6.0

func AssertSlackJSON(t *testing.T, slackClient *SlackClient, message msg.Ref, expected url.Values)

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

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func (*Client) BuildJob

func (_m *Client) BuildJob(name string, options ...interface{}) (int64, error)

BuildJob provides a mock function with given fields: name, options

func (*Client) GetAllNodes

func (_m *Client) GetAllNodes() ([]*gojenkins.Node, error)

GetAllNodes provides a mock function with given fields:

func (*Client) GetJob

func (_m *Client) GetJob(id string, parentIDs ...string) (*gojenkins.Job, error)

GetJob provides a mock function with given fields: id, parentIDs

type SlackClient

type SlackClient struct {
	mock.Mock
}

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

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

func (_m *SlackClient) SendMessage(ref msg.Ref, text string, options ...slack.MsgOption) string

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

Jump to

Keyboard shortcuts

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