Documentation ¶
Overview ¶
Package mock_github is a generated GoMock package.
Package mock_github is a generated GoMock package.
Index ¶
- type MockClient
- func (m *MockClient) Client() *github0.Client
- func (m *MockClient) Comment(ctx context.Context, event *github.GenericRequestEvent, message string) (int64, error)
- func (m *MockClient) EXPECT() *MockClientMockRecorder
- func (m *MockClient) GetConfig(name string, obj any) error
- func (m *MockClient) GetContent(ctx context.Context, event *github.GenericRequestEvent, path string) ([]byte, error)
- func (m *MockClient) GetHead(ctx context.Context, event *github.GenericRequestEvent) (string, error)
- func (m *MockClient) GetIssue(event *github.GenericRequestEvent) (*github0.Issue, error)
- func (m *MockClient) GetPullRequest(ctx context.Context, event *github.GenericRequestEvent) (*github0.PullRequest, error)
- func (m *MockClient) GetRawConfig(name string) (json.RawMessage, error)
- func (m *MockClient) GetVersions(owner, repo string) ([]*semver.Version, error)
- func (m *MockClient) IsAuthorized(authorizationType github.AuthorizationType, event *github.GenericRequestEvent) bool
- func (m *MockClient) ResolveConfigValue(ctx context.Context, event *github.GenericRequestEvent, ...) (string, error)
- func (m *MockClient) UpdateComment(event *github.GenericRequestEvent, commentID int64, message string) error
- func (m *MockClient) UpdateStatus(ctx context.Context, event *github.GenericRequestEvent, state github.State, ...) error
- type MockClientMockRecorder
- func (mr *MockClientMockRecorder) Client() *gomock.Call
- func (mr *MockClientMockRecorder) Comment(ctx, event, message any) *gomock.Call
- func (mr *MockClientMockRecorder) GetConfig(name, obj any) *gomock.Call
- func (mr *MockClientMockRecorder) GetContent(ctx, event, path any) *gomock.Call
- func (mr *MockClientMockRecorder) GetHead(ctx, event any) *gomock.Call
- func (mr *MockClientMockRecorder) GetIssue(event any) *gomock.Call
- func (mr *MockClientMockRecorder) GetPullRequest(ctx, event any) *gomock.Call
- func (mr *MockClientMockRecorder) GetRawConfig(name any) *gomock.Call
- func (mr *MockClientMockRecorder) GetVersions(owner, repo any) *gomock.Call
- func (mr *MockClientMockRecorder) IsAuthorized(authorizationType, event any) *gomock.Call
- func (mr *MockClientMockRecorder) ResolveConfigValue(ctx, event, value any) *gomock.Call
- func (mr *MockClientMockRecorder) UpdateComment(event, commentID, message any) *gomock.Call
- func (mr *MockClientMockRecorder) UpdateStatus(ctx, event, state, statusContext, description any) *gomock.Call
- type MockManager
- type MockManagerMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClient ¶
type MockClient struct {
// contains filtered or unexported fields
}
MockClient is a mock of Client interface.
func NewMockClient ¶
func NewMockClient(ctrl *gomock.Controller) *MockClient
NewMockClient creates a new mock instance.
func (*MockClient) Comment ¶
func (m *MockClient) Comment(ctx context.Context, event *github.GenericRequestEvent, message string) (int64, error)
Comment mocks base method.
func (*MockClient) EXPECT ¶
func (m *MockClient) EXPECT() *MockClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockClient) GetConfig ¶
func (m *MockClient) GetConfig(name string, obj any) error
GetConfig mocks base method.
func (*MockClient) GetContent ¶
func (m *MockClient) GetContent(ctx context.Context, event *github.GenericRequestEvent, path string) ([]byte, error)
GetContent mocks base method.
func (*MockClient) GetHead ¶
func (m *MockClient) GetHead(ctx context.Context, event *github.GenericRequestEvent) (string, error)
GetHead mocks base method.
func (*MockClient) GetIssue ¶
func (m *MockClient) GetIssue(event *github.GenericRequestEvent) (*github0.Issue, error)
GetIssue mocks base method.
func (*MockClient) GetPullRequest ¶
func (m *MockClient) GetPullRequest(ctx context.Context, event *github.GenericRequestEvent) (*github0.PullRequest, error)
GetPullRequest mocks base method.
func (*MockClient) GetRawConfig ¶
func (m *MockClient) GetRawConfig(name string) (json.RawMessage, error)
GetRawConfig mocks base method.
func (*MockClient) GetVersions ¶
func (m *MockClient) GetVersions(owner, repo string) ([]*semver.Version, error)
GetVersions mocks base method.
func (*MockClient) IsAuthorized ¶
func (m *MockClient) IsAuthorized(authorizationType github.AuthorizationType, event *github.GenericRequestEvent) bool
IsAuthorized mocks base method.
func (*MockClient) ResolveConfigValue ¶
func (m *MockClient) ResolveConfigValue(ctx context.Context, event *github.GenericRequestEvent, value *ghval.GitHubValue) (string, error)
ResolveConfigValue mocks base method.
func (*MockClient) UpdateComment ¶
func (m *MockClient) UpdateComment(event *github.GenericRequestEvent, commentID int64, message string) error
UpdateComment mocks base method.
func (*MockClient) UpdateStatus ¶
func (m *MockClient) UpdateStatus(ctx context.Context, event *github.GenericRequestEvent, state github.State, statusContext, description string) error
UpdateStatus mocks base method.
type MockClientMockRecorder ¶
type MockClientMockRecorder struct {
// contains filtered or unexported fields
}
MockClientMockRecorder is the mock recorder for MockClient.
func (*MockClientMockRecorder) Client ¶
func (mr *MockClientMockRecorder) Client() *gomock.Call
Client indicates an expected call of Client.
func (*MockClientMockRecorder) Comment ¶
func (mr *MockClientMockRecorder) Comment(ctx, event, message any) *gomock.Call
Comment indicates an expected call of Comment.
func (*MockClientMockRecorder) GetConfig ¶
func (mr *MockClientMockRecorder) GetConfig(name, obj any) *gomock.Call
GetConfig indicates an expected call of GetConfig.
func (*MockClientMockRecorder) GetContent ¶
func (mr *MockClientMockRecorder) GetContent(ctx, event, path any) *gomock.Call
GetContent indicates an expected call of GetContent.
func (*MockClientMockRecorder) GetHead ¶
func (mr *MockClientMockRecorder) GetHead(ctx, event any) *gomock.Call
GetHead indicates an expected call of GetHead.
func (*MockClientMockRecorder) GetIssue ¶
func (mr *MockClientMockRecorder) GetIssue(event any) *gomock.Call
GetIssue indicates an expected call of GetIssue.
func (*MockClientMockRecorder) GetPullRequest ¶
func (mr *MockClientMockRecorder) GetPullRequest(ctx, event any) *gomock.Call
GetPullRequest indicates an expected call of GetPullRequest.
func (*MockClientMockRecorder) GetRawConfig ¶
func (mr *MockClientMockRecorder) GetRawConfig(name any) *gomock.Call
GetRawConfig indicates an expected call of GetRawConfig.
func (*MockClientMockRecorder) GetVersions ¶
func (mr *MockClientMockRecorder) GetVersions(owner, repo any) *gomock.Call
GetVersions indicates an expected call of GetVersions.
func (*MockClientMockRecorder) IsAuthorized ¶
func (mr *MockClientMockRecorder) IsAuthorized(authorizationType, event any) *gomock.Call
IsAuthorized indicates an expected call of IsAuthorized.
func (*MockClientMockRecorder) ResolveConfigValue ¶
func (mr *MockClientMockRecorder) ResolveConfigValue(ctx, event, value any) *gomock.Call
ResolveConfigValue indicates an expected call of ResolveConfigValue.
func (*MockClientMockRecorder) UpdateComment ¶
func (mr *MockClientMockRecorder) UpdateComment(event, commentID, message any) *gomock.Call
UpdateComment indicates an expected call of UpdateComment.
func (*MockClientMockRecorder) UpdateStatus ¶
func (mr *MockClientMockRecorder) UpdateStatus(ctx, event, state, statusContext, description any) *gomock.Call
UpdateStatus indicates an expected call of UpdateStatus.
type MockManager ¶
type MockManager struct {
// contains filtered or unexported fields
}
MockManager is a mock of Manager interface
func NewMockManager ¶
func NewMockManager(ctrl *gomock.Controller) *MockManager
NewMockManager creates a new mock instance
func (*MockManager) EXPECT ¶
func (m *MockManager) EXPECT() *MockManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockManager) GetClient ¶
func (m *MockManager) GetClient(arg0 *github.GenericRequestEvent) (github.Client, error)
GetClient mocks base method
type MockManagerMockRecorder ¶
type MockManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockManagerMockRecorder is the mock recorder for MockManager
func (*MockManagerMockRecorder) GetClient ¶
func (mr *MockManagerMockRecorder) GetClient(arg0 interface{}) *gomock.Call
GetClient indicates an expected call of GetClient