forked from scionproto/scion
/
segutil.go
48 lines (40 loc) · 1.45 KB
/
segutil.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
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/scionproto/scion/go/path_srv/internal/segutil (interfaces: Policy)
// Package mock_segutil is a generated GoMock package.
package mock_segutil
import (
gomock "github.com/golang/mock/gomock"
pathpol "github.com/scionproto/scion/go/lib/pathpol"
reflect "reflect"
)
// MockPolicy is a mock of Policy interface
type MockPolicy struct {
ctrl *gomock.Controller
recorder *MockPolicyMockRecorder
}
// MockPolicyMockRecorder is the mock recorder for MockPolicy
type MockPolicyMockRecorder struct {
mock *MockPolicy
}
// NewMockPolicy creates a new mock instance
func NewMockPolicy(ctrl *gomock.Controller) *MockPolicy {
mock := &MockPolicy{ctrl: ctrl}
mock.recorder = &MockPolicyMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockPolicy) EXPECT() *MockPolicyMockRecorder {
return m.recorder
}
// FilterOpt mocks base method
func (m *MockPolicy) FilterOpt(arg0 pathpol.PathSet, arg1 pathpol.FilterOptions) pathpol.PathSet {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "FilterOpt", arg0, arg1)
ret0, _ := ret[0].(pathpol.PathSet)
return ret0
}
// FilterOpt indicates an expected call of FilterOpt
func (mr *MockPolicyMockRecorder) FilterOpt(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FilterOpt", reflect.TypeOf((*MockPolicy)(nil).FilterOpt), arg0, arg1)
}