github.com/pyroscope-io/pyroscope@v0.37.3-0.20230725203016-5f6947968bd0/pkg/api/mocks/adhock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/pyroscope-io/pyroscope/pkg/api (interfaces: AdhocService) 3 4 // Package mocks is a generated GoMock package. 5 package mocks 6 7 import ( 8 context "context" 9 reflect "reflect" 10 11 gomock "github.com/golang/mock/gomock" 12 model "github.com/pyroscope-io/pyroscope/pkg/model" 13 flamebearer "github.com/pyroscope-io/pyroscope/pkg/structs/flamebearer" 14 ) 15 16 // MockAdhocService is a mock of AdhocService interface. 17 type MockAdhocService struct { 18 ctrl *gomock.Controller 19 recorder *MockAdhocServiceMockRecorder 20 } 21 22 // MockAdhocServiceMockRecorder is the mock recorder for MockAdhocService. 23 type MockAdhocServiceMockRecorder struct { 24 mock *MockAdhocService 25 } 26 27 // NewMockAdhocService creates a new mock instance. 28 func NewMockAdhocService(ctrl *gomock.Controller) *MockAdhocService { 29 mock := &MockAdhocService{ctrl: ctrl} 30 mock.recorder = &MockAdhocServiceMockRecorder{mock} 31 return mock 32 } 33 34 // EXPECT returns an object that allows the caller to indicate expected use. 35 func (m *MockAdhocService) EXPECT() *MockAdhocServiceMockRecorder { 36 return m.recorder 37 } 38 39 // GetAllProfiles mocks base method. 40 func (m *MockAdhocService) GetAllProfiles(arg0 context.Context) ([]model.AdhocProfile, error) { 41 m.ctrl.T.Helper() 42 ret := m.ctrl.Call(m, "GetAllProfiles", arg0) 43 ret0, _ := ret[0].([]model.AdhocProfile) 44 ret1, _ := ret[1].(error) 45 return ret0, ret1 46 } 47 48 // GetAllProfiles indicates an expected call of GetAllProfiles. 49 func (mr *MockAdhocServiceMockRecorder) GetAllProfiles(arg0 interface{}) *gomock.Call { 50 mr.mock.ctrl.T.Helper() 51 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAllProfiles", reflect.TypeOf((*MockAdhocService)(nil).GetAllProfiles), arg0) 52 } 53 54 // GetProfileByID mocks base method. 55 func (m *MockAdhocService) GetProfileByID(arg0 context.Context, arg1 string) (*flamebearer.FlamebearerProfile, error) { 56 m.ctrl.T.Helper() 57 ret := m.ctrl.Call(m, "GetProfileByID", arg0, arg1) 58 ret0, _ := ret[0].(*flamebearer.FlamebearerProfile) 59 ret1, _ := ret[1].(error) 60 return ret0, ret1 61 } 62 63 // GetProfileByID indicates an expected call of GetProfileByID. 64 func (mr *MockAdhocServiceMockRecorder) GetProfileByID(arg0, arg1 interface{}) *gomock.Call { 65 mr.mock.ctrl.T.Helper() 66 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetProfileByID", reflect.TypeOf((*MockAdhocService)(nil).GetProfileByID), arg0, arg1) 67 } 68 69 // GetProfileDiffByID mocks base method. 70 func (m *MockAdhocService) GetProfileDiffByID(arg0 context.Context, arg1 model.GetAdhocProfileDiffByIDParams) (*flamebearer.FlamebearerProfile, error) { 71 m.ctrl.T.Helper() 72 ret := m.ctrl.Call(m, "GetProfileDiffByID", arg0, arg1) 73 ret0, _ := ret[0].(*flamebearer.FlamebearerProfile) 74 ret1, _ := ret[1].(error) 75 return ret0, ret1 76 } 77 78 // GetProfileDiffByID indicates an expected call of GetProfileDiffByID. 79 func (mr *MockAdhocServiceMockRecorder) GetProfileDiffByID(arg0, arg1 interface{}) *gomock.Call { 80 mr.mock.ctrl.T.Helper() 81 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetProfileDiffByID", reflect.TypeOf((*MockAdhocService)(nil).GetProfileDiffByID), arg0, arg1) 82 } 83 84 // UploadProfile mocks base method. 85 func (m *MockAdhocService) UploadProfile(arg0 context.Context, arg1 model.UploadAdhocProfileParams) (*flamebearer.FlamebearerProfile, string, error) { 86 m.ctrl.T.Helper() 87 ret := m.ctrl.Call(m, "UploadProfile", arg0, arg1) 88 ret0, _ := ret[0].(*flamebearer.FlamebearerProfile) 89 ret1, _ := ret[1].(string) 90 ret2, _ := ret[2].(error) 91 return ret0, ret1, ret2 92 } 93 94 // UploadProfile indicates an expected call of UploadProfile. 95 func (mr *MockAdhocServiceMockRecorder) UploadProfile(arg0, arg1 interface{}) *gomock.Call { 96 mr.mock.ctrl.T.Helper() 97 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UploadProfile", reflect.TypeOf((*MockAdhocService)(nil).UploadProfile), arg0, arg1) 98 }