package testutils
import "github.com/docker/libnetwork/testutils"
Index ¶
Functions ¶
func IsRunningInContainer ¶
func IsRunningInContainer() bool
IsRunningInContainer returns whether the test is running inside a container.
func SetupTestOSContext ¶
SetupTestOSContext joins a new network namespace, and returns its associated teardown function.
Example usage:
defer SetupTestOSContext(t)()
Source Files ¶
- Version
- v0.5.1
- Published
- Dec 7, 2015
- Platform
- js/wasm
- Imports
- 5 packages
- Last checked
- 2 hours ago –
Tools for package owners.