-
Notifications
You must be signed in to change notification settings - Fork 8
/
profile_mock.go
79 lines (66 loc) · 2.31 KB
/
profile_mock.go
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
// Code generated by MockGen. DO NOT EDIT.
// Source: profile.go
// Package autopprof is a generated GoMock package.
package autopprof
import (
reflect "reflect"
gomock "github.com/golang/mock/gomock"
)
// Mockprofiler is a mock of profiler interface.
type Mockprofiler struct {
ctrl *gomock.Controller
recorder *MockprofilerMockRecorder
}
// MockprofilerMockRecorder is the mock recorder for Mockprofiler.
type MockprofilerMockRecorder struct {
mock *Mockprofiler
}
// NewMockprofiler creates a new mock instance.
func NewMockprofiler(ctrl *gomock.Controller) *Mockprofiler {
mock := &Mockprofiler{ctrl: ctrl}
mock.recorder = &MockprofilerMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *Mockprofiler) EXPECT() *MockprofilerMockRecorder {
return m.recorder
}
// profileCPU mocks base method.
func (m *Mockprofiler) profileCPU() ([]byte, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "profileCPU")
ret0, _ := ret[0].([]byte)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// profileCPU indicates an expected call of profileCPU.
func (mr *MockprofilerMockRecorder) profileCPU() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "profileCPU", reflect.TypeOf((*Mockprofiler)(nil).profileCPU))
}
// profileGoroutine mocks base method.
func (m *Mockprofiler) profileGoroutine() ([]byte, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "profileGoroutine")
ret0, _ := ret[0].([]byte)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// profileGoroutine indicates an expected call of profileGoroutine.
func (mr *MockprofilerMockRecorder) profileGoroutine() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "profileGoroutine", reflect.TypeOf((*Mockprofiler)(nil).profileGoroutine))
}
// profileHeap mocks base method.
func (m *Mockprofiler) profileHeap() ([]byte, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "profileHeap")
ret0, _ := ret[0].([]byte)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// profileHeap indicates an expected call of profileHeap.
func (mr *MockprofilerMockRecorder) profileHeap() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "profileHeap", reflect.TypeOf((*Mockprofiler)(nil).profileHeap))
}