-
Notifications
You must be signed in to change notification settings - Fork 25
/
mock_classifier.go
79 lines (66 loc) · 2.58 KB
/
mock_classifier.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: classifier.go
// Package mocks is a generated GoMock package.
package mocks
import (
reflect "reflect"
languagev1 "github.com/fluxninja/aperture/v2/api/gen/proto/go/aperture/policy/language/v1"
iface "github.com/fluxninja/aperture/v2/pkg/policies/flowcontrol/iface"
gomock "github.com/golang/mock/gomock"
prometheus "github.com/prometheus/client_golang/prometheus"
)
// MockClassifier is a mock of Classifier interface.
type MockClassifier struct {
ctrl *gomock.Controller
recorder *MockClassifierMockRecorder
}
// MockClassifierMockRecorder is the mock recorder for MockClassifier.
type MockClassifierMockRecorder struct {
mock *MockClassifier
}
// NewMockClassifier creates a new mock instance.
func NewMockClassifier(ctrl *gomock.Controller) *MockClassifier {
mock := &MockClassifier{ctrl: ctrl}
mock.recorder = &MockClassifierMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockClassifier) EXPECT() *MockClassifierMockRecorder {
return m.recorder
}
// GetClassifierID mocks base method.
func (m *MockClassifier) GetClassifierID() iface.ClassifierID {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetClassifierID")
ret0, _ := ret[0].(iface.ClassifierID)
return ret0
}
// GetClassifierID indicates an expected call of GetClassifierID.
func (mr *MockClassifierMockRecorder) GetClassifierID() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetClassifierID", reflect.TypeOf((*MockClassifier)(nil).GetClassifierID))
}
// GetRequestCounter mocks base method.
func (m *MockClassifier) GetRequestCounter() prometheus.Counter {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetRequestCounter")
ret0, _ := ret[0].(prometheus.Counter)
return ret0
}
// GetRequestCounter indicates an expected call of GetRequestCounter.
func (mr *MockClassifierMockRecorder) GetRequestCounter() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRequestCounter", reflect.TypeOf((*MockClassifier)(nil).GetRequestCounter))
}
// GetSelectors mocks base method.
func (m *MockClassifier) GetSelectors() []*languagev1.Selector {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetSelectors")
ret0, _ := ret[0].([]*languagev1.Selector)
return ret0
}
// GetSelectors indicates an expected call of GetSelectors.
func (mr *MockClassifierMockRecorder) GetSelectors() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSelectors", reflect.TypeOf((*MockClassifier)(nil).GetSelectors))
}