testutils

package
v1.3.3-0...-c81abef Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsRunningInContainer

func IsRunningInContainer() bool

IsRunningInContainer returns whether the test is running inside a container.

func SetupTestOSContext

func SetupTestOSContext(t *testing.T) func()

SetupTestOSContext joins a new network namespace, and returns its associated teardown function.

Example usage:

defer SetupTestOSContext(t)()

Types

This section is empty.

Jump to

Keyboard shortcuts

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