// Code generated by MockGen. DO NOT EDIT. // Source: gitlab.com/gitlab-org/protos/gen/go/gitlab/autoflow/rpc/v1 (interfaces: AutoFlowServiceServer) // // Generated by this command: // // mockgen -typed -destination=./autoflow_mocks.go -package=autoflowtest gitlab.com/gitlab-org/protos/gen/go/gitlab/autoflow/rpc/v1 AutoFlowServiceServer // // Package autoflowtest is a generated GoMock package. package autoflowtest import ( context "context" reflect "reflect" rpcv1 "gitlab.com/gitlab-org/protos/gen/go/gitlab/autoflow/rpc/v1" gomock "go.uber.org/mock/gomock" ) // MockAutoFlowServiceServer is a mock of AutoFlowServiceServer interface. type MockAutoFlowServiceServer struct { ctrl *gomock.Controller recorder *MockAutoFlowServiceServerMockRecorder isgomock struct{} } // MockAutoFlowServiceServerMockRecorder is the mock recorder for MockAutoFlowServiceServer. type MockAutoFlowServiceServerMockRecorder struct { mock *MockAutoFlowServiceServer } // NewMockAutoFlowServiceServer creates a new mock instance. func NewMockAutoFlowServiceServer(ctrl *gomock.Controller) *MockAutoFlowServiceServer { mock := &MockAutoFlowServiceServer{ctrl: ctrl} mock.recorder = &MockAutoFlowServiceServerMockRecorder{mock} return mock } // EXPECT returns an object that allows the caller to indicate expected use. func (m *MockAutoFlowServiceServer) EXPECT() *MockAutoFlowServiceServerMockRecorder { return m.recorder } // CancelWorkflow mocks base method. func (m *MockAutoFlowServiceServer) CancelWorkflow(arg0 context.Context, arg1 *rpcv1.CancelWorkflowRequest) (*rpcv1.CancelWorkflowResponse, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CancelWorkflow", arg0, arg1) ret0, _ := ret[0].(*rpcv1.CancelWorkflowResponse) ret1, _ := ret[1].(error) return ret0, ret1 } // CancelWorkflow indicates an expected call of CancelWorkflow. func (mr *MockAutoFlowServiceServerMockRecorder) CancelWorkflow(arg0, arg1 any) *MockAutoFlowServiceServerCancelWorkflowCall { mr.mock.ctrl.T.Helper() call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CancelWorkflow", reflect.TypeOf((*MockAutoFlowServiceServer)(nil).CancelWorkflow), arg0, arg1) return &MockAutoFlowServiceServerCancelWorkflowCall{Call: call} } // MockAutoFlowServiceServerCancelWorkflowCall wrap *gomock.Call type MockAutoFlowServiceServerCancelWorkflowCall struct { *gomock.Call } // Return rewrite *gomock.Call.Return func (c *MockAutoFlowServiceServerCancelWorkflowCall) Return(arg0 *rpcv1.CancelWorkflowResponse, arg1 error) *MockAutoFlowServiceServerCancelWorkflowCall { c.Call = c.Call.Return(arg0, arg1) return c } // Do rewrite *gomock.Call.Do func (c *MockAutoFlowServiceServerCancelWorkflowCall) Do(f func(context.Context, *rpcv1.CancelWorkflowRequest) (*rpcv1.CancelWorkflowResponse, error)) *MockAutoFlowServiceServerCancelWorkflowCall { c.Call = c.Call.Do(f) return c } // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockAutoFlowServiceServerCancelWorkflowCall) DoAndReturn(f func(context.Context, *rpcv1.CancelWorkflowRequest) (*rpcv1.CancelWorkflowResponse, error)) *MockAutoFlowServiceServerCancelWorkflowCall { c.Call = c.Call.DoAndReturn(f) return c } // GetWorkflow mocks base method. func (m *MockAutoFlowServiceServer) GetWorkflow(arg0 context.Context, arg1 *rpcv1.GetWorkflowRequest) (*rpcv1.GetWorkflowResponse, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetWorkflow", arg0, arg1) ret0, _ := ret[0].(*rpcv1.GetWorkflowResponse) ret1, _ := ret[1].(error) return ret0, ret1 } // GetWorkflow indicates an expected call of GetWorkflow. func (mr *MockAutoFlowServiceServerMockRecorder) GetWorkflow(arg0, arg1 any) *MockAutoFlowServiceServerGetWorkflowCall { mr.mock.ctrl.T.Helper() call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetWorkflow", reflect.TypeOf((*MockAutoFlowServiceServer)(nil).GetWorkflow), arg0, arg1) return &MockAutoFlowServiceServerGetWorkflowCall{Call: call} } // MockAutoFlowServiceServerGetWorkflowCall wrap *gomock.Call type MockAutoFlowServiceServerGetWorkflowCall struct { *gomock.Call } // Return rewrite *gomock.Call.Return func (c *MockAutoFlowServiceServerGetWorkflowCall) Return(arg0 *rpcv1.GetWorkflowResponse, arg1 error) *MockAutoFlowServiceServerGetWorkflowCall { c.Call = c.Call.Return(arg0, arg1) return c } // Do rewrite *gomock.Call.Do func (c *MockAutoFlowServiceServerGetWorkflowCall) Do(f func(context.Context, *rpcv1.GetWorkflowRequest) (*rpcv1.GetWorkflowResponse, error)) *MockAutoFlowServiceServerGetWorkflowCall { c.Call = c.Call.Do(f) return c } // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockAutoFlowServiceServerGetWorkflowCall) DoAndReturn(f func(context.Context, *rpcv1.GetWorkflowRequest) (*rpcv1.GetWorkflowResponse, error)) *MockAutoFlowServiceServerGetWorkflowCall { c.Call = c.Call.DoAndReturn(f) return c } // SendToWorkflowChannel mocks base method. func (m *MockAutoFlowServiceServer) SendToWorkflowChannel(arg0 context.Context, arg1 *rpcv1.SendToWorkflowChannelRequest) (*rpcv1.SendToWorkflowChannelResponse, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "SendToWorkflowChannel", arg0, arg1) ret0, _ := ret[0].(*rpcv1.SendToWorkflowChannelResponse) ret1, _ := ret[1].(error) return ret0, ret1 } // SendToWorkflowChannel indicates an expected call of SendToWorkflowChannel. func (mr *MockAutoFlowServiceServerMockRecorder) SendToWorkflowChannel(arg0, arg1 any) *MockAutoFlowServiceServerSendToWorkflowChannelCall { mr.mock.ctrl.T.Helper() call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendToWorkflowChannel", reflect.TypeOf((*MockAutoFlowServiceServer)(nil).SendToWorkflowChannel), arg0, arg1) return &MockAutoFlowServiceServerSendToWorkflowChannelCall{Call: call} } // MockAutoFlowServiceServerSendToWorkflowChannelCall wrap *gomock.Call type MockAutoFlowServiceServerSendToWorkflowChannelCall struct { *gomock.Call } // Return rewrite *gomock.Call.Return func (c *MockAutoFlowServiceServerSendToWorkflowChannelCall) Return(arg0 *rpcv1.SendToWorkflowChannelResponse, arg1 error) *MockAutoFlowServiceServerSendToWorkflowChannelCall { c.Call = c.Call.Return(arg0, arg1) return c } // Do rewrite *gomock.Call.Do func (c *MockAutoFlowServiceServerSendToWorkflowChannelCall) Do(f func(context.Context, *rpcv1.SendToWorkflowChannelRequest) (*rpcv1.SendToWorkflowChannelResponse, error)) *MockAutoFlowServiceServerSendToWorkflowChannelCall { c.Call = c.Call.Do(f) return c } // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockAutoFlowServiceServerSendToWorkflowChannelCall) DoAndReturn(f func(context.Context, *rpcv1.SendToWorkflowChannelRequest) (*rpcv1.SendToWorkflowChannelResponse, error)) *MockAutoFlowServiceServerSendToWorkflowChannelCall { c.Call = c.Call.DoAndReturn(f) return c } // StartWorkflow mocks base method. func (m *MockAutoFlowServiceServer) StartWorkflow(arg0 context.Context, arg1 *rpcv1.StartWorkflowRequest) (*rpcv1.StartWorkflowResponse, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "StartWorkflow", arg0, arg1) ret0, _ := ret[0].(*rpcv1.StartWorkflowResponse) ret1, _ := ret[1].(error) return ret0, ret1 } // StartWorkflow indicates an expected call of StartWorkflow. func (mr *MockAutoFlowServiceServerMockRecorder) StartWorkflow(arg0, arg1 any) *MockAutoFlowServiceServerStartWorkflowCall { mr.mock.ctrl.T.Helper() call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartWorkflow", reflect.TypeOf((*MockAutoFlowServiceServer)(nil).StartWorkflow), arg0, arg1) return &MockAutoFlowServiceServerStartWorkflowCall{Call: call} } // MockAutoFlowServiceServerStartWorkflowCall wrap *gomock.Call type MockAutoFlowServiceServerStartWorkflowCall struct { *gomock.Call } // Return rewrite *gomock.Call.Return func (c *MockAutoFlowServiceServerStartWorkflowCall) Return(arg0 *rpcv1.StartWorkflowResponse, arg1 error) *MockAutoFlowServiceServerStartWorkflowCall { c.Call = c.Call.Return(arg0, arg1) return c } // Do rewrite *gomock.Call.Do func (c *MockAutoFlowServiceServerStartWorkflowCall) Do(f func(context.Context, *rpcv1.StartWorkflowRequest) (*rpcv1.StartWorkflowResponse, error)) *MockAutoFlowServiceServerStartWorkflowCall { c.Call = c.Call.Do(f) return c } // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockAutoFlowServiceServerStartWorkflowCall) DoAndReturn(f func(context.Context, *rpcv1.StartWorkflowRequest) (*rpcv1.StartWorkflowResponse, error)) *MockAutoFlowServiceServerStartWorkflowCall { c.Call = c.Call.DoAndReturn(f) return c } // mustEmbedUnimplementedAutoFlowServiceServer mocks base method. func (m *MockAutoFlowServiceServer) mustEmbedUnimplementedAutoFlowServiceServer() { m.ctrl.T.Helper() m.ctrl.Call(m, "mustEmbedUnimplementedAutoFlowServiceServer") } // mustEmbedUnimplementedAutoFlowServiceServer indicates an expected call of mustEmbedUnimplementedAutoFlowServiceServer. func (mr *MockAutoFlowServiceServerMockRecorder) mustEmbedUnimplementedAutoFlowServiceServer() *MockAutoFlowServiceServermustEmbedUnimplementedAutoFlowServiceServerCall { mr.mock.ctrl.T.Helper() call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "mustEmbedUnimplementedAutoFlowServiceServer", reflect.TypeOf((*MockAutoFlowServiceServer)(nil).mustEmbedUnimplementedAutoFlowServiceServer)) return &MockAutoFlowServiceServermustEmbedUnimplementedAutoFlowServiceServerCall{Call: call} } // MockAutoFlowServiceServermustEmbedUnimplementedAutoFlowServiceServerCall wrap *gomock.Call type MockAutoFlowServiceServermustEmbedUnimplementedAutoFlowServiceServerCall struct { *gomock.Call } // Return rewrite *gomock.Call.Return func (c *MockAutoFlowServiceServermustEmbedUnimplementedAutoFlowServiceServerCall) Return() *MockAutoFlowServiceServermustEmbedUnimplementedAutoFlowServiceServerCall { c.Call = c.Call.Return() return c } // Do rewrite *gomock.Call.Do func (c *MockAutoFlowServiceServermustEmbedUnimplementedAutoFlowServiceServerCall) Do(f func()) *MockAutoFlowServiceServermustEmbedUnimplementedAutoFlowServiceServerCall { c.Call = c.Call.Do(f) return c } // DoAndReturn rewrite *gomock.Call.DoAndReturn func (c *MockAutoFlowServiceServermustEmbedUnimplementedAutoFlowServiceServerCall) DoAndReturn(f func()) *MockAutoFlowServiceServermustEmbedUnimplementedAutoFlowServiceServerCall { c.Call = c.Call.DoAndReturn(f) return c }