DashboardService.go 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. // Code generated by MockGen. DO NOT EDIT.
  2. // Source: kpt-pasture/module/backend (interfaces: DashboardService)
  3. // Package kptservicemock is a generated GoMock package.
  4. package kptservicemock
  5. import (
  6. context "context"
  7. reflect "reflect"
  8. cowPb "gitee.com/xuyiping_admin/go_proto/proto/go/backend/cow"
  9. gomock "github.com/golang/mock/gomock"
  10. )
  11. // MockDashboardService is a mock of DashboardService interface.
  12. type MockDashboardService struct {
  13. ctrl *gomock.Controller
  14. recorder *MockDashboardServiceMockRecorder
  15. }
  16. // MockDashboardServiceMockRecorder is the mock recorder for MockDashboardService.
  17. type MockDashboardServiceMockRecorder struct {
  18. mock *MockDashboardService
  19. }
  20. // NewMockDashboardService creates a new mock instance.
  21. func NewMockDashboardService(ctrl *gomock.Controller) *MockDashboardService {
  22. mock := &MockDashboardService{ctrl: ctrl}
  23. mock.recorder = &MockDashboardServiceMockRecorder{mock}
  24. return mock
  25. }
  26. // EXPECT returns an object that allows the caller to indicate expected use.
  27. func (m *MockDashboardService) EXPECT() *MockDashboardServiceMockRecorder {
  28. return m.recorder
  29. }
  30. // Bar mocks base method.
  31. func (m *MockDashboardService) Bar(arg0 context.Context) (*cowPb.BarCowStructResponse, error) {
  32. m.ctrl.T.Helper()
  33. ret := m.ctrl.Call(m, "Bar", arg0)
  34. ret0, _ := ret[0].(*cowPb.BarCowStructResponse)
  35. ret1, _ := ret[1].(error)
  36. return ret0, ret1
  37. }
  38. // Bar indicates an expected call of Bar.
  39. func (mr *MockDashboardServiceMockRecorder) Bar(arg0 interface{}) *gomock.Call {
  40. mr.mock.ctrl.T.Helper()
  41. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Bar", reflect.TypeOf((*MockDashboardService)(nil).Bar), arg0)
  42. }