12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- // 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)
- }
- // 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)
- }
- // 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)
- }
|