// Code generated by MockGen. DO NOT EDIT.
// Source: gitlab.com/gitlab-org/api/client-go (interfaces: WorkItemsServiceInterface)
//
// Generated by this command:
//
//	mockgen -typed -destination=workitems_mock.go -write_package_comment=false -package=testing gitlab.com/gitlab-org/api/client-go WorkItemsServiceInterface
//

package testing

import (
	reflect "reflect"

	gitlab "gitlab.com/gitlab-org/api/client-go"
	gomock "go.uber.org/mock/gomock"
)

// MockWorkItemsServiceInterface is a mock of WorkItemsServiceInterface interface.
type MockWorkItemsServiceInterface struct {
	ctrl     *gomock.Controller
	recorder *MockWorkItemsServiceInterfaceMockRecorder
	isgomock struct{}
}

// MockWorkItemsServiceInterfaceMockRecorder is the mock recorder for MockWorkItemsServiceInterface.
type MockWorkItemsServiceInterfaceMockRecorder struct {
	mock *MockWorkItemsServiceInterface
}

// NewMockWorkItemsServiceInterface creates a new mock instance.
func NewMockWorkItemsServiceInterface(ctrl *gomock.Controller) *MockWorkItemsServiceInterface {
	mock := &MockWorkItemsServiceInterface{ctrl: ctrl}
	mock.recorder = &MockWorkItemsServiceInterfaceMockRecorder{mock}
	return mock
}

// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockWorkItemsServiceInterface) EXPECT() *MockWorkItemsServiceInterfaceMockRecorder {
	return m.recorder
}

// GetWorkItem mocks base method.
func (m *MockWorkItemsServiceInterface) GetWorkItem(fullPath string, iid int64, options ...gitlab.RequestOptionFunc) (*gitlab.WorkItem, *gitlab.Response, error) {
	m.ctrl.T.Helper()
	varargs := []any{fullPath, iid}
	for _, a := range options {
		varargs = append(varargs, a)
	}
	ret := m.ctrl.Call(m, "GetWorkItem", varargs...)
	ret0, _ := ret[0].(*gitlab.WorkItem)
	ret1, _ := ret[1].(*gitlab.Response)
	ret2, _ := ret[2].(error)
	return ret0, ret1, ret2
}

// GetWorkItem indicates an expected call of GetWorkItem.
func (mr *MockWorkItemsServiceInterfaceMockRecorder) GetWorkItem(fullPath, iid any, options ...any) *MockWorkItemsServiceInterfaceGetWorkItemCall {
	mr.mock.ctrl.T.Helper()
	varargs := append([]any{fullPath, iid}, options...)
	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetWorkItem", reflect.TypeOf((*MockWorkItemsServiceInterface)(nil).GetWorkItem), varargs...)
	return &MockWorkItemsServiceInterfaceGetWorkItemCall{Call: call}
}

// MockWorkItemsServiceInterfaceGetWorkItemCall wrap *gomock.Call
type MockWorkItemsServiceInterfaceGetWorkItemCall struct {
	*gomock.Call
}

// Return rewrite *gomock.Call.Return
func (c *MockWorkItemsServiceInterfaceGetWorkItemCall) Return(arg0 *gitlab.WorkItem, arg1 *gitlab.Response, arg2 error) *MockWorkItemsServiceInterfaceGetWorkItemCall {
	c.Call = c.Call.Return(arg0, arg1, arg2)
	return c
}

// Do rewrite *gomock.Call.Do
func (c *MockWorkItemsServiceInterfaceGetWorkItemCall) Do(f func(string, int64, ...gitlab.RequestOptionFunc) (*gitlab.WorkItem, *gitlab.Response, error)) *MockWorkItemsServiceInterfaceGetWorkItemCall {
	c.Call = c.Call.Do(f)
	return c
}

// DoAndReturn rewrite *gomock.Call.DoAndReturn
func (c *MockWorkItemsServiceInterfaceGetWorkItemCall) DoAndReturn(f func(string, int64, ...gitlab.RequestOptionFunc) (*gitlab.WorkItem, *gitlab.Response, error)) *MockWorkItemsServiceInterfaceGetWorkItemCall {
	c.Call = c.Call.DoAndReturn(f)
	return c
}

// ListWorkItems mocks base method.
func (m *MockWorkItemsServiceInterface) ListWorkItems(fullPath string, opt *gitlab.ListWorkItemsOptions, options ...gitlab.RequestOptionFunc) ([]*gitlab.WorkItem, *gitlab.Response, error) {
	m.ctrl.T.Helper()
	varargs := []any{fullPath, opt}
	for _, a := range options {
		varargs = append(varargs, a)
	}
	ret := m.ctrl.Call(m, "ListWorkItems", varargs...)
	ret0, _ := ret[0].([]*gitlab.WorkItem)
	ret1, _ := ret[1].(*gitlab.Response)
	ret2, _ := ret[2].(error)
	return ret0, ret1, ret2
}

// ListWorkItems indicates an expected call of ListWorkItems.
func (mr *MockWorkItemsServiceInterfaceMockRecorder) ListWorkItems(fullPath, opt any, options ...any) *MockWorkItemsServiceInterfaceListWorkItemsCall {
	mr.mock.ctrl.T.Helper()
	varargs := append([]any{fullPath, opt}, options...)
	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListWorkItems", reflect.TypeOf((*MockWorkItemsServiceInterface)(nil).ListWorkItems), varargs...)
	return &MockWorkItemsServiceInterfaceListWorkItemsCall{Call: call}
}

// MockWorkItemsServiceInterfaceListWorkItemsCall wrap *gomock.Call
type MockWorkItemsServiceInterfaceListWorkItemsCall struct {
	*gomock.Call
}

// Return rewrite *gomock.Call.Return
func (c *MockWorkItemsServiceInterfaceListWorkItemsCall) Return(arg0 []*gitlab.WorkItem, arg1 *gitlab.Response, arg2 error) *MockWorkItemsServiceInterfaceListWorkItemsCall {
	c.Call = c.Call.Return(arg0, arg1, arg2)
	return c
}

// Do rewrite *gomock.Call.Do
func (c *MockWorkItemsServiceInterfaceListWorkItemsCall) Do(f func(string, *gitlab.ListWorkItemsOptions, ...gitlab.RequestOptionFunc) ([]*gitlab.WorkItem, *gitlab.Response, error)) *MockWorkItemsServiceInterfaceListWorkItemsCall {
	c.Call = c.Call.Do(f)
	return c
}

// DoAndReturn rewrite *gomock.Call.DoAndReturn
func (c *MockWorkItemsServiceInterfaceListWorkItemsCall) DoAndReturn(f func(string, *gitlab.ListWorkItemsOptions, ...gitlab.RequestOptionFunc) ([]*gitlab.WorkItem, *gitlab.Response, error)) *MockWorkItemsServiceInterfaceListWorkItemsCall {
	c.Call = c.Call.DoAndReturn(f)
	return c
}
