mocks

package
v0.0.0-...-8fb4044 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IssuesService

type IssuesService struct {
	mock.Mock
}

IssuesService is an autogenerated mock type for the IssuesService type

func (*IssuesService) AddAssignees

func (_m *IssuesService) AddAssignees(owner string, repo string, number int, assignees []string) (*github.Issue, *github.Response, error)

AddAssignees provides a mock function with given fields: owner, repo, number, assignees

func (*IssuesService) AddLabelsToIssue

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

AddLabelsToIssue provides a mock function with given fields: owner, repo, number, labels

func (*IssuesService) CreateComment

func (_m *IssuesService) CreateComment(owner string, repo string, number int, comment *github.IssueComment) (*github.IssueComment, *github.Response, error)

CreateComment provides a mock function with given fields: owner, repo, number, comment

func (*IssuesService) DeleteComment

func (_m *IssuesService) DeleteComment(owner string, repo string, id int) (*github.Response, error)

DeleteComment provides a mock function with given fields: owner, repo, id

func (*IssuesService) Edit

func (_m *IssuesService) Edit(owner string, repo string, number int, issue *github.IssueRequest) (*github.Issue, *github.Response, error)

Edit provides a mock function with given fields: owner, repo, number, issue

func (*IssuesService) Get

func (_m *IssuesService) Get(owner string, repo string, number int) (*github.Issue, *github.Response, error)

Get provides a mock function with given fields: owner, repo, number

func (*IssuesService) ListByRepo

func (_m *IssuesService) ListByRepo(owner string, repo string, opt *github.IssueListByRepoOptions) ([]*github.Issue, *github.Response, error)

ListByRepo provides a mock function with given fields: owner, repo, opt

func (*IssuesService) ListComments

func (_m *IssuesService) ListComments(owner string, repo string, number int, opt *github.IssueListCommentsOptions) ([]*github.IssueComment, *github.Response, error)

ListComments provides a mock function with given fields: owner, repo, number, opt

func (*IssuesService) ListMilestones

func (_m *IssuesService) ListMilestones(owner string, repo string, opt *github.MilestoneListOptions) ([]*github.Milestone, *github.Response, error)

ListMilestones provides a mock function with given fields: owner, repo, opt

func (*IssuesService) RemoveLabelForIssue

func (_m *IssuesService) RemoveLabelForIssue(owner string, repo string, number int, label string) (*github.Response, error)

RemoveLabelForIssue provides a mock function with given fields: owner, repo, number, label

type PullRequestsService

type PullRequestsService struct {
	mock.Mock
}

PullRequestsService is an autogenerated mock type for the PullRequestsService type

func (*PullRequestsService) Get

func (_m *PullRequestsService) Get(owner string, repo string, number int) (*github.PullRequest, *github.Response, error)

Get provides a mock function with given fields: owner, repo, number

func (*PullRequestsService) List

List provides a mock function with given fields: owner, repo, opt

func (*PullRequestsService) ListCommits

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

ListCommits provides a mock function with given fields: owner, repo, number, opt

func (*PullRequestsService) ListFiles

func (_m *PullRequestsService) ListFiles(owner string, repo string, number int, opt *github.ListOptions) ([]*github.CommitFile, *github.Response, error)

ListFiles provides a mock function with given fields: owner, repo, number, opt

type RepositoriesService

type RepositoriesService struct {
	mock.Mock
}

RepositoriesService is an autogenerated mock type for the RepositoriesService type

func (*RepositoriesService) CreateStatus

func (_m *RepositoriesService) CreateStatus(owner string, repo string, ref string, sts *github.RepoStatus) (*github.RepoStatus, *github.Response, error)

CreateStatus provides a mock function with given fields: owner, repo, ref, sts

func (*RepositoriesService) ListStatuses

func (_m *RepositoriesService) ListStatuses(owner string, repo string, ref string, opt *github.ListOptions) ([]*github.RepoStatus, *github.Response, error)

ListStatuses provides a mock function with given fields: owner, repo, ref, opt

type SearchService

type SearchService struct {
	mock.Mock
}

SearchService is an autogenerated mock type for the SearchService type

func (*SearchService) Issues

Issues provides a mock function with given fields: query, opt

Jump to

Keyboard shortcuts

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