-
Notifications
You must be signed in to change notification settings - Fork 175
Expand file tree
/
Copy pathprofiler.go
More file actions
56 lines (47 loc) · 1.67 KB
/
profiler.go
File metadata and controls
56 lines (47 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
// Code generated by MockGen. DO NOT EDIT.
// Source: profiler.go
//
// Generated by this command:
//
// mockgen -package mocks -destination mocks/profiler.go -source profiler.go
//
// Package mocks is a generated GoMock package.
package mocks
import (
reflect "reflect"
pyroscope "github.com/grafana/pyroscope-go"
gomock "go.uber.org/mock/gomock"
)
// MockStartClientWrapper is a mock of StartClientWrapper interface.
type MockStartClientWrapper struct {
ctrl *gomock.Controller
recorder *MockStartClientWrapperMockRecorder
isgomock struct{}
}
// MockStartClientWrapperMockRecorder is the mock recorder for MockStartClientWrapper.
type MockStartClientWrapperMockRecorder struct {
mock *MockStartClientWrapper
}
// NewMockStartClientWrapper creates a new mock instance.
func NewMockStartClientWrapper(ctrl *gomock.Controller) *MockStartClientWrapper {
mock := &MockStartClientWrapper{ctrl: ctrl}
mock.recorder = &MockStartClientWrapperMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockStartClientWrapper) EXPECT() *MockStartClientWrapperMockRecorder {
return m.recorder
}
// Start mocks base method.
func (m *MockStartClientWrapper) Start(arg0 pyroscope.Config) (*pyroscope.Profiler, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Start", arg0)
ret0, _ := ret[0].(*pyroscope.Profiler)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Start indicates an expected call of Start.
func (mr *MockStartClientWrapperMockRecorder) Start(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Start", reflect.TypeOf((*MockStartClientWrapper)(nil).Start), arg0)
}