-
Notifications
You must be signed in to change notification settings - Fork 51
/
mockprocessor.go
136 lines (117 loc) · 4.09 KB
/
mockprocessor.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
// Code generated by MockGen. DO NOT EDIT.
// Source: monitor/processor/interfaces.go
// Package mockprocessor is a generated GoMock package.
package mockprocessor
import (
context "context"
reflect "reflect"
gomock "github.com/golang/mock/gomock"
common "go.aporeto.io/trireme-lib/common"
)
// MockProcessor is a mock of Processor interface
// nolint
type MockProcessor struct {
ctrl *gomock.Controller
recorder *MockProcessorMockRecorder
}
// MockProcessorMockRecorder is the mock recorder for MockProcessor
// nolint
type MockProcessorMockRecorder struct {
mock *MockProcessor
}
// NewMockProcessor creates a new mock instance
// nolint
func NewMockProcessor(ctrl *gomock.Controller) *MockProcessor {
mock := &MockProcessor{ctrl: ctrl}
mock.recorder = &MockProcessorMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
// nolint
func (m *MockProcessor) EXPECT() *MockProcessorMockRecorder {
return m.recorder
}
// Start mocks base method
// nolint
func (m *MockProcessor) Start(ctx context.Context, eventInfo *common.EventInfo) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Start", ctx, eventInfo)
ret0, _ := ret[0].(error)
return ret0
}
// Start indicates an expected call of Start
// nolint
func (mr *MockProcessorMockRecorder) Start(ctx, eventInfo interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Start", reflect.TypeOf((*MockProcessor)(nil).Start), ctx, eventInfo)
}
// Stop mocks base method
// nolint
func (m *MockProcessor) Stop(ctx context.Context, eventInfo *common.EventInfo) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Stop", ctx, eventInfo)
ret0, _ := ret[0].(error)
return ret0
}
// Stop indicates an expected call of Stop
// nolint
func (mr *MockProcessorMockRecorder) Stop(ctx, eventInfo interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Stop", reflect.TypeOf((*MockProcessor)(nil).Stop), ctx, eventInfo)
}
// Create mocks base method
// nolint
func (m *MockProcessor) Create(ctx context.Context, eventInfo *common.EventInfo) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Create", ctx, eventInfo)
ret0, _ := ret[0].(error)
return ret0
}
// Create indicates an expected call of Create
// nolint
func (mr *MockProcessorMockRecorder) Create(ctx, eventInfo interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockProcessor)(nil).Create), ctx, eventInfo)
}
// Destroy mocks base method
// nolint
func (m *MockProcessor) Destroy(ctx context.Context, eventInfo *common.EventInfo) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Destroy", ctx, eventInfo)
ret0, _ := ret[0].(error)
return ret0
}
// Destroy indicates an expected call of Destroy
// nolint
func (mr *MockProcessorMockRecorder) Destroy(ctx, eventInfo interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Destroy", reflect.TypeOf((*MockProcessor)(nil).Destroy), ctx, eventInfo)
}
// Pause mocks base method
// nolint
func (m *MockProcessor) Pause(ctx context.Context, eventInfo *common.EventInfo) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Pause", ctx, eventInfo)
ret0, _ := ret[0].(error)
return ret0
}
// Pause indicates an expected call of Pause
// nolint
func (mr *MockProcessorMockRecorder) Pause(ctx, eventInfo interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Pause", reflect.TypeOf((*MockProcessor)(nil).Pause), ctx, eventInfo)
}
// Resync mocks base method
// nolint
func (m *MockProcessor) Resync(ctx context.Context, EventInfo *common.EventInfo) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Resync", ctx, EventInfo)
ret0, _ := ret[0].(error)
return ret0
}
// Resync indicates an expected call of Resync
// nolint
func (mr *MockProcessorMockRecorder) Resync(ctx, EventInfo interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Resync", reflect.TypeOf((*MockProcessor)(nil).Resync), ctx, EventInfo)
}