157 lines
6.0 KiB
Go
157 lines
6.0 KiB
Go
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: maintainership.go
|
|
//
|
|
// Generated by this command:
|
|
//
|
|
// mockgen -source=maintainership.go -destination=mock/maintainership.go -typed
|
|
//
|
|
|
|
// Package mock_common is a generated GoMock package.
|
|
package mock_common
|
|
|
|
import (
|
|
reflect "reflect"
|
|
|
|
gomock "go.uber.org/mock/gomock"
|
|
common "src.opensuse.org/autogits/common"
|
|
models "src.opensuse.org/autogits/common/gitea-generated/models"
|
|
)
|
|
|
|
// MockMaintainershipData is a mock of MaintainershipData interface.
|
|
type MockMaintainershipData struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockMaintainershipDataMockRecorder
|
|
isgomock struct{}
|
|
}
|
|
|
|
// MockMaintainershipDataMockRecorder is the mock recorder for MockMaintainershipData.
|
|
type MockMaintainershipDataMockRecorder struct {
|
|
mock *MockMaintainershipData
|
|
}
|
|
|
|
// NewMockMaintainershipData creates a new mock instance.
|
|
func NewMockMaintainershipData(ctrl *gomock.Controller) *MockMaintainershipData {
|
|
mock := &MockMaintainershipData{ctrl: ctrl}
|
|
mock.recorder = &MockMaintainershipDataMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockMaintainershipData) EXPECT() *MockMaintainershipDataMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// IsApproved mocks base method.
|
|
func (m *MockMaintainershipData) IsApproved(Pkg string, Reviews []*models.PullReview, Submitter string, ReviewGroups []*common.ReviewGroup) bool {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "IsApproved", Pkg, Reviews, Submitter, ReviewGroups)
|
|
ret0, _ := ret[0].(bool)
|
|
return ret0
|
|
}
|
|
|
|
// IsApproved indicates an expected call of IsApproved.
|
|
func (mr *MockMaintainershipDataMockRecorder) IsApproved(Pkg, Reviews, Submitter, ReviewGroups any) *MockMaintainershipDataIsApprovedCall {
|
|
mr.mock.ctrl.T.Helper()
|
|
call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsApproved", reflect.TypeOf((*MockMaintainershipData)(nil).IsApproved), Pkg, Reviews, Submitter, ReviewGroups)
|
|
return &MockMaintainershipDataIsApprovedCall{Call: call}
|
|
}
|
|
|
|
// MockMaintainershipDataIsApprovedCall wrap *gomock.Call
|
|
type MockMaintainershipDataIsApprovedCall struct {
|
|
*gomock.Call
|
|
}
|
|
|
|
// Return rewrite *gomock.Call.Return
|
|
func (c *MockMaintainershipDataIsApprovedCall) Return(arg0 bool) *MockMaintainershipDataIsApprovedCall {
|
|
c.Call = c.Call.Return(arg0)
|
|
return c
|
|
}
|
|
|
|
// Do rewrite *gomock.Call.Do
|
|
func (c *MockMaintainershipDataIsApprovedCall) Do(f func(string, []*models.PullReview, string, []*common.ReviewGroup) bool) *MockMaintainershipDataIsApprovedCall {
|
|
c.Call = c.Call.Do(f)
|
|
return c
|
|
}
|
|
|
|
// DoAndReturn rewrite *gomock.Call.DoAndReturn
|
|
func (c *MockMaintainershipDataIsApprovedCall) DoAndReturn(f func(string, []*models.PullReview, string, []*common.ReviewGroup) bool) *MockMaintainershipDataIsApprovedCall {
|
|
c.Call = c.Call.DoAndReturn(f)
|
|
return c
|
|
}
|
|
|
|
// ListPackageMaintainers mocks base method.
|
|
func (m *MockMaintainershipData) ListPackageMaintainers(Pkg string, OptionalGroupExpasion []*common.ReviewGroup) []string {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "ListPackageMaintainers", Pkg, OptionalGroupExpasion)
|
|
ret0, _ := ret[0].([]string)
|
|
return ret0
|
|
}
|
|
|
|
// ListPackageMaintainers indicates an expected call of ListPackageMaintainers.
|
|
func (mr *MockMaintainershipDataMockRecorder) ListPackageMaintainers(Pkg, OptionalGroupExpasion any) *MockMaintainershipDataListPackageMaintainersCall {
|
|
mr.mock.ctrl.T.Helper()
|
|
call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListPackageMaintainers", reflect.TypeOf((*MockMaintainershipData)(nil).ListPackageMaintainers), Pkg, OptionalGroupExpasion)
|
|
return &MockMaintainershipDataListPackageMaintainersCall{Call: call}
|
|
}
|
|
|
|
// MockMaintainershipDataListPackageMaintainersCall wrap *gomock.Call
|
|
type MockMaintainershipDataListPackageMaintainersCall struct {
|
|
*gomock.Call
|
|
}
|
|
|
|
// Return rewrite *gomock.Call.Return
|
|
func (c *MockMaintainershipDataListPackageMaintainersCall) Return(arg0 []string) *MockMaintainershipDataListPackageMaintainersCall {
|
|
c.Call = c.Call.Return(arg0)
|
|
return c
|
|
}
|
|
|
|
// Do rewrite *gomock.Call.Do
|
|
func (c *MockMaintainershipDataListPackageMaintainersCall) Do(f func(string, []*common.ReviewGroup) []string) *MockMaintainershipDataListPackageMaintainersCall {
|
|
c.Call = c.Call.Do(f)
|
|
return c
|
|
}
|
|
|
|
// DoAndReturn rewrite *gomock.Call.DoAndReturn
|
|
func (c *MockMaintainershipDataListPackageMaintainersCall) DoAndReturn(f func(string, []*common.ReviewGroup) []string) *MockMaintainershipDataListPackageMaintainersCall {
|
|
c.Call = c.Call.DoAndReturn(f)
|
|
return c
|
|
}
|
|
|
|
// ListProjectMaintainers mocks base method.
|
|
func (m *MockMaintainershipData) ListProjectMaintainers(OptionalGroupExpansion []*common.ReviewGroup) []string {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "ListProjectMaintainers", OptionalGroupExpansion)
|
|
ret0, _ := ret[0].([]string)
|
|
return ret0
|
|
}
|
|
|
|
// ListProjectMaintainers indicates an expected call of ListProjectMaintainers.
|
|
func (mr *MockMaintainershipDataMockRecorder) ListProjectMaintainers(OptionalGroupExpansion any) *MockMaintainershipDataListProjectMaintainersCall {
|
|
mr.mock.ctrl.T.Helper()
|
|
call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListProjectMaintainers", reflect.TypeOf((*MockMaintainershipData)(nil).ListProjectMaintainers), OptionalGroupExpansion)
|
|
return &MockMaintainershipDataListProjectMaintainersCall{Call: call}
|
|
}
|
|
|
|
// MockMaintainershipDataListProjectMaintainersCall wrap *gomock.Call
|
|
type MockMaintainershipDataListProjectMaintainersCall struct {
|
|
*gomock.Call
|
|
}
|
|
|
|
// Return rewrite *gomock.Call.Return
|
|
func (c *MockMaintainershipDataListProjectMaintainersCall) Return(arg0 []string) *MockMaintainershipDataListProjectMaintainersCall {
|
|
c.Call = c.Call.Return(arg0)
|
|
return c
|
|
}
|
|
|
|
// Do rewrite *gomock.Call.Do
|
|
func (c *MockMaintainershipDataListProjectMaintainersCall) Do(f func([]*common.ReviewGroup) []string) *MockMaintainershipDataListProjectMaintainersCall {
|
|
c.Call = c.Call.Do(f)
|
|
return c
|
|
}
|
|
|
|
// DoAndReturn rewrite *gomock.Call.DoAndReturn
|
|
func (c *MockMaintainershipDataListProjectMaintainersCall) DoAndReturn(f func([]*common.ReviewGroup) []string) *MockMaintainershipDataListProjectMaintainersCall {
|
|
c.Call = c.Call.DoAndReturn(f)
|
|
return c
|
|
}
|