testing

package
v1.13.1 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMockNetIO

func NewMockNetIO(testMibIPForwardRows []antreasyscall.MibIPForwardRow) antreasyscall.NetIOInterface

Types

type MockNetIO

type MockNetIO struct {
	GetIPInterfaceEntryErr  error
	SetIPInterfaceEntryErr  error
	CreateIPForwardEntryErr error
	DeleteIPForwardEntryErr error
	ListIPForwardRowsErr    error
	IPForwardRows           []antreasyscall.MibIPForwardRow
}

MockNetIO is a custom defined mock struct, not generated by MockGen.

func (*MockNetIO) CreateIPForwardEntry

func (n *MockNetIO) CreateIPForwardEntry(_ *antreasyscall.MibIPForwardRow) (errcode error)

func (*MockNetIO) DeleteIPForwardEntry

func (n *MockNetIO) DeleteIPForwardEntry(_ *antreasyscall.MibIPForwardRow) (errcode error)

func (*MockNetIO) GetIPInterfaceEntry

func (n *MockNetIO) GetIPInterfaceEntry(_ *antreasyscall.MibIPInterfaceRow) (errcode error)

func (*MockNetIO) ListIPForwardRows

func (n *MockNetIO) ListIPForwardRows(_ uint16) ([]antreasyscall.MibIPForwardRow, error)

func (*MockNetIO) SetIPInterfaceEntry

func (n *MockNetIO) SetIPInterfaceEntry(_ *antreasyscall.MibIPInterfaceRow) (errcode error)

Jump to

Keyboard shortcuts

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