Documentation
¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- type MockActions
- func (m *MockActions) DeleteArtifact(ctx context.Context, owner, repo string, artifactID int64) (*github.Response, error)
- func (m *MockActions) DownloadArtifact(ctx context.Context, owner, repo string, artifactID int64, maxRedirects int) (*url.URL, *github.Response, error)
- func (m *MockActions) EXPECT() *MockActionsMockRecorder
- func (m *MockActions) ListArtifacts(ctx context.Context, owner, repo string, opts *github.ListArtifactsOptions) (*github.ArtifactList, *github.Response, error)
- type MockActionsMockRecorder
- type MockGraphQL
- type MockGraphQLMockRecorder
- type MockIssues
- func (m *MockIssues) AddLabelsToIssue(ctx context.Context, owner, repo string, number int, labels []string) ([]*github.Label, *github.Response, error)
- func (m *MockIssues) CreateComment(ctx context.Context, owner, repo string, number int, ...) (*github.IssueComment, *github.Response, error)
- func (m *MockIssues) CreateLabel(ctx context.Context, owner, resp string, label *github.Label) (*github.Label, *github.Response, error)
- func (m *MockIssues) DeleteLabel(ctx context.Context, owner, repo, name string) (*github.Response, error)
- func (m *MockIssues) EXPECT() *MockIssuesMockRecorder
- func (m *MockIssues) GetLabel(ctx context.Context, owner, repo, name string) (*github.Label, *github.Response, error)
- type MockIssuesMockRecorder
- func (mr *MockIssuesMockRecorder) AddLabelsToIssue(ctx, owner, repo, number, labels any) *gomock.Call
- func (mr *MockIssuesMockRecorder) CreateComment(ctx, owner, repo, number, comment any) *gomock.Call
- func (mr *MockIssuesMockRecorder) CreateLabel(ctx, owner, resp, label any) *gomock.Call
- func (mr *MockIssuesMockRecorder) DeleteLabel(ctx, owner, repo, name any) *gomock.Call
- func (mr *MockIssuesMockRecorder) GetLabel(ctx, owner, repo, name any) *gomock.Call
- type MockPullRequests
- func (m *MockPullRequests) EXPECT() *MockPullRequestsMockRecorder
- func (m *MockPullRequests) Get(ctx context.Context, owner, repo string, number int) (*github.PullRequest, *github.Response, error)
- func (m *MockPullRequests) List(ctx context.Context, owner, repo string, opts *github.PullRequestListOptions) ([]*github.PullRequest, *github.Response, error)
- func (m *MockPullRequests) ListFiles(ctx context.Context, owner, repo string, number int, opts *github.ListOptions) ([]*github.CommitFile, *github.Response, error)
- func (m *MockPullRequests) ListReviews(ctx context.Context, owner, repo string, number int, opts *github.ListOptions) ([]*github.PullRequestReview, *github.Response, error)
- type MockPullRequestsMockRecorder
- func (mr *MockPullRequestsMockRecorder) Get(ctx, owner, repo, number any) *gomock.Call
- func (mr *MockPullRequestsMockRecorder) List(ctx, owner, repo, opts any) *gomock.Call
- func (mr *MockPullRequestsMockRecorder) ListFiles(ctx, owner, repo, number, opts any) *gomock.Call
- func (mr *MockPullRequestsMockRecorder) ListReviews(ctx, owner, repo, number, opts any) *gomock.Call
- type MockReactions
- type MockReactionsMockRecorder
- type MockRepositories
- type MockRepositoriesMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockActions ¶
type MockActions struct {
// contains filtered or unexported fields
}
MockActions is a mock of Actions interface.
func NewMockActions ¶
func NewMockActions(ctrl *gomock.Controller) *MockActions
NewMockActions creates a new mock instance.
func (*MockActions) DeleteArtifact ¶
func (m *MockActions) DeleteArtifact(ctx context.Context, owner, repo string, artifactID int64) (*github.Response, error)
DeleteArtifact mocks base method.
func (*MockActions) DownloadArtifact ¶
func (m *MockActions) DownloadArtifact(ctx context.Context, owner, repo string, artifactID int64, maxRedirects int) (*url.URL, *github.Response, error)
DownloadArtifact mocks base method.
func (*MockActions) EXPECT ¶
func (m *MockActions) EXPECT() *MockActionsMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockActions) ListArtifacts ¶
func (m *MockActions) ListArtifacts(ctx context.Context, owner, repo string, opts *github.ListArtifactsOptions) (*github.ArtifactList, *github.Response, error)
ListArtifacts mocks base method.
type MockActionsMockRecorder ¶
type MockActionsMockRecorder struct {
// contains filtered or unexported fields
}
MockActionsMockRecorder is the mock recorder for MockActions.
func (*MockActionsMockRecorder) DeleteArtifact ¶
func (mr *MockActionsMockRecorder) DeleteArtifact(ctx, owner, repo, artifactID any) *gomock.Call
DeleteArtifact indicates an expected call of DeleteArtifact.
func (*MockActionsMockRecorder) DownloadArtifact ¶
func (mr *MockActionsMockRecorder) DownloadArtifact(ctx, owner, repo, artifactID, maxRedirects any) *gomock.Call
DownloadArtifact indicates an expected call of DownloadArtifact.
func (*MockActionsMockRecorder) ListArtifacts ¶
func (mr *MockActionsMockRecorder) ListArtifacts(ctx, owner, repo, opts any) *gomock.Call
ListArtifacts indicates an expected call of ListArtifacts.
type MockGraphQL ¶
type MockGraphQL struct {
// contains filtered or unexported fields
}
MockGraphQL is a mock of GraphQL interface.
func NewMockGraphQL ¶
func NewMockGraphQL(ctrl *gomock.Controller) *MockGraphQL
NewMockGraphQL creates a new mock instance.
func (*MockGraphQL) EXPECT ¶
func (m *MockGraphQL) EXPECT() *MockGraphQLMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockGraphQLMockRecorder ¶
type MockGraphQLMockRecorder struct {
// contains filtered or unexported fields
}
MockGraphQLMockRecorder is the mock recorder for MockGraphQL.
type MockIssues ¶
type MockIssues struct {
// contains filtered or unexported fields
}
MockIssues is a mock of Issues interface.
func NewMockIssues ¶
func NewMockIssues(ctrl *gomock.Controller) *MockIssues
NewMockIssues creates a new mock instance.
func (*MockIssues) AddLabelsToIssue ¶
func (m *MockIssues) AddLabelsToIssue(ctx context.Context, owner, repo string, number int, labels []string) ([]*github.Label, *github.Response, error)
AddLabelsToIssue mocks base method.
func (*MockIssues) CreateComment ¶
func (m *MockIssues) CreateComment(ctx context.Context, owner, repo string, number int, comment *github.IssueComment) (*github.IssueComment, *github.Response, error)
CreateComment mocks base method.
func (*MockIssues) CreateLabel ¶
func (m *MockIssues) CreateLabel(ctx context.Context, owner, resp string, label *github.Label) (*github.Label, *github.Response, error)
CreateLabel mocks base method.
func (*MockIssues) DeleteLabel ¶
func (m *MockIssues) DeleteLabel(ctx context.Context, owner, repo, name string) (*github.Response, error)
DeleteLabel mocks base method.
func (*MockIssues) EXPECT ¶
func (m *MockIssues) EXPECT() *MockIssuesMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockIssuesMockRecorder ¶
type MockIssuesMockRecorder struct {
// contains filtered or unexported fields
}
MockIssuesMockRecorder is the mock recorder for MockIssues.
func (*MockIssuesMockRecorder) AddLabelsToIssue ¶
func (mr *MockIssuesMockRecorder) AddLabelsToIssue(ctx, owner, repo, number, labels any) *gomock.Call
AddLabelsToIssue indicates an expected call of AddLabelsToIssue.
func (*MockIssuesMockRecorder) CreateComment ¶
func (mr *MockIssuesMockRecorder) CreateComment(ctx, owner, repo, number, comment any) *gomock.Call
CreateComment indicates an expected call of CreateComment.
func (*MockIssuesMockRecorder) CreateLabel ¶
func (mr *MockIssuesMockRecorder) CreateLabel(ctx, owner, resp, label any) *gomock.Call
CreateLabel indicates an expected call of CreateLabel.
func (*MockIssuesMockRecorder) DeleteLabel ¶
func (mr *MockIssuesMockRecorder) DeleteLabel(ctx, owner, repo, name any) *gomock.Call
DeleteLabel indicates an expected call of DeleteLabel.
type MockPullRequests ¶
type MockPullRequests struct {
// contains filtered or unexported fields
}
MockPullRequests is a mock of PullRequests interface.
func NewMockPullRequests ¶
func NewMockPullRequests(ctrl *gomock.Controller) *MockPullRequests
NewMockPullRequests creates a new mock instance.
func (*MockPullRequests) EXPECT ¶
func (m *MockPullRequests) EXPECT() *MockPullRequestsMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPullRequests) Get ¶
func (m *MockPullRequests) Get(ctx context.Context, owner, repo string, number int) (*github.PullRequest, *github.Response, error)
Get mocks base method.
func (*MockPullRequests) List ¶
func (m *MockPullRequests) List(ctx context.Context, owner, repo string, opts *github.PullRequestListOptions) ([]*github.PullRequest, *github.Response, error)
List mocks base method.
func (*MockPullRequests) ListFiles ¶
func (m *MockPullRequests) ListFiles(ctx context.Context, owner, repo string, number int, opts *github.ListOptions) ([]*github.CommitFile, *github.Response, error)
ListFiles mocks base method.
func (*MockPullRequests) ListReviews ¶
func (m *MockPullRequests) ListReviews(ctx context.Context, owner, repo string, number int, opts *github.ListOptions) ([]*github.PullRequestReview, *github.Response, error)
ListReviews mocks base method.
type MockPullRequestsMockRecorder ¶
type MockPullRequestsMockRecorder struct {
// contains filtered or unexported fields
}
MockPullRequestsMockRecorder is the mock recorder for MockPullRequests.
func (*MockPullRequestsMockRecorder) Get ¶
func (mr *MockPullRequestsMockRecorder) Get(ctx, owner, repo, number any) *gomock.Call
Get indicates an expected call of Get.
func (*MockPullRequestsMockRecorder) List ¶
func (mr *MockPullRequestsMockRecorder) List(ctx, owner, repo, opts any) *gomock.Call
List indicates an expected call of List.
func (*MockPullRequestsMockRecorder) ListFiles ¶
func (mr *MockPullRequestsMockRecorder) ListFiles(ctx, owner, repo, number, opts any) *gomock.Call
ListFiles indicates an expected call of ListFiles.
func (*MockPullRequestsMockRecorder) ListReviews ¶
func (mr *MockPullRequestsMockRecorder) ListReviews(ctx, owner, repo, number, opts any) *gomock.Call
ListReviews indicates an expected call of ListReviews.
type MockReactions ¶
type MockReactions struct {
// contains filtered or unexported fields
}
MockReactions is a mock of Reactions interface.
func NewMockReactions ¶
func NewMockReactions(ctrl *gomock.Controller) *MockReactions
NewMockReactions creates a new mock instance.
func (*MockReactions) CreateIssueCommentReaction ¶
func (m *MockReactions) CreateIssueCommentReaction(ctx context.Context, owner, repo string, commentID int64, content string) (*github.Reaction, *github.Response, error)
CreateIssueCommentReaction mocks base method.
func (*MockReactions) EXPECT ¶
func (m *MockReactions) EXPECT() *MockReactionsMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockReactionsMockRecorder ¶
type MockReactionsMockRecorder struct {
// contains filtered or unexported fields
}
MockReactionsMockRecorder is the mock recorder for MockReactions.
func (*MockReactionsMockRecorder) CreateIssueCommentReaction ¶
func (mr *MockReactionsMockRecorder) CreateIssueCommentReaction(ctx, owner, repo, commentID, content any) *gomock.Call
CreateIssueCommentReaction indicates an expected call of CreateIssueCommentReaction.
type MockRepositories ¶
type MockRepositories struct {
// contains filtered or unexported fields
}
MockRepositories is a mock of Repositories interface.
func NewMockRepositories ¶
func NewMockRepositories(ctrl *gomock.Controller) *MockRepositories
NewMockRepositories creates a new mock instance.
func (*MockRepositories) CreateStatus ¶
func (m *MockRepositories) CreateStatus(ctx context.Context, owner, repo, ref string, status *github.RepoStatus) (*github.RepoStatus, *github.Response, error)
CreateStatus mocks base method.
func (*MockRepositories) EXPECT ¶
func (m *MockRepositories) EXPECT() *MockRepositoriesMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockRepositoriesMockRecorder ¶
type MockRepositoriesMockRecorder struct {
// contains filtered or unexported fields
}
MockRepositoriesMockRecorder is the mock recorder for MockRepositories.
func (*MockRepositoriesMockRecorder) CreateStatus ¶
func (mr *MockRepositoriesMockRecorder) CreateStatus(ctx, owner, repo, ref, status any) *gomock.Call
CreateStatus indicates an expected call of CreateStatus.