mocks

package
v0.0.0-...-a4b4531 Latest Latest
Warning

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

Go to latest
Published: May 18, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFakeGitHubClient

func NewFakeGitHubClient(httpClient *http.Client) *prtagbuilder.GitHubClient

Types

type GithubPullRequestsService

type GithubPullRequestsService struct {
	mock.Mock
}

githubPullRequestsService is an autogenerated mock type for the githubPullRequestsService type

func (GithubPullRequestsService) Get

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

type GithubRepoService

type GithubRepoService struct {
	mock.Mock
}

githubRepoService is an autogenerated mock type for the githubRepoService type

func (GithubRepoService) GetBranch

func (_m GithubRepoService) GetBranch(ctx context.Context, owner string, repo string, branch string) (*github.Branch, *github.Response, error)

GetBranch provides a mock function with given fields: ctx, owner, repo, branch

func (GithubRepoService) GetCommit

func (_m GithubRepoService) GetCommit(ctx context.Context, owner string, repo string, sha string) (*github.RepositoryCommit, *github.Response, error)

GetCommit provides a mock function with given fields: ctx, owner, repo, sha

Jump to

Keyboard shortcuts

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