porttestutil

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 porttestutil contains routines used to create and manage ports for test cases.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTestPort

func CreateTestPort(t *testing.T, ctx *fwdcontext.Context, name string) fwdport.Port

CreateTestPort creates a test port using the specified name.

func DescTestPort

func DescTestPort(name string) *fwdpb.PortDesc

DescTestPort builds a port descriptor for a test port using the specified unique name. Test ports are created using CPU ports.

func PortMap

func PortMap(ports []fwdport.Port) map[fwdobject.ID]bool

PortMap returns a map of ports that have been selected by the port group. Selected ports can be identified by the non-zero tx counters.

Types

This section is empty.

Jump to

Keyboard shortcuts

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