Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockPacketFilter
- func (m *MockPacketFilter) AddUDPPacketHook(arg0 bool, arg1 net.IP, arg2 uint16, arg3 func(*net.UDPAddr, []byte) bool)
- func (m *MockPacketFilter) DropIncoming(arg0 []byte) bool
- func (m *MockPacketFilter) DropOutgoing(arg0 []byte) bool
- func (m *MockPacketFilter) EXPECT() *MockPacketFilterMockRecorder
- func (m *MockPacketFilter) SetNetwork(arg0 *net.IPNet)
- type MockPacketFilterMockRecorder
- func (mr *MockPacketFilterMockRecorder) AddUDPPacketHook(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockPacketFilterMockRecorder) DropIncoming(arg0 interface{}) *gomock.Call
- func (mr *MockPacketFilterMockRecorder) DropOutgoing(arg0 interface{}) *gomock.Call
- func (mr *MockPacketFilterMockRecorder) SetNetwork(arg0 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockPacketFilter ¶
type MockPacketFilter struct {
// contains filtered or unexported fields
}
MockPacketFilter is a mock of PacketFilter interface.
func NewMockPacketFilter ¶
func NewMockPacketFilter(ctrl *gomock.Controller) *MockPacketFilter
NewMockPacketFilter creates a new mock instance.
func (*MockPacketFilter) AddUDPPacketHook ¶
func (m *MockPacketFilter) AddUDPPacketHook(arg0 bool, arg1 net.IP, arg2 uint16, arg3 func(*net.UDPAddr, []byte) bool)
AddUDPPacketHook mocks base method.
func (*MockPacketFilter) DropIncoming ¶
func (m *MockPacketFilter) DropIncoming(arg0 []byte) bool
DropIncoming mocks base method.
func (*MockPacketFilter) DropOutgoing ¶
func (m *MockPacketFilter) DropOutgoing(arg0 []byte) bool
DropOutgoing mocks base method.
func (*MockPacketFilter) EXPECT ¶
func (m *MockPacketFilter) EXPECT() *MockPacketFilterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPacketFilter) SetNetwork ¶
func (m *MockPacketFilter) SetNetwork(arg0 *net.IPNet)
SetNetwork mocks base method.
type MockPacketFilterMockRecorder ¶
type MockPacketFilterMockRecorder struct {
// contains filtered or unexported fields
}
MockPacketFilterMockRecorder is the mock recorder for MockPacketFilter.
func (*MockPacketFilterMockRecorder) AddUDPPacketHook ¶
func (mr *MockPacketFilterMockRecorder) AddUDPPacketHook(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
AddUDPPacketHook indicates an expected call of AddUDPPacketHook.
func (*MockPacketFilterMockRecorder) DropIncoming ¶
func (mr *MockPacketFilterMockRecorder) DropIncoming(arg0 interface{}) *gomock.Call
DropIncoming indicates an expected call of DropIncoming.
func (*MockPacketFilterMockRecorder) DropOutgoing ¶
func (mr *MockPacketFilterMockRecorder) DropOutgoing(arg0 interface{}) *gomock.Call
DropOutgoing indicates an expected call of DropOutgoing.
func (*MockPacketFilterMockRecorder) SetNetwork ¶
func (mr *MockPacketFilterMockRecorder) SetNetwork(arg0 interface{}) *gomock.Call
SetNetwork indicates an expected call of SetNetwork.