gitlabmock

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package gitlabmock is a generated GoMock package.

Index

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

func (m *MockAPI) AddMergeRequestLabels(labels *[]string, mergeRequest int) (gitlab.Labels, error)

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

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.

Jump to

Keyboard shortcuts

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