-
Notifications
You must be signed in to change notification settings - Fork 25
/
mock_classification_engine.go
77 lines (64 loc) · 2.89 KB
/
mock_classification_engine.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
// Code generated by MockGen. DO NOT EDIT.
// Source: classification-engine.go
// Package mocks is a generated GoMock package.
package mocks
import (
reflect "reflect"
iface "github.com/fluxninja/aperture/v2/pkg/policies/flowcontrol/iface"
gomock "github.com/golang/mock/gomock"
)
// MockClassificationEngine is a mock of ClassificationEngine interface.
type MockClassificationEngine struct {
ctrl *gomock.Controller
recorder *MockClassificationEngineMockRecorder
}
// MockClassificationEngineMockRecorder is the mock recorder for MockClassificationEngine.
type MockClassificationEngineMockRecorder struct {
mock *MockClassificationEngine
}
// NewMockClassificationEngine creates a new mock instance.
func NewMockClassificationEngine(ctrl *gomock.Controller) *MockClassificationEngine {
mock := &MockClassificationEngine{ctrl: ctrl}
mock.recorder = &MockClassificationEngineMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockClassificationEngine) EXPECT() *MockClassificationEngineMockRecorder {
return m.recorder
}
// GetClassifier mocks base method.
func (m *MockClassificationEngine) GetClassifier(classifierID iface.ClassifierID) iface.Classifier {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetClassifier", classifierID)
ret0, _ := ret[0].(iface.Classifier)
return ret0
}
// GetClassifier indicates an expected call of GetClassifier.
func (mr *MockClassificationEngineMockRecorder) GetClassifier(classifierID interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetClassifier", reflect.TypeOf((*MockClassificationEngine)(nil).GetClassifier), classifierID)
}
// RegisterClassifier mocks base method.
func (m *MockClassificationEngine) RegisterClassifier(classifier iface.Classifier) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "RegisterClassifier", classifier)
ret0, _ := ret[0].(error)
return ret0
}
// RegisterClassifier indicates an expected call of RegisterClassifier.
func (mr *MockClassificationEngineMockRecorder) RegisterClassifier(classifier interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegisterClassifier", reflect.TypeOf((*MockClassificationEngine)(nil).RegisterClassifier), classifier)
}
// UnregisterClassifier mocks base method.
func (m *MockClassificationEngine) UnregisterClassifier(classifier iface.Classifier) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "UnregisterClassifier", classifier)
ret0, _ := ret[0].(error)
return ret0
}
// UnregisterClassifier indicates an expected call of UnregisterClassifier.
func (mr *MockClassificationEngineMockRecorder) UnregisterClassifier(classifier interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UnregisterClassifier", reflect.TypeOf((*MockClassificationEngine)(nil).UnregisterClassifier), classifier)
}