123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217 |
- // Code generated by MockGen. DO NOT EDIT.
- // Source: kpt-pasture/module/backend (interfaces: AnalyseService)
- // 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"
- )
- // MockAnalyseService is a mock of AnalyseService interface.
- type MockAnalyseService struct {
- ctrl *gomock.Controller
- recorder *MockAnalyseServiceMockRecorder
- }
- // MockAnalyseServiceMockRecorder is the mock recorder for MockAnalyseService.
- type MockAnalyseServiceMockRecorder struct {
- mock *MockAnalyseService
- }
- // NewMockAnalyseService creates a new mock instance.
- func NewMockAnalyseService(ctrl *gomock.Controller) *MockAnalyseService {
- mock := &MockAnalyseService{ctrl: ctrl}
- mock.recorder = &MockAnalyseServiceMockRecorder{mock}
- return mock
- }
- // EXPECT returns an object that allows the caller to indicate expected use.
- func (m *MockAnalyseService) EXPECT() *MockAnalyseServiceMockRecorder {
- return m.recorder
- }
- // AbortionRate mocks base method.
- func (m *MockAnalyseService) AbortionRate(arg0 context.Context, arg1 *cowPb.AbortionRateRequest) (*cowPb.AbortionRateResponse, error) {
- m.ctrl.T.Helper()
- ret := m.ctrl.Call(m, "AbortionRate", arg0, arg1)
- ret0, _ := ret[0].(*cowPb.AbortionRateResponse)
- ret1, _ := ret[1].(error)
- return ret0, ret1
- }
- // AbortionRate indicates an expected call of AbortionRate.
- func (mr *MockAnalyseServiceMockRecorder) AbortionRate(arg0, arg1 interface{}) *gomock.Call {
- mr.mock.ctrl.T.Helper()
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AbortionRate", reflect.TypeOf((*MockAnalyseService)(nil).AbortionRate), arg0, arg1)
- }
- // CalvingReport mocks base method.
- func (m *MockAnalyseService) CalvingReport(arg0 context.Context, arg1 *cowPb.CalvingReportRequest) (*cowPb.CalvingReportResponse, error) {
- m.ctrl.T.Helper()
- ret := m.ctrl.Call(m, "CalvingReport", arg0, arg1)
- ret0, _ := ret[0].(*cowPb.CalvingReportResponse)
- ret1, _ := ret[1].(error)
- return ret0, ret1
- }
- // CalvingReport indicates an expected call of CalvingReport.
- func (mr *MockAnalyseServiceMockRecorder) CalvingReport(arg0, arg1 interface{}) *gomock.Call {
- mr.mock.ctrl.T.Helper()
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CalvingReport", reflect.TypeOf((*MockAnalyseService)(nil).CalvingReport), arg0, arg1)
- }
- // DiseaseCureReport mocks base method.
- func (m *MockAnalyseService) DiseaseCureReport(arg0 context.Context, arg1 *cowPb.DiseaseCureRateRequest) (*cowPb.DiseaseCureRateResponse, error) {
- m.ctrl.T.Helper()
- ret := m.ctrl.Call(m, "DiseaseCureReport", arg0, arg1)
- ret0, _ := ret[0].(*cowPb.DiseaseCureRateResponse)
- ret1, _ := ret[1].(error)
- return ret0, ret1
- }
- // DiseaseCureReport indicates an expected call of DiseaseCureReport.
- func (mr *MockAnalyseServiceMockRecorder) DiseaseCureReport(arg0, arg1 interface{}) *gomock.Call {
- mr.mock.ctrl.T.Helper()
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DiseaseCureReport", reflect.TypeOf((*MockAnalyseService)(nil).DiseaseCureReport), arg0, arg1)
- }
- // GrowthCurve mocks base method.
- func (m *MockAnalyseService) GrowthCurve(arg0 context.Context, arg1 *cowPb.SearchGrowthCurvesRequest) (*cowPb.GrowthCurvesResponse, error) {
- m.ctrl.T.Helper()
- ret := m.ctrl.Call(m, "GrowthCurve", arg0, arg1)
- ret0, _ := ret[0].(*cowPb.GrowthCurvesResponse)
- ret1, _ := ret[1].(error)
- return ret0, ret1
- }
- // GrowthCurve indicates an expected call of GrowthCurve.
- func (mr *MockAnalyseServiceMockRecorder) GrowthCurve(arg0, arg1 interface{}) *gomock.Call {
- mr.mock.ctrl.T.Helper()
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GrowthCurve", reflect.TypeOf((*MockAnalyseService)(nil).GrowthCurve), arg0, arg1)
- }
- // MatingTimely mocks base method.
- func (m *MockAnalyseService) MatingTimely(arg0 context.Context, arg1 *cowPb.MatingTimelyRequest) (*model.MatingTimelyResponse, error) {
- m.ctrl.T.Helper()
- ret := m.ctrl.Call(m, "MatingTimely", arg0, arg1)
- ret0, _ := ret[0].(*model.MatingTimelyResponse)
- ret1, _ := ret[1].(error)
- return ret0, ret1
- }
- // MatingTimely indicates an expected call of MatingTimely.
- func (mr *MockAnalyseServiceMockRecorder) MatingTimely(arg0, arg1 interface{}) *gomock.Call {
- mr.mock.ctrl.T.Helper()
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MatingTimely", reflect.TypeOf((*MockAnalyseService)(nil).MatingTimely), arg0, arg1)
- }
- // MultipleFactorAnalysis mocks base method.
- func (m *MockAnalyseService) MultipleFactorAnalysis(arg0 context.Context, arg1 *cowPb.MultiFactorPregnancyRateRequest) (*model.MultiFactorPregnancyRateResponse, error) {
- m.ctrl.T.Helper()
- ret := m.ctrl.Call(m, "MultipleFactorAnalysis", arg0, arg1)
- ret0, _ := ret[0].(*model.MultiFactorPregnancyRateResponse)
- ret1, _ := ret[1].(error)
- return ret0, ret1
- }
- // MultipleFactorAnalysis indicates an expected call of MultipleFactorAnalysis.
- func (mr *MockAnalyseServiceMockRecorder) MultipleFactorAnalysis(arg0, arg1 interface{}) *gomock.Call {
- mr.mock.ctrl.T.Helper()
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MultipleFactorAnalysis", reflect.TypeOf((*MockAnalyseService)(nil).MultipleFactorAnalysis), arg0, arg1)
- }
- // PenWeight mocks base method.
- func (m *MockAnalyseService) PenWeight(arg0 context.Context, arg1 *cowPb.PenWeightRequest, arg2 *cowPb.PaginationModel) (*cowPb.PenWeightResponse, error) {
- m.ctrl.T.Helper()
- ret := m.ctrl.Call(m, "PenWeight", arg0, arg1, arg2)
- ret0, _ := ret[0].(*cowPb.PenWeightResponse)
- ret1, _ := ret[1].(error)
- return ret0, ret1
- }
- // PenWeight indicates an expected call of PenWeight.
- func (mr *MockAnalyseServiceMockRecorder) PenWeight(arg0, arg1, arg2 interface{}) *gomock.Call {
- mr.mock.ctrl.T.Helper()
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PenWeight", reflect.TypeOf((*MockAnalyseService)(nil).PenWeight), arg0, arg1, arg2)
- }
- // PregnancyReport mocks base method.
- func (m *MockAnalyseService) PregnancyReport(arg0 context.Context, arg1 *cowPb.PregnancyReportRequest, arg2 *cowPb.PaginationModel) (*cowPb.PregnancyReportResponse, error) {
- m.ctrl.T.Helper()
- ret := m.ctrl.Call(m, "PregnancyReport", arg0, arg1, arg2)
- ret0, _ := ret[0].(*cowPb.PregnancyReportResponse)
- ret1, _ := ret[1].(error)
- return ret0, ret1
- }
- // PregnancyReport indicates an expected call of PregnancyReport.
- func (mr *MockAnalyseServiceMockRecorder) PregnancyReport(arg0, arg1, arg2 interface{}) *gomock.Call {
- mr.mock.ctrl.T.Helper()
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PregnancyReport", reflect.TypeOf((*MockAnalyseService)(nil).PregnancyReport), arg0, arg1, arg2)
- }
- // SaleCowReport mocks base method.
- func (m *MockAnalyseService) SaleCowReport(arg0 context.Context, arg1 *cowPb.SaleCowReportRequest) (*cowPb.SaleCowReportResponse, error) {
- m.ctrl.T.Helper()
- ret := m.ctrl.Call(m, "SaleCowReport", arg0, arg1)
- ret0, _ := ret[0].(*cowPb.SaleCowReportResponse)
- ret1, _ := ret[1].(error)
- return ret0, ret1
- }
- // SaleCowReport indicates an expected call of SaleCowReport.
- func (mr *MockAnalyseServiceMockRecorder) SaleCowReport(arg0, arg1 interface{}) *gomock.Call {
- mr.mock.ctrl.T.Helper()
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SaleCowReport", reflect.TypeOf((*MockAnalyseService)(nil).SaleCowReport), arg0, arg1)
- }
- // SingleFactorInfantSurvivalRateAnalysis mocks base method.
- func (m *MockAnalyseService) SingleFactorInfantSurvivalRateAnalysis(arg0 context.Context, arg1 *cowPb.SingleFactorPregnancyRateRequest) (*cowPb.SingleFactorPregnancyRateResponse, error) {
- m.ctrl.T.Helper()
- ret := m.ctrl.Call(m, "SingleFactorInfantSurvivalRateAnalysis", arg0, arg1)
- ret0, _ := ret[0].(*cowPb.SingleFactorPregnancyRateResponse)
- ret1, _ := ret[1].(error)
- return ret0, ret1
- }
- // SingleFactorInfantSurvivalRateAnalysis indicates an expected call of SingleFactorInfantSurvivalRateAnalysis.
- func (mr *MockAnalyseServiceMockRecorder) SingleFactorInfantSurvivalRateAnalysis(arg0, arg1 interface{}) *gomock.Call {
- mr.mock.ctrl.T.Helper()
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SingleFactorInfantSurvivalRateAnalysis", reflect.TypeOf((*MockAnalyseService)(nil).SingleFactorInfantSurvivalRateAnalysis), arg0, arg1)
- }
- // TwentyOnePregnantRate mocks base method.
- func (m *MockAnalyseService) TwentyOnePregnantRate(arg0 context.Context, arg1 *cowPb.TwentyOnePregnantRateRequest) (*cowPb.TwentyOnePregnantRateResponse, error) {
- m.ctrl.T.Helper()
- ret := m.ctrl.Call(m, "TwentyOnePregnantRate", arg0, arg1)
- ret0, _ := ret[0].(*cowPb.TwentyOnePregnantRateResponse)
- ret1, _ := ret[1].(error)
- return ret0, ret1
- }
- // TwentyOnePregnantRate indicates an expected call of TwentyOnePregnantRate.
- func (mr *MockAnalyseServiceMockRecorder) TwentyOnePregnantRate(arg0, arg1 interface{}) *gomock.Call {
- mr.mock.ctrl.T.Helper()
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TwentyOnePregnantRate", reflect.TypeOf((*MockAnalyseService)(nil).TwentyOnePregnantRate), arg0, arg1)
- }
- // WeightRange mocks base method.
- func (m *MockAnalyseService) WeightRange(arg0 context.Context, arg1 *cowPb.WeightRangeRequest) (*cowPb.WeightRangeResponse, error) {
- m.ctrl.T.Helper()
- ret := m.ctrl.Call(m, "WeightRange", arg0, arg1)
- ret0, _ := ret[0].(*cowPb.WeightRangeResponse)
- ret1, _ := ret[1].(error)
- return ret0, ret1
- }
- // WeightRange indicates an expected call of WeightRange.
- func (mr *MockAnalyseServiceMockRecorder) WeightRange(arg0, arg1 interface{}) *gomock.Call {
- mr.mock.ctrl.T.Helper()
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WeightRange", reflect.TypeOf((*MockAnalyseService)(nil).WeightRange), arg0, arg1)
- }
|