fakegithub

package
v0.0.0-...-5666d16 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2017 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeClient

type FakeClient struct {
	Issues             []github.Issue
	OrgMembers         []string
	IssueComments      map[int][]github.IssueComment
	IssueCommentID     int
	PullRequests       map[int]*github.PullRequest
	PullRequestChanges map[int][]github.PullRequestChange

	// org/repo#number:label
	LabelsAdded   []string
	LabelsRemoved []string
}

func (*FakeClient) AddLabel

func (f *FakeClient) AddLabel(owner, repo string, number int, label string) error

func (*FakeClient) CreateComment

func (f *FakeClient) CreateComment(owner, repo string, number int, comment string) error

func (*FakeClient) CreateStatus

func (f *FakeClient) CreateStatus(owner, repo, ref string, s github.Status) error

func (*FakeClient) DeleteComment

func (f *FakeClient) DeleteComment(owner, repo string, ID int) error

func (*FakeClient) FindIssues

func (f *FakeClient) FindIssues(query string) ([]github.Issue, error)

func (*FakeClient) GetPullRequest

func (f *FakeClient) GetPullRequest(owner, repo string, number int) (*github.PullRequest, error)

func (*FakeClient) GetPullRequestChanges

func (f *FakeClient) GetPullRequestChanges(pr github.PullRequest) ([]github.PullRequestChange, error)

func (*FakeClient) GetRef

func (f *FakeClient) GetRef(owner, repo, ref string) (string, error)

func (*FakeClient) IsMember

func (f *FakeClient) IsMember(org, user string) (bool, error)

func (*FakeClient) ListIssueComments

func (f *FakeClient) ListIssueComments(owner, repo string, number int) ([]github.IssueComment, error)

func (*FakeClient) RemoveLabel

func (f *FakeClient) RemoveLabel(owner, repo string, number int, label string) error

Jump to

Keyboard shortcuts

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