mock_fwdpacket

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package mock_fwdpacket is a generated GoMock package.

Index

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) Debug

func (m *MockPacket) Debug(arg0 bool)

Debug 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) Frame

func (m *MockPacket) Frame() []byte

Frame mocks base method.

func (*MockPacket) Length

func (m *MockPacket) Length() int

Length mocks base method.

func (*MockPacket) Log

func (m *MockPacket) Log() []string

Log mocks base method.

func (*MockPacket) Logf

func (m *MockPacket) Logf(arg0 int, arg1 string, arg2 ...interface{})

Logf mocks base method.

func (*MockPacket) Mirror

func (m *MockPacket) Mirror(arg0 []fwdpacket.FieldID) (fwdpacket.Packet, error)

Mirror 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.

func (*MockPacket) String

func (m *MockPacket) String() string

String mocks base method.

func (*MockPacket) Update

func (m *MockPacket) Update(arg0 fwdpacket.FieldID, arg1 int, arg2 []byte) error

Update 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL