123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127 |
- // Code generated by MockGen. DO NOT EDIT.
- // Source: kpt-pasture/module/backend (interfaces: CowService)
- // Package kptservicemock is a generated GoMock package.
- package kptservicemock
- import (
- context "context"
- model "kpt-pasture/model"
- reflect "reflect"
- cowPb "gitee.com/xuyiping_admin/go_proto/proto/go/backend/cow"
- gomock "github.com/golang/mock/gomock"
- )
- // MockCowService is a mock of CowService interface.
- type MockCowService struct {
- ctrl *gomock.Controller
- recorder *MockCowServiceMockRecorder
- }
- // MockCowServiceMockRecorder is the mock recorder for MockCowService.
- type MockCowServiceMockRecorder struct {
- mock *MockCowService
- }
- // NewMockCowService creates a new mock instance.
- func NewMockCowService(ctrl *gomock.Controller) *MockCowService {
- mock := &MockCowService{ctrl: ctrl}
- mock.recorder = &MockCowServiceMockRecorder{mock}
- return mock
- }
- // EXPECT returns an object that allows the caller to indicate expected use.
- func (m *MockCowService) EXPECT() *MockCowServiceMockRecorder {
- return m.recorder
- }
- // BehaviorCurve mocks base method.
- func (m *MockCowService) BehaviorCurve(arg0 context.Context, arg1 *cowPb.CowBehaviorCurveRequest) (*model.CowBehaviorCurveResponse, error) {
- m.ctrl.T.Helper()
- ret := m.ctrl.Call(m, "BehaviorCurve", arg0, arg1)
- ret0, _ := ret[0].(*model.CowBehaviorCurveResponse)
- ret1, _ := ret[1].(error)
- return ret0, ret1
- }
- // BehaviorCurve indicates an expected call of BehaviorCurve.
- func (mr *MockCowServiceMockRecorder) BehaviorCurve(arg0, arg1 interface{}) *gomock.Call {
- mr.mock.ctrl.T.Helper()
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BehaviorCurve", reflect.TypeOf((*MockCowService)(nil).BehaviorCurve), arg0, arg1)
- }
- // CowGrowthCurve mocks base method.
- func (m *MockCowService) CowGrowthCurve(arg0 context.Context, arg1 *cowPb.CowGrowthCurveRequest) (*cowPb.CowGrowthCurveResponse, error) {
- m.ctrl.T.Helper()
- ret := m.ctrl.Call(m, "CowGrowthCurve", arg0, arg1)
- ret0, _ := ret[0].(*cowPb.CowGrowthCurveResponse)
- ret1, _ := ret[1].(error)
- return ret0, ret1
- }
- // CowGrowthCurve indicates an expected call of CowGrowthCurve.
- func (mr *MockCowServiceMockRecorder) CowGrowthCurve(arg0, arg1 interface{}) *gomock.Call {
- mr.mock.ctrl.T.Helper()
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CowGrowthCurve", reflect.TypeOf((*MockCowService)(nil).CowGrowthCurve), arg0, arg1)
- }
- // Detail mocks base method.
- func (m *MockCowService) Detail(arg0 context.Context, arg1 *cowPb.SearchEventRequest) (*cowPb.CowInfoResponse, error) {
- m.ctrl.T.Helper()
- ret := m.ctrl.Call(m, "Detail", arg0, arg1)
- ret0, _ := ret[0].(*cowPb.CowInfoResponse)
- ret1, _ := ret[1].(error)
- return ret0, ret1
- }
- // Detail indicates an expected call of Detail.
- func (mr *MockCowServiceMockRecorder) Detail(arg0, arg1 interface{}) *gomock.Call {
- mr.mock.ctrl.T.Helper()
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Detail", reflect.TypeOf((*MockCowService)(nil).Detail), arg0, arg1)
- }
- // EventList mocks base method.
- func (m *MockCowService) EventList(arg0 context.Context, arg1 *cowPb.SearchCowEventListRequest, arg2 *cowPb.PaginationModel) (*cowPb.CowEventListResponse, error) {
- m.ctrl.T.Helper()
- ret := m.ctrl.Call(m, "EventList", arg0, arg1, arg2)
- ret0, _ := ret[0].(*cowPb.CowEventListResponse)
- ret1, _ := ret[1].(error)
- return ret0, ret1
- }
- // EventList indicates an expected call of EventList.
- func (mr *MockCowServiceMockRecorder) EventList(arg0, arg1, arg2 interface{}) *gomock.Call {
- mr.mock.ctrl.T.Helper()
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EventList", reflect.TypeOf((*MockCowService)(nil).EventList), arg0, arg1, arg2)
- }
- // IndicatorsComparison mocks base method.
- func (m *MockCowService) IndicatorsComparison(arg0 context.Context, arg1 *cowPb.IndicatorsComparisonRequest) (*model.IndicatorsComparisonResponse, error) {
- m.ctrl.T.Helper()
- ret := m.ctrl.Call(m, "IndicatorsComparison", arg0, arg1)
- ret0, _ := ret[0].(*model.IndicatorsComparisonResponse)
- ret1, _ := ret[1].(error)
- return ret0, ret1
- }
- // IndicatorsComparison indicates an expected call of IndicatorsComparison.
- func (mr *MockCowServiceMockRecorder) IndicatorsComparison(arg0, arg1 interface{}) *gomock.Call {
- mr.mock.ctrl.T.Helper()
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IndicatorsComparison", reflect.TypeOf((*MockCowService)(nil).IndicatorsComparison), arg0, arg1)
- }
- // List mocks base method.
- func (m *MockCowService) List(arg0 context.Context, arg1 *cowPb.SearchEventRequest, arg2 *cowPb.PaginationModel) (*cowPb.SearchCowListResponse, error) {
- m.ctrl.T.Helper()
- ret := m.ctrl.Call(m, "List", arg0, arg1, arg2)
- ret0, _ := ret[0].(*cowPb.SearchCowListResponse)
- ret1, _ := ret[1].(error)
- return ret0, ret1
- }
- // List indicates an expected call of List.
- func (mr *MockCowServiceMockRecorder) List(arg0, arg1, arg2 interface{}) *gomock.Call {
- mr.mock.ctrl.T.Helper()
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockCowService)(nil).List), arg0, arg1, arg2)
- }
|