86 lines
3.3 KiB
Go
86 lines
3.3 KiB
Go
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: obs_utils.go
|
|
//
|
|
// Generated by this command:
|
|
//
|
|
// mockgen -source=obs_utils.go -destination=mock/obs_utils.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"
|
|
)
|
|
|
|
// MockObsStatusFetcherWithState is a mock of ObsStatusFetcherWithState interface.
|
|
type MockObsStatusFetcherWithState struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockObsStatusFetcherWithStateMockRecorder
|
|
isgomock struct{}
|
|
}
|
|
|
|
// MockObsStatusFetcherWithStateMockRecorder is the mock recorder for MockObsStatusFetcherWithState.
|
|
type MockObsStatusFetcherWithStateMockRecorder struct {
|
|
mock *MockObsStatusFetcherWithState
|
|
}
|
|
|
|
// NewMockObsStatusFetcherWithState creates a new mock instance.
|
|
func NewMockObsStatusFetcherWithState(ctrl *gomock.Controller) *MockObsStatusFetcherWithState {
|
|
mock := &MockObsStatusFetcherWithState{ctrl: ctrl}
|
|
mock.recorder = &MockObsStatusFetcherWithStateMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockObsStatusFetcherWithState) EXPECT() *MockObsStatusFetcherWithStateMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// BuildStatusWithState mocks base method.
|
|
func (m *MockObsStatusFetcherWithState) BuildStatusWithState(project string, opts *common.BuildResultOptions, packages ...string) (*common.BuildResultList, error) {
|
|
m.ctrl.T.Helper()
|
|
varargs := []any{project, opts}
|
|
for _, a := range packages {
|
|
varargs = append(varargs, a)
|
|
}
|
|
ret := m.ctrl.Call(m, "BuildStatusWithState", varargs...)
|
|
ret0, _ := ret[0].(*common.BuildResultList)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// BuildStatusWithState indicates an expected call of BuildStatusWithState.
|
|
func (mr *MockObsStatusFetcherWithStateMockRecorder) BuildStatusWithState(project, opts any, packages ...any) *MockObsStatusFetcherWithStateBuildStatusWithStateCall {
|
|
mr.mock.ctrl.T.Helper()
|
|
varargs := append([]any{project, opts}, packages...)
|
|
call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BuildStatusWithState", reflect.TypeOf((*MockObsStatusFetcherWithState)(nil).BuildStatusWithState), varargs...)
|
|
return &MockObsStatusFetcherWithStateBuildStatusWithStateCall{Call: call}
|
|
}
|
|
|
|
// MockObsStatusFetcherWithStateBuildStatusWithStateCall wrap *gomock.Call
|
|
type MockObsStatusFetcherWithStateBuildStatusWithStateCall struct {
|
|
*gomock.Call
|
|
}
|
|
|
|
// Return rewrite *gomock.Call.Return
|
|
func (c *MockObsStatusFetcherWithStateBuildStatusWithStateCall) Return(arg0 *common.BuildResultList, arg1 error) *MockObsStatusFetcherWithStateBuildStatusWithStateCall {
|
|
c.Call = c.Call.Return(arg0, arg1)
|
|
return c
|
|
}
|
|
|
|
// Do rewrite *gomock.Call.Do
|
|
func (c *MockObsStatusFetcherWithStateBuildStatusWithStateCall) Do(f func(string, *common.BuildResultOptions, ...string) (*common.BuildResultList, error)) *MockObsStatusFetcherWithStateBuildStatusWithStateCall {
|
|
c.Call = c.Call.Do(f)
|
|
return c
|
|
}
|
|
|
|
// DoAndReturn rewrite *gomock.Call.DoAndReturn
|
|
func (c *MockObsStatusFetcherWithStateBuildStatusWithStateCall) DoAndReturn(f func(string, *common.BuildResultOptions, ...string) (*common.BuildResultList, error)) *MockObsStatusFetcherWithStateBuildStatusWithStateCall {
|
|
c.Call = c.Call.DoAndReturn(f)
|
|
return c
|
|
}
|