Documentation
¶
Overview ¶
Package gitlabmock is a generated GoMock package.
Index ¶
- type MockAPI
- func (m *MockAPI) AddMergeRequestLabels(labels *[]string, mergeRequest int) (gitlab.Labels, error)
- func (m *MockAPI) CreateMergeRequestNote(mergeRequest int, opt *gitlab.CreateMergeRequestNoteOptions, ...) (*gitlab.Note, *gitlab.Response, error)
- func (m *MockAPI) EXPECT() *MockAPIMockRecorder
- func (m *MockAPI) GetCommit(sha string, options ...gitlab.RequestOptionFunc) (*gitlab.Commit, *gitlab.Response, error)
- func (m *MockAPI) GetLabel(labelName string, options ...gitlab.RequestOptionFunc) (*gitlab.Label, *gitlab.Response, error)
- func (m *MockAPI) GetMergeRequest(mergeRequest int, opt *gitlab.GetMergeRequestsOptions, ...) (*gitlab.MergeRequest, *gitlab.Response, error)
- func (m *MockAPI) ListMergeRequestLabels(mergeRequest int, opt *gitlab.GetMergeRequestsOptions, ...) (gitlab.Labels, error)
- func (m *MockAPI) ListMergeRequestNotes(mergeRequest int, opt *gitlab.ListMergeRequestNotesOptions, ...) ([]*gitlab.Note, *gitlab.Response, error)
- func (m *MockAPI) ListMergeRequestsByCommit(sha string, options ...gitlab.RequestOptionFunc) ([]*gitlab.MergeRequest, *gitlab.Response, error)
- func (m *MockAPI) PostCommitComment(sha string, opt *gitlab.PostCommitCommentOptions, ...) (*gitlab.CommitComment, *gitlab.Response, error)
- func (m *MockAPI) RemoveMergeRequestLabels(labels *[]string, mergeRequest int) (gitlab.Labels, error)
- func (m *MockAPI) UpdateLabel(opt *gitlab.UpdateLabelOptions, options ...gitlab.RequestOptionFunc) (*gitlab.Label, *gitlab.Response, error)
- func (m *MockAPI) UpdateMergeRequest(mergeRequest int, opt *gitlab.UpdateMergeRequestOptions, ...) (*gitlab.MergeRequest, *gitlab.Response, error)
- func (m *MockAPI) UpdateMergeRequestNote(mergeRequest, note int, opt *gitlab.UpdateMergeRequestNoteOptions, ...) (*gitlab.Note, *gitlab.Response, error)
- type MockAPIMockRecorder
- func (mr *MockAPIMockRecorder) AddMergeRequestLabels(labels, mergeRequest any) *gomock.Call
- func (mr *MockAPIMockRecorder) CreateMergeRequestNote(mergeRequest, opt any, options ...any) *gomock.Call
- func (mr *MockAPIMockRecorder) GetCommit(sha any, options ...any) *gomock.Call
- func (mr *MockAPIMockRecorder) GetLabel(labelName any, options ...any) *gomock.Call
- func (mr *MockAPIMockRecorder) GetMergeRequest(mergeRequest, opt any, options ...any) *gomock.Call
- func (mr *MockAPIMockRecorder) ListMergeRequestLabels(mergeRequest, opt any, options ...any) *gomock.Call
- func (mr *MockAPIMockRecorder) ListMergeRequestNotes(mergeRequest, opt any, options ...any) *gomock.Call
- func (mr *MockAPIMockRecorder) ListMergeRequestsByCommit(sha any, options ...any) *gomock.Call
- func (mr *MockAPIMockRecorder) PostCommitComment(sha, opt any, options ...any) *gomock.Call
- func (mr *MockAPIMockRecorder) RemoveMergeRequestLabels(labels, mergeRequest any) *gomock.Call
- func (mr *MockAPIMockRecorder) UpdateLabel(opt any, options ...any) *gomock.Call
- func (mr *MockAPIMockRecorder) UpdateMergeRequest(mergeRequest, opt any, options ...any) *gomock.Call
- func (mr *MockAPIMockRecorder) UpdateMergeRequestNote(mergeRequest, note, opt any, options ...any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAPI ¶
type MockAPI struct {
// contains filtered or unexported fields
}
MockAPI is a mock of API interface.
func NewMockAPI ¶
func NewMockAPI(ctrl *gomock.Controller) *MockAPI
NewMockAPI creates a new mock instance.
func (*MockAPI) AddMergeRequestLabels ¶
AddMergeRequestLabels mocks base method.
func (*MockAPI) CreateMergeRequestNote ¶
func (m *MockAPI) CreateMergeRequestNote(mergeRequest int, opt *gitlab.CreateMergeRequestNoteOptions, options ...gitlab.RequestOptionFunc) (*gitlab.Note, *gitlab.Response, error)
CreateMergeRequestNote mocks base method.
func (*MockAPI) EXPECT ¶
func (m *MockAPI) EXPECT() *MockAPIMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAPI) GetCommit ¶
func (m *MockAPI) GetCommit(sha string, options ...gitlab.RequestOptionFunc) (*gitlab.Commit, *gitlab.Response, error)
GetCommit mocks base method.
func (*MockAPI) GetLabel ¶
func (m *MockAPI) GetLabel(labelName string, options ...gitlab.RequestOptionFunc) (*gitlab.Label, *gitlab.Response, error)
GetLabel mocks base method.
func (*MockAPI) GetMergeRequest ¶
func (m *MockAPI) GetMergeRequest(mergeRequest int, opt *gitlab.GetMergeRequestsOptions, options ...gitlab.RequestOptionFunc) (*gitlab.MergeRequest, *gitlab.Response, error)
GetMergeRequest mocks base method.
func (*MockAPI) ListMergeRequestLabels ¶
func (m *MockAPI) ListMergeRequestLabels(mergeRequest int, opt *gitlab.GetMergeRequestsOptions, options ...gitlab.RequestOptionFunc) (gitlab.Labels, error)
ListMergeRequestLabels mocks base method.
func (*MockAPI) ListMergeRequestNotes ¶
func (m *MockAPI) ListMergeRequestNotes(mergeRequest int, opt *gitlab.ListMergeRequestNotesOptions, options ...gitlab.RequestOptionFunc) ([]*gitlab.Note, *gitlab.Response, error)
ListMergeRequestNotes mocks base method.
func (*MockAPI) ListMergeRequestsByCommit ¶
func (m *MockAPI) ListMergeRequestsByCommit(sha string, options ...gitlab.RequestOptionFunc) ([]*gitlab.MergeRequest, *gitlab.Response, error)
ListMergeRequestsByCommit mocks base method.
func (*MockAPI) PostCommitComment ¶
func (m *MockAPI) PostCommitComment(sha string, opt *gitlab.PostCommitCommentOptions, options ...gitlab.RequestOptionFunc) (*gitlab.CommitComment, *gitlab.Response, error)
PostCommitComment mocks base method.
func (*MockAPI) RemoveMergeRequestLabels ¶
func (m *MockAPI) RemoveMergeRequestLabels(labels *[]string, mergeRequest int) (gitlab.Labels, error)
RemoveMergeRequestLabels mocks base method.
func (*MockAPI) UpdateLabel ¶
func (m *MockAPI) UpdateLabel(opt *gitlab.UpdateLabelOptions, options ...gitlab.RequestOptionFunc) (*gitlab.Label, *gitlab.Response, error)
UpdateLabel mocks base method.
func (*MockAPI) UpdateMergeRequest ¶
func (m *MockAPI) UpdateMergeRequest(mergeRequest int, opt *gitlab.UpdateMergeRequestOptions, options ...gitlab.RequestOptionFunc) (*gitlab.MergeRequest, *gitlab.Response, error)
UpdateMergeRequest mocks base method.
func (*MockAPI) UpdateMergeRequestNote ¶
func (m *MockAPI) UpdateMergeRequestNote(mergeRequest, note int, opt *gitlab.UpdateMergeRequestNoteOptions, options ...gitlab.RequestOptionFunc) (*gitlab.Note, *gitlab.Response, error)
UpdateMergeRequestNote mocks base method.
type MockAPIMockRecorder ¶
type MockAPIMockRecorder struct {
// contains filtered or unexported fields
}
MockAPIMockRecorder is the mock recorder for MockAPI.
func (*MockAPIMockRecorder) AddMergeRequestLabels ¶
func (mr *MockAPIMockRecorder) AddMergeRequestLabels(labels, mergeRequest any) *gomock.Call
AddMergeRequestLabels indicates an expected call of AddMergeRequestLabels.
func (*MockAPIMockRecorder) CreateMergeRequestNote ¶
func (mr *MockAPIMockRecorder) CreateMergeRequestNote(mergeRequest, opt any, options ...any) *gomock.Call
CreateMergeRequestNote indicates an expected call of CreateMergeRequestNote.
func (*MockAPIMockRecorder) GetCommit ¶
func (mr *MockAPIMockRecorder) GetCommit(sha any, options ...any) *gomock.Call
GetCommit indicates an expected call of GetCommit.
func (*MockAPIMockRecorder) GetLabel ¶
func (mr *MockAPIMockRecorder) GetLabel(labelName any, options ...any) *gomock.Call
GetLabel indicates an expected call of GetLabel.
func (*MockAPIMockRecorder) GetMergeRequest ¶
func (mr *MockAPIMockRecorder) GetMergeRequest(mergeRequest, opt any, options ...any) *gomock.Call
GetMergeRequest indicates an expected call of GetMergeRequest.
func (*MockAPIMockRecorder) ListMergeRequestLabels ¶
func (mr *MockAPIMockRecorder) ListMergeRequestLabels(mergeRequest, opt any, options ...any) *gomock.Call
ListMergeRequestLabels indicates an expected call of ListMergeRequestLabels.
func (*MockAPIMockRecorder) ListMergeRequestNotes ¶
func (mr *MockAPIMockRecorder) ListMergeRequestNotes(mergeRequest, opt any, options ...any) *gomock.Call
ListMergeRequestNotes indicates an expected call of ListMergeRequestNotes.
func (*MockAPIMockRecorder) ListMergeRequestsByCommit ¶
func (mr *MockAPIMockRecorder) ListMergeRequestsByCommit(sha any, options ...any) *gomock.Call
ListMergeRequestsByCommit indicates an expected call of ListMergeRequestsByCommit.
func (*MockAPIMockRecorder) PostCommitComment ¶
func (mr *MockAPIMockRecorder) PostCommitComment(sha, opt any, options ...any) *gomock.Call
PostCommitComment indicates an expected call of PostCommitComment.
func (*MockAPIMockRecorder) RemoveMergeRequestLabels ¶
func (mr *MockAPIMockRecorder) RemoveMergeRequestLabels(labels, mergeRequest any) *gomock.Call
RemoveMergeRequestLabels indicates an expected call of RemoveMergeRequestLabels.
func (*MockAPIMockRecorder) UpdateLabel ¶
func (mr *MockAPIMockRecorder) UpdateLabel(opt any, options ...any) *gomock.Call
UpdateLabel indicates an expected call of UpdateLabel.
func (*MockAPIMockRecorder) UpdateMergeRequest ¶
func (mr *MockAPIMockRecorder) UpdateMergeRequest(mergeRequest, opt any, options ...any) *gomock.Call
UpdateMergeRequest indicates an expected call of UpdateMergeRequest.
func (*MockAPIMockRecorder) UpdateMergeRequestNote ¶
func (mr *MockAPIMockRecorder) UpdateMergeRequestNote(mergeRequest, note, opt any, options ...any) *gomock.Call
UpdateMergeRequestNote indicates an expected call of UpdateMergeRequestNote.