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() logr.Logger
- func (m *MockPacket) LogMsgs() []string
- 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) LogMsgs() *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
- type MockParser
- type MockParserMockRecorder
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) LogMsgs ¶ added in v0.4.0
func (m *MockPacket) LogMsgs() []string
LogMsgs 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) LogMsgs ¶ added in v0.4.0
func (mr *MockPacketMockRecorder) LogMsgs() *gomock.Call
LogMsgs indicates an expected call of LogMsgs.
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.
type MockParser ¶
type MockParser struct {
// contains filtered or unexported fields
}
MockParser is a mock of Parser interface.
func NewMockParser ¶
func NewMockParser(ctrl *gomock.Controller) *MockParser
NewMockParser creates a new mock instance.
func (*MockParser) EXPECT ¶
func (m *MockParser) EXPECT() *MockParserMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockParser) MaxSize ¶
func (m *MockParser) MaxSize(arg0 fwdpacket.FieldID) int
MaxSize mocks base method.
func (*MockParser) New ¶
func (m *MockParser) New(arg0 forwarding.PacketHeaderId, arg1 []byte) (fwdpacket.Packet, error)
New mocks base method.
type MockParserMockRecorder ¶
type MockParserMockRecorder struct {
// contains filtered or unexported fields
}
MockParserMockRecorder is the mock recorder for MockParser.
func (*MockParserMockRecorder) MaxSize ¶
func (mr *MockParserMockRecorder) MaxSize(arg0 interface{}) *gomock.Call
MaxSize indicates an expected call of MaxSize.
func (*MockParserMockRecorder) New ¶
func (mr *MockParserMockRecorder) New(arg0, arg1 interface{}) *gomock.Call
New indicates an expected call of New.
func (*MockParserMockRecorder) Validate ¶
func (mr *MockParserMockRecorder) Validate(arg0, arg1 interface{}) *gomock.Call
Validate indicates an expected call of Validate.