CowService.go 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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. // EventList mocks base method.
  58. func (m *MockCowService) EventList(arg0 context.Context, arg1 *cowPb.SearchCowEventListRequest, arg2 *cowPb.PaginationModel) (*cowPb.CowEventListResponse, error) {
  59. m.ctrl.T.Helper()
  60. ret := m.ctrl.Call(m, "EventList", arg0, arg1, arg2)
  61. ret0, _ := ret[0].(*cowPb.CowEventListResponse)
  62. ret1, _ := ret[1].(error)
  63. return ret0, ret1
  64. }
  65. // EventList indicates an expected call of EventList.
  66. func (mr *MockCowServiceMockRecorder) EventList(arg0, arg1, arg2 interface{}) *gomock.Call {
  67. mr.mock.ctrl.T.Helper()
  68. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EventList", reflect.TypeOf((*MockCowService)(nil).EventList), arg0, arg1, arg2)
  69. }
  70. // List mocks base method.
  71. func (m *MockCowService) List(arg0 context.Context, arg1 *cowPb.SearchEventRequest, arg2 *cowPb.PaginationModel) (*cowPb.SearchCowListResponse, error) {
  72. m.ctrl.T.Helper()
  73. ret := m.ctrl.Call(m, "List", arg0, arg1, arg2)
  74. ret0, _ := ret[0].(*cowPb.SearchCowListResponse)
  75. ret1, _ := ret[1].(error)
  76. return ret0, ret1
  77. }
  78. // List indicates an expected call of List.
  79. func (mr *MockCowServiceMockRecorder) List(arg0, arg1, arg2 interface{}) *gomock.Call {
  80. mr.mock.ctrl.T.Helper()
  81. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockCowService)(nil).List), arg0, arg1, arg2)
  82. }