vpptesting

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestCtx

type TestCtx struct {
	T       testing.TB
	Context context.Context
	Cancel  context.CancelFunc

	Conn *govppcore.Connection
	// contains filtered or unexported fields
}

func SetupVPP

func SetupVPP(t testing.TB) (tc *TestCtx)

func (*TestCtx) MustCli

func (ctx *TestCtx) MustCli(cmd ...string)

func (*TestCtx) RunCli

func (ctx *TestCtx) RunCli(cmd string) (string, error)

func (*TestCtx) RunCmd

func (ctx *TestCtx) RunCmd(cmd string, args ...string) (string, error)

func (*TestCtx) StatsConn

func (ctx *TestCtx) StatsConn() *govppcore.StatsConnection

func (*TestCtx) TeardownVPP

func (ctx *TestCtx) TeardownVPP()

func (*TestCtx) VPPVersion added in v0.9.0

func (ctx *TestCtx) VPPVersion() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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