testutils

package
v0.0.0-...-850db68 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2020 License: Apache-2.0 Imports: 6 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 RunningOnCircleCI

func RunningOnCircleCI() bool

RunningOnCircleCI returns true if being executed on libnetwork Circle CI setup

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