mocks

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2020 License: MIT Imports: 6 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, event slack.MessageEvent, expected url.Values)

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

func (*Client) GetQueue

func (_m *Client) GetQueue() (*gojenkins.Queue, error)

GetQueue provides a mock function with given fields:

type SlackClient

type SlackClient struct {
	mock.Mock
}

SlackClient is an autogenerated mock type for the SlackClient type

func (*SlackClient) AddReaction

func (_m *SlackClient) AddReaction(name string, item slack.ItemRef)

AddReaction provides a mock function with given fields: name, item

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(name string, item slack.ItemRef)

RemoveReaction provides a mock function with given fields: name, item

func (*SlackClient) Reply

func (_m *SlackClient) Reply(event slack.MessageEvent, text string, options ...slack.MsgOption)

Reply provides a mock function with given fields: event, text, options

func (*SlackClient) ReplyError

func (_m *SlackClient) ReplyError(event slack.MessageEvent, err error)

ReplyError provides a mock function with given fields: event, err

func (*SlackClient) SendMessage

func (_m *SlackClient) SendMessage(event slack.MessageEvent, text string, options ...slack.MsgOption) string

SendMessage provides a mock function with given fields: event, text, options

func (*SlackClient) SendToUser

func (_m *SlackClient) SendToUser(user string, text string) 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