Documentation ¶
Index ¶
- Constants
- type MockClient
- func (c *MockClient) AddReviewers(ctx context.Context, pr *github.PullRequest, userIDs []string)
- func (c *MockClient) ClosePullRequest(ctx context.Context, pr *github.PullRequest)
- func (c *MockClient) CommentPullRequest(ctx context.Context, pr *github.PullRequest, comment string)
- func (c *MockClient) CreatePullRequest(ctx context.Context, gitcmd git.GitInterface, info *github.GitHubInfo, ...) *github.PullRequest
- func (c *MockClient) ExpectAddReviewers(userIDs []string)
- func (c *MockClient) ExpectClosePullRequest(commit git.Commit)
- func (c *MockClient) ExpectCommentPullRequest(commit git.Commit)
- func (c *MockClient) ExpectCreatePullRequest(commit git.Commit, prev *git.Commit)
- func (c *MockClient) ExpectGetAssignableUsers()
- func (c *MockClient) ExpectGetInfo()
- func (c *MockClient) ExpectMergePullRequest(commit git.Commit, mergeMethod genclient.PullRequestMergeMethod)
- func (c *MockClient) ExpectUpdatePullRequest(commit git.Commit, prev *git.Commit)
- func (c *MockClient) GetAssignableUsers(ctx context.Context) []github.RepoAssignee
- func (c *MockClient) GetInfo(ctx context.Context, gitcmd git.GitInterface) *github.GitHubInfo
- func (c *MockClient) MergePullRequest(ctx context.Context, pr *github.PullRequest, ...)
- func (c *MockClient) UpdatePullRequest(ctx context.Context, gitcmd git.GitInterface, ...)
Constants ¶
View Source
const ( NobodyUserID = "U_kgDOBb2UmA" NobodyLogin = "nobody" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClient ¶ added in v0.7.15
type MockClient struct { Info *github.GitHubInfo // contains filtered or unexported fields }
func NewMockClient ¶
func NewMockClient(t *testing.T) *MockClient
NewMockClient creates a new mock client
func (*MockClient) AddReviewers ¶ added in v0.8.2
func (c *MockClient) AddReviewers(ctx context.Context, pr *github.PullRequest, userIDs []string)
func (*MockClient) ClosePullRequest ¶ added in v0.7.15
func (c *MockClient) ClosePullRequest(ctx context.Context, pr *github.PullRequest)
func (*MockClient) CommentPullRequest ¶ added in v0.7.15
func (c *MockClient) CommentPullRequest(ctx context.Context, pr *github.PullRequest, comment string)
func (*MockClient) CreatePullRequest ¶ added in v0.7.15
func (c *MockClient) CreatePullRequest(ctx context.Context, gitcmd git.GitInterface, info *github.GitHubInfo, commit git.Commit, prevCommit *git.Commit) *github.PullRequest
func (*MockClient) ExpectAddReviewers ¶ added in v0.8.2
func (c *MockClient) ExpectAddReviewers(userIDs []string)
func (*MockClient) ExpectClosePullRequest ¶ added in v0.7.15
func (c *MockClient) ExpectClosePullRequest(commit git.Commit)
func (*MockClient) ExpectCommentPullRequest ¶ added in v0.7.15
func (c *MockClient) ExpectCommentPullRequest(commit git.Commit)
func (*MockClient) ExpectCreatePullRequest ¶ added in v0.7.15
func (c *MockClient) ExpectCreatePullRequest(commit git.Commit, prev *git.Commit)
func (*MockClient) ExpectGetAssignableUsers ¶ added in v0.8.2
func (c *MockClient) ExpectGetAssignableUsers()
func (*MockClient) ExpectGetInfo ¶ added in v0.7.15
func (c *MockClient) ExpectGetInfo()
func (*MockClient) ExpectMergePullRequest ¶ added in v0.7.15
func (c *MockClient) ExpectMergePullRequest(commit git.Commit, mergeMethod genclient.PullRequestMergeMethod)
func (*MockClient) ExpectUpdatePullRequest ¶ added in v0.7.15
func (c *MockClient) ExpectUpdatePullRequest(commit git.Commit, prev *git.Commit)
func (*MockClient) GetAssignableUsers ¶ added in v0.8.2
func (c *MockClient) GetAssignableUsers(ctx context.Context) []github.RepoAssignee
func (*MockClient) GetInfo ¶ added in v0.7.15
func (c *MockClient) GetInfo(ctx context.Context, gitcmd git.GitInterface) *github.GitHubInfo
func (*MockClient) MergePullRequest ¶ added in v0.7.15
func (c *MockClient) MergePullRequest(ctx context.Context, pr *github.PullRequest, mergeMethod genclient.PullRequestMergeMethod)
func (*MockClient) UpdatePullRequest ¶ added in v0.7.15
func (c *MockClient) UpdatePullRequest(ctx context.Context, gitcmd git.GitInterface, pullRequests []*github.PullRequest, pr *github.PullRequest, commit git.Commit, prevCommit *git.Commit)
Click to show internal directories.
Click to hide internal directories.