Documentation ¶
Overview ¶
Package mock_fwdpacket is a generated GoMock package.
Index ¶
- type MockPacket
- func (m *MockPacket) Attributes() fwdattribute.Set
- func (m *MockPacket) Debug(arg0 bool)
- func (m *MockPacket) Decap(arg0 forwarding.PacketHeaderId) error
- func (m *MockPacket) EXPECT() *MockPacketMockRecorder
- func (m *MockPacket) Encap(arg0 forwarding.PacketHeaderId) error
- func (m *MockPacket) Field(arg0 fwdpacket.FieldID) ([]byte, error)
- func (m *MockPacket) Frame() []byte
- func (m *MockPacket) Length() int
- func (m *MockPacket) Log() []string
- func (m *MockPacket) Logf(arg0 int, arg1 string, arg2 ...interface{})
- func (m *MockPacket) Mirror(arg0 []fwdpacket.FieldID) (fwdpacket.Packet, error)
- func (m *MockPacket) Reparse(arg0 forwarding.PacketHeaderId, arg1 []fwdpacket.FieldID, arg2 []byte) error
- func (m *MockPacket) StartHeader() forwarding.PacketHeaderId
- func (m *MockPacket) String() string
- func (m *MockPacket) Update(arg0 fwdpacket.FieldID, arg1 int, arg2 []byte) error
- type MockPacketMockRecorder
- func (mr *MockPacketMockRecorder) Attributes() *gomock.Call
- func (mr *MockPacketMockRecorder) Debug(arg0 interface{}) *gomock.Call
- func (mr *MockPacketMockRecorder) Decap(arg0 interface{}) *gomock.Call
- func (mr *MockPacketMockRecorder) Encap(arg0 interface{}) *gomock.Call
- func (mr *MockPacketMockRecorder) Field(arg0 interface{}) *gomock.Call
- func (mr *MockPacketMockRecorder) Frame() *gomock.Call
- func (mr *MockPacketMockRecorder) Length() *gomock.Call
- func (mr *MockPacketMockRecorder) Log() *gomock.Call
- func (mr *MockPacketMockRecorder) Logf(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockPacketMockRecorder) Mirror(arg0 interface{}) *gomock.Call
- func (mr *MockPacketMockRecorder) Reparse(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockPacketMockRecorder) StartHeader() *gomock.Call
- func (mr *MockPacketMockRecorder) String() *gomock.Call
- func (mr *MockPacketMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockPacket ¶
type MockPacket struct {
// contains filtered or unexported fields
}
MockPacket is a mock of Packet interface.
func NewMockPacket ¶
func NewMockPacket(ctrl *gomock.Controller) *MockPacket
NewMockPacket creates a new mock instance.
func (*MockPacket) Attributes ¶
func (m *MockPacket) Attributes() fwdattribute.Set
Attributes mocks base method.
func (*MockPacket) Decap ¶
func (m *MockPacket) Decap(arg0 forwarding.PacketHeaderId) error
Decap mocks base method.
func (*MockPacket) EXPECT ¶
func (m *MockPacket) EXPECT() *MockPacketMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPacket) Encap ¶
func (m *MockPacket) Encap(arg0 forwarding.PacketHeaderId) error
Encap mocks base method.
func (*MockPacket) Field ¶
func (m *MockPacket) Field(arg0 fwdpacket.FieldID) ([]byte, error)
Field mocks base method.
func (*MockPacket) Logf ¶
func (m *MockPacket) Logf(arg0 int, arg1 string, arg2 ...interface{})
Logf mocks base method.
func (*MockPacket) Reparse ¶
func (m *MockPacket) Reparse(arg0 forwarding.PacketHeaderId, arg1 []fwdpacket.FieldID, arg2 []byte) error
Reparse mocks base method.
func (*MockPacket) StartHeader ¶
func (m *MockPacket) StartHeader() forwarding.PacketHeaderId
StartHeader mocks base method.
type MockPacketMockRecorder ¶
type MockPacketMockRecorder struct {
// contains filtered or unexported fields
}
MockPacketMockRecorder is the mock recorder for MockPacket.
func (*MockPacketMockRecorder) Attributes ¶
func (mr *MockPacketMockRecorder) Attributes() *gomock.Call
Attributes indicates an expected call of Attributes.
func (*MockPacketMockRecorder) Debug ¶
func (mr *MockPacketMockRecorder) Debug(arg0 interface{}) *gomock.Call
Debug indicates an expected call of Debug.
func (*MockPacketMockRecorder) Decap ¶
func (mr *MockPacketMockRecorder) Decap(arg0 interface{}) *gomock.Call
Decap indicates an expected call of Decap.
func (*MockPacketMockRecorder) Encap ¶
func (mr *MockPacketMockRecorder) Encap(arg0 interface{}) *gomock.Call
Encap indicates an expected call of Encap.
func (*MockPacketMockRecorder) Field ¶
func (mr *MockPacketMockRecorder) Field(arg0 interface{}) *gomock.Call
Field indicates an expected call of Field.
func (*MockPacketMockRecorder) Frame ¶
func (mr *MockPacketMockRecorder) Frame() *gomock.Call
Frame indicates an expected call of Frame.
func (*MockPacketMockRecorder) Length ¶
func (mr *MockPacketMockRecorder) Length() *gomock.Call
Length indicates an expected call of Length.
func (*MockPacketMockRecorder) Log ¶
func (mr *MockPacketMockRecorder) Log() *gomock.Call
Log indicates an expected call of Log.
func (*MockPacketMockRecorder) Logf ¶
func (mr *MockPacketMockRecorder) Logf(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
Logf indicates an expected call of Logf.
func (*MockPacketMockRecorder) Mirror ¶
func (mr *MockPacketMockRecorder) Mirror(arg0 interface{}) *gomock.Call
Mirror indicates an expected call of Mirror.
func (*MockPacketMockRecorder) Reparse ¶
func (mr *MockPacketMockRecorder) Reparse(arg0, arg1, arg2 interface{}) *gomock.Call
Reparse indicates an expected call of Reparse.
func (*MockPacketMockRecorder) StartHeader ¶
func (mr *MockPacketMockRecorder) StartHeader() *gomock.Call
StartHeader indicates an expected call of StartHeader.
func (*MockPacketMockRecorder) String ¶
func (mr *MockPacketMockRecorder) String() *gomock.Call
String indicates an expected call of String.
func (*MockPacketMockRecorder) Update ¶
func (mr *MockPacketMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call
Update indicates an expected call of Update.