// Code generated by MockGen. DO NOT EDIT. // Source: github.com/mattermost/mattermost-plugin-gitlab/server/gitlab (interfaces: Gitlab) // Package mock_gitlab is a generated GoMock package. package mock_gitlab import ( context "context" reflect "reflect" gomock "github.com/golang/mock/gomock" gitlab "github.com/mattermost/mattermost-plugin-gitlab/server/gitlab" logger "github.com/mattermost/mattermost/server/public/pluginapi/experimental/bot/logger" gitlab0 "github.com/xanzy/go-gitlab" oauth2 "golang.org/x/oauth2" ) // MockGitlab is a mock of Gitlab interface. type MockGitlab struct { ctrl *gomock.Controller recorder *MockGitlabMockRecorder } // MockGitlabMockRecorder is the mock recorder for MockGitlab. type MockGitlabMockRecorder struct { mock *MockGitlab } // NewMockGitlab creates a new mock instance. func NewMockGitlab(ctrl *gomock.Controller) *MockGitlab { mock := &MockGitlab{ctrl: ctrl} mock.recorder = &MockGitlabMockRecorder{mock} return mock } // EXPECT returns an object that allows the caller to indicate expected use. func (m *MockGitlab) EXPECT() *MockGitlabMockRecorder { return m.recorder } // GetCurrentUser mocks base method. func (m *MockGitlab) GetCurrentUser(arg0 context.Context, arg1 string, arg2 oauth2.Token) (*gitlab.UserInfo, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetCurrentUser", arg0, arg1, arg2) ret0, _ := ret[0].(*gitlab.UserInfo) ret1, _ := ret[1].(error) return ret0, ret1 } // GetCurrentUser indicates an expected call of GetCurrentUser. func (mr *MockGitlabMockRecorder) GetCurrentUser(arg0, arg1, arg2 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCurrentUser", reflect.TypeOf((*MockGitlab)(nil).GetCurrentUser), arg0, arg1, arg2) } // GetGroupHooks mocks base method. func (m *MockGitlab) GetGroupHooks(arg0 context.Context, arg1 *gitlab.UserInfo, arg2 *oauth2.Token, arg3 string) ([]*gitlab.WebhookInfo, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetGroupHooks", arg0, arg1, arg2, arg3) ret0, _ := ret[0].([]*gitlab.WebhookInfo) ret1, _ := ret[1].(error) return ret0, ret1 } // GetGroupHooks indicates an expected call of GetGroupHooks. func (mr *MockGitlabMockRecorder) GetGroupHooks(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetGroupHooks", reflect.TypeOf((*MockGitlab)(nil).GetGroupHooks), arg0, arg1, arg2, arg3) } // GetIssueByID mocks base method. func (m *MockGitlab) GetIssueByID(arg0 context.Context, arg1 *gitlab.UserInfo, arg2, arg3 string, arg4 int, arg5 *oauth2.Token) (*gitlab.Issue, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetIssueByID", arg0, arg1, arg2, arg3, arg4, arg5) ret0, _ := ret[0].(*gitlab.Issue) ret1, _ := ret[1].(error) return ret0, ret1 } // GetIssueByID indicates an expected call of GetIssueByID. func (mr *MockGitlabMockRecorder) GetIssueByID(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetIssueByID", reflect.TypeOf((*MockGitlab)(nil).GetIssueByID), arg0, arg1, arg2, arg3, arg4, arg5) } // GetLHSData mocks base method. func (m *MockGitlab) GetLHSData(arg0 context.Context, arg1 *gitlab.UserInfo, arg2 *oauth2.Token) (*gitlab.LHSContent, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetLHSData", arg0, arg1, arg2) ret0, _ := ret[0].(*gitlab.LHSContent) ret1, _ := ret[1].(error) return ret0, ret1 } // GetLHSData indicates an expected call of GetLHSData. func (mr *MockGitlabMockRecorder) GetLHSData(arg0, arg1, arg2 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLHSData", reflect.TypeOf((*MockGitlab)(nil).GetLHSData), arg0, arg1, arg2) } // GetMergeRequestByID mocks base method. func (m *MockGitlab) GetMergeRequestByID(arg0 context.Context, arg1 *gitlab.UserInfo, arg2, arg3 string, arg4 int, arg5 *oauth2.Token) (*gitlab.MergeRequest, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetMergeRequestByID", arg0, arg1, arg2, arg3, arg4, arg5) ret0, _ := ret[0].(*gitlab.MergeRequest) ret1, _ := ret[1].(error) return ret0, ret1 } // GetMergeRequestByID indicates an expected call of GetMergeRequestByID. func (mr *MockGitlabMockRecorder) GetMergeRequestByID(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMergeRequestByID", reflect.TypeOf((*MockGitlab)(nil).GetMergeRequestByID), arg0, arg1, arg2, arg3, arg4, arg5) } // GetProject mocks base method. func (m *MockGitlab) GetProject(arg0 context.Context, arg1 *gitlab.UserInfo, arg2 *oauth2.Token, arg3, arg4 string) (*gitlab0.Project, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetProject", arg0, arg1, arg2, arg3, arg4) ret0, _ := ret[0].(*gitlab0.Project) ret1, _ := ret[1].(error) return ret0, ret1 } // GetProject indicates an expected call of GetProject. func (mr *MockGitlabMockRecorder) GetProject(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetProject", reflect.TypeOf((*MockGitlab)(nil).GetProject), arg0, arg1, arg2, arg3, arg4) } // GetProjectHooks mocks base method. func (m *MockGitlab) GetProjectHooks(arg0 context.Context, arg1 *gitlab.UserInfo, arg2 *oauth2.Token, arg3, arg4 string) ([]*gitlab.WebhookInfo, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetProjectHooks", arg0, arg1, arg2, arg3, arg4) ret0, _ := ret[0].([]*gitlab.WebhookInfo) ret1, _ := ret[1].(error) return ret0, ret1 } // GetProjectHooks indicates an expected call of GetProjectHooks. func (mr *MockGitlabMockRecorder) GetProjectHooks(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetProjectHooks", reflect.TypeOf((*MockGitlab)(nil).GetProjectHooks), arg0, arg1, arg2, arg3, arg4) } // GetReviews mocks base method. func (m *MockGitlab) GetReviews(arg0 context.Context, arg1 *gitlab.UserInfo, arg2 *gitlab0.Client) ([]*gitlab.MergeRequest, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetReviews", arg0, arg1, arg2) ret0, _ := ret[0].([]*gitlab.MergeRequest) ret1, _ := ret[1].(error) return ret0, ret1 } // GetReviews indicates an expected call of GetReviews. func (mr *MockGitlabMockRecorder) GetReviews(arg0, arg1, arg2 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetReviews", reflect.TypeOf((*MockGitlab)(nil).GetReviews), arg0, arg1, arg2) } // GetToDoList mocks base method. func (m *MockGitlab) GetToDoList(arg0 context.Context, arg1 *gitlab.UserInfo, arg2 *gitlab0.Client) ([]*gitlab0.Todo, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetToDoList", arg0, arg1, arg2) ret0, _ := ret[0].([]*gitlab0.Todo) ret1, _ := ret[1].(error) return ret0, ret1 } // GetToDoList indicates an expected call of GetToDoList. func (mr *MockGitlabMockRecorder) GetToDoList(arg0, arg1, arg2 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetToDoList", reflect.TypeOf((*MockGitlab)(nil).GetToDoList), arg0, arg1, arg2) } // GetUserDetails mocks base method. func (m *MockGitlab) GetUserDetails(arg0 context.Context, arg1 *gitlab.UserInfo, arg2 *oauth2.Token) (*gitlab0.User, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetUserDetails", arg0, arg1, arg2) ret0, _ := ret[0].(*gitlab0.User) ret1, _ := ret[1].(error) return ret0, ret1 } // GetUserDetails indicates an expected call of GetUserDetails. func (mr *MockGitlabMockRecorder) GetUserDetails(arg0, arg1, arg2 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUserDetails", reflect.TypeOf((*MockGitlab)(nil).GetUserDetails), arg0, arg1, arg2) } // GetYourAssignedIssues mocks base method. func (m *MockGitlab) GetYourAssignedIssues(arg0 context.Context, arg1 *gitlab.UserInfo, arg2 *gitlab0.Client) ([]*gitlab.Issue, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetYourAssignedIssues", arg0, arg1, arg2) ret0, _ := ret[0].([]*gitlab.Issue) ret1, _ := ret[1].(error) return ret0, ret1 } // GetYourAssignedIssues indicates an expected call of GetYourAssignedIssues. func (mr *MockGitlabMockRecorder) GetYourAssignedIssues(arg0, arg1, arg2 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetYourAssignedIssues", reflect.TypeOf((*MockGitlab)(nil).GetYourAssignedIssues), arg0, arg1, arg2) } // GetYourAssignedPrs mocks base method. func (m *MockGitlab) GetYourAssignedPrs(arg0 context.Context, arg1 *gitlab.UserInfo, arg2 *gitlab0.Client) ([]*gitlab.MergeRequest, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetYourAssignedPrs", arg0, arg1, arg2) ret0, _ := ret[0].([]*gitlab.MergeRequest) ret1, _ := ret[1].(error) return ret0, ret1 } // GetYourAssignedPrs indicates an expected call of GetYourAssignedPrs. func (mr *MockGitlabMockRecorder) GetYourAssignedPrs(arg0, arg1, arg2 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetYourAssignedPrs", reflect.TypeOf((*MockGitlab)(nil).GetYourAssignedPrs), arg0, arg1, arg2) } // GetYourPrDetails mocks base method. func (m *MockGitlab) GetYourPrDetails(arg0 context.Context, arg1 logger.Logger, arg2 *gitlab.UserInfo, arg3 *oauth2.Token, arg4 []*gitlab.PRDetails) ([]*gitlab.PRDetails, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetYourPrDetails", arg0, arg1, arg2, arg3, arg4) ret0, _ := ret[0].([]*gitlab.PRDetails) ret1, _ := ret[1].(error) return ret0, ret1 } // GetYourPrDetails indicates an expected call of GetYourPrDetails. func (mr *MockGitlabMockRecorder) GetYourPrDetails(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetYourPrDetails", reflect.TypeOf((*MockGitlab)(nil).GetYourPrDetails), arg0, arg1, arg2, arg3, arg4) } // GitlabConnect mocks base method. func (m *MockGitlab) GitlabConnect(arg0 oauth2.Token) (*gitlab0.Client, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GitlabConnect", arg0) ret0, _ := ret[0].(*gitlab0.Client) ret1, _ := ret[1].(error) return ret0, ret1 } // GitlabConnect indicates an expected call of GitlabConnect. func (mr *MockGitlabMockRecorder) GitlabConnect(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GitlabConnect", reflect.TypeOf((*MockGitlab)(nil).GitlabConnect), arg0) } // NewGroupHook mocks base method. func (m *MockGitlab) NewGroupHook(arg0 context.Context, arg1 *gitlab.UserInfo, arg2 *oauth2.Token, arg3 string, arg4 *gitlab.AddWebhookOptions) (*gitlab.WebhookInfo, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "NewGroupHook", arg0, arg1, arg2, arg3, arg4) ret0, _ := ret[0].(*gitlab.WebhookInfo) ret1, _ := ret[1].(error) return ret0, ret1 } // NewGroupHook indicates an expected call of NewGroupHook. func (mr *MockGitlabMockRecorder) NewGroupHook(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewGroupHook", reflect.TypeOf((*MockGitlab)(nil).NewGroupHook), arg0, arg1, arg2, arg3, arg4) } // NewProjectHook mocks base method. func (m *MockGitlab) NewProjectHook(arg0 context.Context, arg1 *gitlab.UserInfo, arg2 *oauth2.Token, arg3 interface{}, arg4 *gitlab.AddWebhookOptions) (*gitlab.WebhookInfo, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "NewProjectHook", arg0, arg1, arg2, arg3, arg4) ret0, _ := ret[0].(*gitlab.WebhookInfo) ret1, _ := ret[1].(error) return ret0, ret1 } // NewProjectHook indicates an expected call of NewProjectHook. func (mr *MockGitlabMockRecorder) NewProjectHook(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewProjectHook", reflect.TypeOf((*MockGitlab)(nil).NewProjectHook), arg0, arg1, arg2, arg3, arg4) } // ResolveNamespaceAndProject mocks base method. func (m *MockGitlab) ResolveNamespaceAndProject(arg0 context.Context, arg1 *gitlab.UserInfo, arg2 *oauth2.Token, arg3 string, arg4 bool) (string, string, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ResolveNamespaceAndProject", arg0, arg1, arg2, arg3, arg4) ret0, _ := ret[0].(string) ret1, _ := ret[1].(string) ret2, _ := ret[2].(error) return ret0, ret1, ret2 } // ResolveNamespaceAndProject indicates an expected call of ResolveNamespaceAndProject. func (mr *MockGitlabMockRecorder) ResolveNamespaceAndProject(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResolveNamespaceAndProject", reflect.TypeOf((*MockGitlab)(nil).ResolveNamespaceAndProject), arg0, arg1, arg2, arg3, arg4) } // TriggerProjectPipeline mocks base method. func (m *MockGitlab) TriggerProjectPipeline(arg0 *gitlab.UserInfo, arg1 *oauth2.Token, arg2, arg3 string) (*gitlab.PipelineInfo, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "TriggerProjectPipeline", arg0, arg1, arg2, arg3) ret0, _ := ret[0].(*gitlab.PipelineInfo) ret1, _ := ret[1].(error) return ret0, ret1 } // TriggerProjectPipeline indicates an expected call of TriggerProjectPipeline. func (mr *MockGitlabMockRecorder) TriggerProjectPipeline(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TriggerProjectPipeline", reflect.TypeOf((*MockGitlab)(nil).TriggerProjectPipeline), arg0, arg1, arg2, arg3) }