AnalyseService.go 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. // Code generated by MockGen. DO NOT EDIT.
  2. // Source: kpt-pasture/module/backend (interfaces: AnalyseService)
  3. // Package kptservicemock is a generated GoMock package.
  4. package kptservicemock
  5. import (
  6. context "context"
  7. model "kpt-pasture/model"
  8. reflect "reflect"
  9. cowPb "gitee.com/xuyiping_admin/go_proto/proto/go/backend/cow"
  10. gomock "github.com/golang/mock/gomock"
  11. )
  12. // MockAnalyseService is a mock of AnalyseService interface.
  13. type MockAnalyseService struct {
  14. ctrl *gomock.Controller
  15. recorder *MockAnalyseServiceMockRecorder
  16. }
  17. // MockAnalyseServiceMockRecorder is the mock recorder for MockAnalyseService.
  18. type MockAnalyseServiceMockRecorder struct {
  19. mock *MockAnalyseService
  20. }
  21. // NewMockAnalyseService creates a new mock instance.
  22. func NewMockAnalyseService(ctrl *gomock.Controller) *MockAnalyseService {
  23. mock := &MockAnalyseService{ctrl: ctrl}
  24. mock.recorder = &MockAnalyseServiceMockRecorder{mock}
  25. return mock
  26. }
  27. // EXPECT returns an object that allows the caller to indicate expected use.
  28. func (m *MockAnalyseService) EXPECT() *MockAnalyseServiceMockRecorder {
  29. return m.recorder
  30. }
  31. // AbortionRate mocks base method.
  32. func (m *MockAnalyseService) AbortionRate(arg0 context.Context, arg1 *cowPb.AbortionRateRequest) (*cowPb.AbortionRateResponse, error) {
  33. m.ctrl.T.Helper()
  34. ret := m.ctrl.Call(m, "AbortionRate", arg0, arg1)
  35. ret0, _ := ret[0].(*cowPb.AbortionRateResponse)
  36. ret1, _ := ret[1].(error)
  37. return ret0, ret1
  38. }
  39. // AbortionRate indicates an expected call of AbortionRate.
  40. func (mr *MockAnalyseServiceMockRecorder) AbortionRate(arg0, arg1 interface{}) *gomock.Call {
  41. mr.mock.ctrl.T.Helper()
  42. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AbortionRate", reflect.TypeOf((*MockAnalyseService)(nil).AbortionRate), arg0, arg1)
  43. }
  44. // CalvingReport mocks base method.
  45. func (m *MockAnalyseService) CalvingReport(arg0 context.Context, arg1 *cowPb.CalvingReportRequest) (*cowPb.CalvingReportResponse, error) {
  46. m.ctrl.T.Helper()
  47. ret := m.ctrl.Call(m, "CalvingReport", arg0, arg1)
  48. ret0, _ := ret[0].(*cowPb.CalvingReportResponse)
  49. ret1, _ := ret[1].(error)
  50. return ret0, ret1
  51. }
  52. // CalvingReport indicates an expected call of CalvingReport.
  53. func (mr *MockAnalyseServiceMockRecorder) CalvingReport(arg0, arg1 interface{}) *gomock.Call {
  54. mr.mock.ctrl.T.Helper()
  55. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CalvingReport", reflect.TypeOf((*MockAnalyseService)(nil).CalvingReport), arg0, arg1)
  56. }
  57. // DiseaseCureReport mocks base method.
  58. func (m *MockAnalyseService) DiseaseCureReport(arg0 context.Context, arg1 *cowPb.DiseaseCureRateRequest) (*cowPb.DiseaseCureRateResponse, error) {
  59. m.ctrl.T.Helper()
  60. ret := m.ctrl.Call(m, "DiseaseCureReport", arg0, arg1)
  61. ret0, _ := ret[0].(*cowPb.DiseaseCureRateResponse)
  62. ret1, _ := ret[1].(error)
  63. return ret0, ret1
  64. }
  65. // DiseaseCureReport indicates an expected call of DiseaseCureReport.
  66. func (mr *MockAnalyseServiceMockRecorder) DiseaseCureReport(arg0, arg1 interface{}) *gomock.Call {
  67. mr.mock.ctrl.T.Helper()
  68. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DiseaseCureReport", reflect.TypeOf((*MockAnalyseService)(nil).DiseaseCureReport), arg0, arg1)
  69. }
  70. // GrowthCurve mocks base method.
  71. func (m *MockAnalyseService) GrowthCurve(arg0 context.Context, arg1 *cowPb.SearchGrowthCurvesRequest) (*cowPb.GrowthCurvesResponse, error) {
  72. m.ctrl.T.Helper()
  73. ret := m.ctrl.Call(m, "GrowthCurve", arg0, arg1)
  74. ret0, _ := ret[0].(*cowPb.GrowthCurvesResponse)
  75. ret1, _ := ret[1].(error)
  76. return ret0, ret1
  77. }
  78. // GrowthCurve indicates an expected call of GrowthCurve.
  79. func (mr *MockAnalyseServiceMockRecorder) GrowthCurve(arg0, arg1 interface{}) *gomock.Call {
  80. mr.mock.ctrl.T.Helper()
  81. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GrowthCurve", reflect.TypeOf((*MockAnalyseService)(nil).GrowthCurve), arg0, arg1)
  82. }
  83. // MatingTimely mocks base method.
  84. func (m *MockAnalyseService) MatingTimely(arg0 context.Context, arg1 *cowPb.MatingTimelyRequest) (*model.MatingTimelyResponse, error) {
  85. m.ctrl.T.Helper()
  86. ret := m.ctrl.Call(m, "MatingTimely", arg0, arg1)
  87. ret0, _ := ret[0].(*model.MatingTimelyResponse)
  88. ret1, _ := ret[1].(error)
  89. return ret0, ret1
  90. }
  91. // MatingTimely indicates an expected call of MatingTimely.
  92. func (mr *MockAnalyseServiceMockRecorder) MatingTimely(arg0, arg1 interface{}) *gomock.Call {
  93. mr.mock.ctrl.T.Helper()
  94. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MatingTimely", reflect.TypeOf((*MockAnalyseService)(nil).MatingTimely), arg0, arg1)
  95. }
  96. // MultipleFactorAnalysis mocks base method.
  97. func (m *MockAnalyseService) MultipleFactorAnalysis(arg0 context.Context, arg1 *cowPb.MultiFactorPregnancyRateRequest) (*model.MultiFactorPregnancyRateResponse, error) {
  98. m.ctrl.T.Helper()
  99. ret := m.ctrl.Call(m, "MultipleFactorAnalysis", arg0, arg1)
  100. ret0, _ := ret[0].(*model.MultiFactorPregnancyRateResponse)
  101. ret1, _ := ret[1].(error)
  102. return ret0, ret1
  103. }
  104. // MultipleFactorAnalysis indicates an expected call of MultipleFactorAnalysis.
  105. func (mr *MockAnalyseServiceMockRecorder) MultipleFactorAnalysis(arg0, arg1 interface{}) *gomock.Call {
  106. mr.mock.ctrl.T.Helper()
  107. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MultipleFactorAnalysis", reflect.TypeOf((*MockAnalyseService)(nil).MultipleFactorAnalysis), arg0, arg1)
  108. }
  109. // PenWeight mocks base method.
  110. func (m *MockAnalyseService) PenWeight(arg0 context.Context, arg1 *cowPb.PenWeightRequest, arg2 *cowPb.PaginationModel) (*cowPb.PenWeightResponse, error) {
  111. m.ctrl.T.Helper()
  112. ret := m.ctrl.Call(m, "PenWeight", arg0, arg1, arg2)
  113. ret0, _ := ret[0].(*cowPb.PenWeightResponse)
  114. ret1, _ := ret[1].(error)
  115. return ret0, ret1
  116. }
  117. // PenWeight indicates an expected call of PenWeight.
  118. func (mr *MockAnalyseServiceMockRecorder) PenWeight(arg0, arg1, arg2 interface{}) *gomock.Call {
  119. mr.mock.ctrl.T.Helper()
  120. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PenWeight", reflect.TypeOf((*MockAnalyseService)(nil).PenWeight), arg0, arg1, arg2)
  121. }
  122. // PregnancyReport mocks base method.
  123. func (m *MockAnalyseService) PregnancyReport(arg0 context.Context, arg1 *cowPb.PregnancyReportRequest, arg2 *cowPb.PaginationModel) (*cowPb.PregnancyReportResponse, error) {
  124. m.ctrl.T.Helper()
  125. ret := m.ctrl.Call(m, "PregnancyReport", arg0, arg1, arg2)
  126. ret0, _ := ret[0].(*cowPb.PregnancyReportResponse)
  127. ret1, _ := ret[1].(error)
  128. return ret0, ret1
  129. }
  130. // PregnancyReport indicates an expected call of PregnancyReport.
  131. func (mr *MockAnalyseServiceMockRecorder) PregnancyReport(arg0, arg1, arg2 interface{}) *gomock.Call {
  132. mr.mock.ctrl.T.Helper()
  133. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PregnancyReport", reflect.TypeOf((*MockAnalyseService)(nil).PregnancyReport), arg0, arg1, arg2)
  134. }
  135. // SaleCowReport mocks base method.
  136. func (m *MockAnalyseService) SaleCowReport(arg0 context.Context, arg1 *cowPb.SaleCowReportRequest) (*cowPb.SaleCowReportResponse, error) {
  137. m.ctrl.T.Helper()
  138. ret := m.ctrl.Call(m, "SaleCowReport", arg0, arg1)
  139. ret0, _ := ret[0].(*cowPb.SaleCowReportResponse)
  140. ret1, _ := ret[1].(error)
  141. return ret0, ret1
  142. }
  143. // SaleCowReport indicates an expected call of SaleCowReport.
  144. func (mr *MockAnalyseServiceMockRecorder) SaleCowReport(arg0, arg1 interface{}) *gomock.Call {
  145. mr.mock.ctrl.T.Helper()
  146. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SaleCowReport", reflect.TypeOf((*MockAnalyseService)(nil).SaleCowReport), arg0, arg1)
  147. }
  148. // SingleFactorInfantSurvivalRateAnalysis mocks base method.
  149. func (m *MockAnalyseService) SingleFactorInfantSurvivalRateAnalysis(arg0 context.Context, arg1 *cowPb.SingleFactorPregnancyRateRequest) (*cowPb.SingleFactorPregnancyRateResponse, error) {
  150. m.ctrl.T.Helper()
  151. ret := m.ctrl.Call(m, "SingleFactorInfantSurvivalRateAnalysis", arg0, arg1)
  152. ret0, _ := ret[0].(*cowPb.SingleFactorPregnancyRateResponse)
  153. ret1, _ := ret[1].(error)
  154. return ret0, ret1
  155. }
  156. // SingleFactorInfantSurvivalRateAnalysis indicates an expected call of SingleFactorInfantSurvivalRateAnalysis.
  157. func (mr *MockAnalyseServiceMockRecorder) SingleFactorInfantSurvivalRateAnalysis(arg0, arg1 interface{}) *gomock.Call {
  158. mr.mock.ctrl.T.Helper()
  159. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SingleFactorInfantSurvivalRateAnalysis", reflect.TypeOf((*MockAnalyseService)(nil).SingleFactorInfantSurvivalRateAnalysis), arg0, arg1)
  160. }
  161. // TwentyOnePregnantRate mocks base method.
  162. func (m *MockAnalyseService) TwentyOnePregnantRate(arg0 context.Context, arg1 *cowPb.TwentyOnePregnantRateRequest) (*cowPb.TwentyOnePregnantRateResponse, error) {
  163. m.ctrl.T.Helper()
  164. ret := m.ctrl.Call(m, "TwentyOnePregnantRate", arg0, arg1)
  165. ret0, _ := ret[0].(*cowPb.TwentyOnePregnantRateResponse)
  166. ret1, _ := ret[1].(error)
  167. return ret0, ret1
  168. }
  169. // TwentyOnePregnantRate indicates an expected call of TwentyOnePregnantRate.
  170. func (mr *MockAnalyseServiceMockRecorder) TwentyOnePregnantRate(arg0, arg1 interface{}) *gomock.Call {
  171. mr.mock.ctrl.T.Helper()
  172. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TwentyOnePregnantRate", reflect.TypeOf((*MockAnalyseService)(nil).TwentyOnePregnantRate), arg0, arg1)
  173. }
  174. // WeightRange mocks base method.
  175. func (m *MockAnalyseService) WeightRange(arg0 context.Context, arg1 *cowPb.WeightRangeRequest) (*cowPb.WeightRangeResponse, error) {
  176. m.ctrl.T.Helper()
  177. ret := m.ctrl.Call(m, "WeightRange", arg0, arg1)
  178. ret0, _ := ret[0].(*cowPb.WeightRangeResponse)
  179. ret1, _ := ret[1].(error)
  180. return ret0, ret1
  181. }
  182. // WeightRange indicates an expected call of WeightRange.
  183. func (mr *MockAnalyseServiceMockRecorder) WeightRange(arg0, arg1 interface{}) *gomock.Call {
  184. mr.mock.ctrl.T.Helper()
  185. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WeightRange", reflect.TypeOf((*MockAnalyseService)(nil).WeightRange), arg0, arg1)
  186. }