mocks

package
v0.0.0-...-fa25a67 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Issues

type Issues struct {
	mock.Mock
}

func (*Issues) AddLabelsToIssue

func (_m *Issues) AddLabelsToIssue(ctx context.Context, owner string, repo string, number int, labels []string) ([]*github.Label, *github.Response, error)

func (*Issues) CreateComment

func (_m *Issues) CreateComment(ctx context.Context, owner string, repo string, number int, comment *github.IssueComment) (*github.IssueComment, *github.Response, error)

func (*Issues) RemoveLabelForIssue

func (_m *Issues) RemoveLabelForIssue(ctx context.Context, owner string, repo string, number int, label string) (*github.Response, error)

type PullRequests

type PullRequests struct {
	mock.Mock
}

func (*PullRequests) Get

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

func (*PullRequests) ListCommits

func (_m *PullRequests) ListCommits(ctx context.Context, owner string, repo string, number int, opt *github.ListOptions) ([]*github.RepositoryCommit, *github.Response, error)

func (*PullRequests) Merge

func (_m *PullRequests) Merge(ctx context.Context, owner string, repo string, number int, commitMessage string, opt *github.PullRequestOptions) (*github.PullRequestMergeResult, *github.Response, error)

type Repo

type Repo struct {
	mock.Mock
}

func (*Repo) AutosquashAndPush

func (_m *Repo) AutosquashAndPush(upstreamRef string, branchRef string, destinationRef string) error

func (*Repo) DeleteRemoteBranch

func (_m *Repo) DeleteRemoteBranch(remoteRef string) error

func (*Repo) Fetch

func (_m *Repo) Fetch() error

type Repos

type Repos struct {
	mock.Mock
}

func (*Repos) GetUpdatedRepo

func (_m *Repos) GetUpdatedRepo(url string, repoOwner string, repoName string) (git.Repo, error)

type Repositories

type Repositories struct {
	mock.Mock
}

func (*Repositories) CreateStatus

func (_m *Repositories) CreateStatus(ctx context.Context, owner string, repo string, ref string, status *github.RepoStatus) (*github.RepoStatus, *github.Response, error)

func (*Repositories) GetCombinedStatus

func (_m *Repositories) GetCombinedStatus(ctx context.Context, owner string, repo string, ref string, opt *github.ListOptions) (*github.CombinedStatus, *github.Response, error)

func (*Repositories) IsCollaborator

func (_m *Repositories) IsCollaborator(ctx context.Context, owner string, repo string, user string) (bool, *github.Response, error)
type Search struct {
	mock.Mock
}

func (*Search) Issues

Jump to

Keyboard shortcuts

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