CowService.go 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. // Code generated by MockGen. DO NOT EDIT.
  2. // Source: kpt-pasture/module/backend (interfaces: CowService)
  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. // MockCowService is a mock of CowService interface.
  13. type MockCowService struct {
  14. ctrl *gomock.Controller
  15. recorder *MockCowServiceMockRecorder
  16. }
  17. // MockCowServiceMockRecorder is the mock recorder for MockCowService.
  18. type MockCowServiceMockRecorder struct {
  19. mock *MockCowService
  20. }
  21. // NewMockCowService creates a new mock instance.
  22. func NewMockCowService(ctrl *gomock.Controller) *MockCowService {
  23. mock := &MockCowService{ctrl: ctrl}
  24. mock.recorder = &MockCowServiceMockRecorder{mock}
  25. return mock
  26. }
  27. // EXPECT returns an object that allows the caller to indicate expected use.
  28. func (m *MockCowService) EXPECT() *MockCowServiceMockRecorder {
  29. return m.recorder
  30. }
  31. // BehaviorCurve mocks base method.
  32. func (m *MockCowService) BehaviorCurve(arg0 context.Context, arg1 *cowPb.CowBehaviorCurveRequest) (*model.CowBehaviorCurveResponse, error) {
  33. m.ctrl.T.Helper()
  34. ret := m.ctrl.Call(m, "BehaviorCurve", arg0, arg1)
  35. ret0, _ := ret[0].(*model.CowBehaviorCurveResponse)
  36. ret1, _ := ret[1].(error)
  37. return ret0, ret1
  38. }
  39. // BehaviorCurve indicates an expected call of BehaviorCurve.
  40. func (mr *MockCowServiceMockRecorder) BehaviorCurve(arg0, arg1 interface{}) *gomock.Call {
  41. mr.mock.ctrl.T.Helper()
  42. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BehaviorCurve", reflect.TypeOf((*MockCowService)(nil).BehaviorCurve), arg0, arg1)
  43. }
  44. // CowGrowthCurve mocks base method.
  45. func (m *MockCowService) CowGrowthCurve(arg0 context.Context, arg1 *cowPb.CowGrowthCurveRequest) (*cowPb.CowGrowthCurveResponse, error) {
  46. m.ctrl.T.Helper()
  47. ret := m.ctrl.Call(m, "CowGrowthCurve", arg0, arg1)
  48. ret0, _ := ret[0].(*cowPb.CowGrowthCurveResponse)
  49. ret1, _ := ret[1].(error)
  50. return ret0, ret1
  51. }
  52. // CowGrowthCurve indicates an expected call of CowGrowthCurve.
  53. func (mr *MockCowServiceMockRecorder) CowGrowthCurve(arg0, arg1 interface{}) *gomock.Call {
  54. mr.mock.ctrl.T.Helper()
  55. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CowGrowthCurve", reflect.TypeOf((*MockCowService)(nil).CowGrowthCurve), arg0, arg1)
  56. }
  57. // Detail mocks base method.
  58. func (m *MockCowService) Detail(arg0 context.Context, arg1 *cowPb.SearchEventRequest) (*cowPb.CowInfoResponse, error) {
  59. m.ctrl.T.Helper()
  60. ret := m.ctrl.Call(m, "Detail", arg0, arg1)
  61. ret0, _ := ret[0].(*cowPb.CowInfoResponse)
  62. ret1, _ := ret[1].(error)
  63. return ret0, ret1
  64. }
  65. // Detail indicates an expected call of Detail.
  66. func (mr *MockCowServiceMockRecorder) Detail(arg0, arg1 interface{}) *gomock.Call {
  67. mr.mock.ctrl.T.Helper()
  68. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Detail", reflect.TypeOf((*MockCowService)(nil).Detail), arg0, arg1)
  69. }
  70. // EventList mocks base method.
  71. func (m *MockCowService) EventList(arg0 context.Context, arg1 *cowPb.SearchCowEventListRequest, arg2 *cowPb.PaginationModel) (*cowPb.CowEventListResponse, error) {
  72. m.ctrl.T.Helper()
  73. ret := m.ctrl.Call(m, "EventList", arg0, arg1, arg2)
  74. ret0, _ := ret[0].(*cowPb.CowEventListResponse)
  75. ret1, _ := ret[1].(error)
  76. return ret0, ret1
  77. }
  78. // EventList indicates an expected call of EventList.
  79. func (mr *MockCowServiceMockRecorder) EventList(arg0, arg1, arg2 interface{}) *gomock.Call {
  80. mr.mock.ctrl.T.Helper()
  81. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EventList", reflect.TypeOf((*MockCowService)(nil).EventList), arg0, arg1, arg2)
  82. }
  83. // IndicatorsComparison mocks base method.
  84. func (m *MockCowService) IndicatorsComparison(arg0 context.Context, arg1 *cowPb.IndicatorsComparisonRequest) (*model.IndicatorsComparisonResponse, error) {
  85. m.ctrl.T.Helper()
  86. ret := m.ctrl.Call(m, "IndicatorsComparison", arg0, arg1)
  87. ret0, _ := ret[0].(*model.IndicatorsComparisonResponse)
  88. ret1, _ := ret[1].(error)
  89. return ret0, ret1
  90. }
  91. // IndicatorsComparison indicates an expected call of IndicatorsComparison.
  92. func (mr *MockCowServiceMockRecorder) IndicatorsComparison(arg0, arg1 interface{}) *gomock.Call {
  93. mr.mock.ctrl.T.Helper()
  94. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IndicatorsComparison", reflect.TypeOf((*MockCowService)(nil).IndicatorsComparison), arg0, arg1)
  95. }
  96. // List mocks base method.
  97. func (m *MockCowService) List(arg0 context.Context, arg1 *cowPb.SearchEventRequest, arg2 *cowPb.PaginationModel) (*cowPb.SearchCowListResponse, error) {
  98. m.ctrl.T.Helper()
  99. ret := m.ctrl.Call(m, "List", arg0, arg1, arg2)
  100. ret0, _ := ret[0].(*cowPb.SearchCowListResponse)
  101. ret1, _ := ret[1].(error)
  102. return ret0, ret1
  103. }
  104. // List indicates an expected call of List.
  105. func (mr *MockCowServiceMockRecorder) List(arg0, arg1, arg2 interface{}) *gomock.Call {
  106. mr.mock.ctrl.T.Helper()
  107. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockCowService)(nil).List), arg0, arg1, arg2)
  108. }