testutils

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NetNS

func NetNS(tb testing.TB) int

NetNS returns a file descriptor to a new network namespace. The netns handle is automatically closed as part of test cleanup.

func SkipOnOldKernel

func SkipOnOldKernel(tb testing.TB, target, reason string)

SkipOnOldKernel skips the test if the host's kernel is lower than the given x.y target version.

Types

This section is empty.

Jump to

Keyboard shortcuts

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