mocks

package
v0.0.0-...-b1ea424 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Github

type Github struct {
	FakeCommitFiles []*github.CommitFile
	FakeResponse    *github.Response
	FakePullRequest *github.PullRequest
	FakeError       error
}

Github mocked

func (*Github) Get

func (g *Github) Get(ctx context.Context, owner string, repo string, number int) (*github.PullRequest, *github.Response, error)

Get mocked

func (*Github) ListFiles

func (g *Github) ListFiles(ctx context.Context, owner string, repo string, number int, options *github.ListOptions) ([]*github.CommitFile, *github.Response, error)

ListFiles mocked

type Sender

type Sender struct {
	FakePostMessageResponseChannel   string
	FakePostMessageResponseTimestamp string
	FakePostMessageResponseError     error
	Calls                            map[string]int
}

func (*Sender) PostMessage

func (s *Sender) PostMessage(channel, text string, params slack.PostMessageParameters) (string, string, error)

Jump to

Keyboard shortcuts

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