-
Notifications
You must be signed in to change notification settings - Fork 51
/
mockmonitor.go
178 lines (153 loc) · 5.24 KB
/
mockmonitor.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
// Code generated by MockGen. DO NOT EDIT.
// Source: monitor/interfaces.go
// Package mockmonitor is a generated GoMock package.
package mockmonitor
import (
context "context"
reflect "reflect"
gomock "github.com/golang/mock/gomock"
config "go.aporeto.io/trireme-lib/monitor/config"
registerer "go.aporeto.io/trireme-lib/monitor/registerer"
)
// MockMonitor is a mock of Monitor interface
// nolint
type MockMonitor struct {
ctrl *gomock.Controller
recorder *MockMonitorMockRecorder
}
// MockMonitorMockRecorder is the mock recorder for MockMonitor
// nolint
type MockMonitorMockRecorder struct {
mock *MockMonitor
}
// NewMockMonitor creates a new mock instance
// nolint
func NewMockMonitor(ctrl *gomock.Controller) *MockMonitor {
mock := &MockMonitor{ctrl: ctrl}
mock.recorder = &MockMonitorMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
// nolint
func (m *MockMonitor) EXPECT() *MockMonitorMockRecorder {
return m.recorder
}
// Run mocks base method
// nolint
func (m *MockMonitor) Run(ctx context.Context) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Run", ctx)
ret0, _ := ret[0].(error)
return ret0
}
// Run indicates an expected call of Run
// nolint
func (mr *MockMonitorMockRecorder) Run(ctx interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Run", reflect.TypeOf((*MockMonitor)(nil).Run), ctx)
}
// UpdateConfiguration mocks base method
// nolint
func (m *MockMonitor) UpdateConfiguration(ctx context.Context, config *config.MonitorConfig) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "UpdateConfiguration", ctx, config)
ret0, _ := ret[0].(error)
return ret0
}
// UpdateConfiguration indicates an expected call of UpdateConfiguration
// nolint
func (mr *MockMonitorMockRecorder) UpdateConfiguration(ctx, config interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateConfiguration", reflect.TypeOf((*MockMonitor)(nil).UpdateConfiguration), ctx, config)
}
// Resync mocks base method
// nolint
func (m *MockMonitor) Resync(ctx context.Context) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Resync", ctx)
ret0, _ := ret[0].(error)
return ret0
}
// Resync indicates an expected call of Resync
// nolint
func (mr *MockMonitorMockRecorder) Resync(ctx interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Resync", reflect.TypeOf((*MockMonitor)(nil).Resync), ctx)
}
// MockImplementation is a mock of Implementation interface
// nolint
type MockImplementation struct {
ctrl *gomock.Controller
recorder *MockImplementationMockRecorder
}
// MockImplementationMockRecorder is the mock recorder for MockImplementation
// nolint
type MockImplementationMockRecorder struct {
mock *MockImplementation
}
// NewMockImplementation creates a new mock instance
// nolint
func NewMockImplementation(ctrl *gomock.Controller) *MockImplementation {
mock := &MockImplementation{ctrl: ctrl}
mock.recorder = &MockImplementationMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
// nolint
func (m *MockImplementation) EXPECT() *MockImplementationMockRecorder {
return m.recorder
}
// Run mocks base method
// nolint
func (m *MockImplementation) Run(ctx context.Context) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Run", ctx)
ret0, _ := ret[0].(error)
return ret0
}
// Run indicates an expected call of Run
// nolint
func (mr *MockImplementationMockRecorder) Run(ctx interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Run", reflect.TypeOf((*MockImplementation)(nil).Run), ctx)
}
// SetupConfig mocks base method
// nolint
func (m *MockImplementation) SetupConfig(registerer registerer.Registerer, cfg interface{}) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SetupConfig", registerer, cfg)
ret0, _ := ret[0].(error)
return ret0
}
// SetupConfig indicates an expected call of SetupConfig
// nolint
func (mr *MockImplementationMockRecorder) SetupConfig(registerer, cfg interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetupConfig", reflect.TypeOf((*MockImplementation)(nil).SetupConfig), registerer, cfg)
}
// SetupHandlers mocks base method
// nolint
func (m *MockImplementation) SetupHandlers(c *config.ProcessorConfig) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "SetupHandlers", c)
}
// SetupHandlers indicates an expected call of SetupHandlers
// nolint
func (mr *MockImplementationMockRecorder) SetupHandlers(c interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetupHandlers", reflect.TypeOf((*MockImplementation)(nil).SetupHandlers), c)
}
// Resync mocks base method
// nolint
func (m *MockImplementation) Resync(ctx context.Context) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Resync", ctx)
ret0, _ := ret[0].(error)
return ret0
}
// Resync indicates an expected call of Resync
// nolint
func (mr *MockImplementationMockRecorder) Resync(ctx interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Resync", reflect.TypeOf((*MockImplementation)(nil).Resync), ctx)
}