mock_fwdport

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: 7 Imported by: 0

Documentation

Overview

Package mock_fwdport is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockPort

type MockPort struct {
	// contains filtered or unexported fields
}

MockPort is a mock of Port interface.

func NewMockPort

func NewMockPort(ctrl *gomock.Controller) *MockPort

NewMockPort creates a new mock instance.

func (*MockPort) Acquire

func (m *MockPort) Acquire() error

Acquire mocks base method.

func (*MockPort) Actions

func (m *MockPort) Actions(arg0 forwarding.PortAction) fwdaction.Actions

Actions mocks base method.

func (*MockPort) Attributes

func (m *MockPort) Attributes() fwdattribute.Set

Attributes mocks base method.

func (*MockPort) Counters

func (m *MockPort) Counters() map[forwarding.CounterId]fwdobject.Counter

Counters mocks base method.

func (*MockPort) EXPECT

func (m *MockPort) EXPECT() *MockPortMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockPort) ID

func (m *MockPort) ID() fwdobject.ID

ID mocks base method.

func (*MockPort) Increment

func (m *MockPort) Increment(arg0 forwarding.CounterId, arg1 uint32)

Increment mocks base method.

func (*MockPort) Init

func (m *MockPort) Init(arg0 fwdobject.ID, arg1 fwdobject.NID, arg2 func())

Init mocks base method.

func (*MockPort) NID

func (m *MockPort) NID() fwdobject.NID

NID mocks base method.

func (*MockPort) Release

func (m *MockPort) Release(arg0 bool) error

Release mocks base method.

func (*MockPort) State

State mocks base method.

func (*MockPort) String

func (m *MockPort) String() string

String mocks base method.

func (*MockPort) Update

func (m *MockPort) Update(arg0 *forwarding.PortUpdateDesc) error

Update mocks base method.

func (*MockPort) Write

func (m *MockPort) Write(arg0 fwdpacket.Packet) (fwdaction.State, error)

Write mocks base method.

type MockPortMockRecorder

type MockPortMockRecorder struct {
	// contains filtered or unexported fields
}

MockPortMockRecorder is the mock recorder for MockPort.

func (*MockPortMockRecorder) Acquire

func (mr *MockPortMockRecorder) Acquire() *gomock.Call

Acquire indicates an expected call of Acquire.

func (*MockPortMockRecorder) Actions

func (mr *MockPortMockRecorder) Actions(arg0 interface{}) *gomock.Call

Actions indicates an expected call of Actions.

func (*MockPortMockRecorder) Attributes

func (mr *MockPortMockRecorder) Attributes() *gomock.Call

Attributes indicates an expected call of Attributes.

func (*MockPortMockRecorder) Counters

func (mr *MockPortMockRecorder) Counters() *gomock.Call

Counters indicates an expected call of Counters.

func (*MockPortMockRecorder) ID

func (mr *MockPortMockRecorder) ID() *gomock.Call

ID indicates an expected call of ID.

func (*MockPortMockRecorder) Increment

func (mr *MockPortMockRecorder) Increment(arg0, arg1 interface{}) *gomock.Call

Increment indicates an expected call of Increment.

func (*MockPortMockRecorder) Init

func (mr *MockPortMockRecorder) Init(arg0, arg1, arg2 interface{}) *gomock.Call

Init indicates an expected call of Init.

func (*MockPortMockRecorder) NID

func (mr *MockPortMockRecorder) NID() *gomock.Call

NID indicates an expected call of NID.

func (*MockPortMockRecorder) Release

func (mr *MockPortMockRecorder) Release(arg0 interface{}) *gomock.Call

Release indicates an expected call of Release.

func (*MockPortMockRecorder) State

func (mr *MockPortMockRecorder) State(arg0 interface{}) *gomock.Call

State indicates an expected call of State.

func (*MockPortMockRecorder) String

func (mr *MockPortMockRecorder) String() *gomock.Call

String indicates an expected call of String.

func (*MockPortMockRecorder) Update

func (mr *MockPortMockRecorder) Update(arg0 interface{}) *gomock.Call

Update indicates an expected call of Update.

func (*MockPortMockRecorder) Write

func (mr *MockPortMockRecorder) Write(arg0 interface{}) *gomock.Call

Write indicates an expected call of Write.

Jump to

Keyboard shortcuts

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