package testutils
import "github.com/dotcloud/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
- v23.0.2+incompatible
- Published
- Mar 23, 2023
- Platform
- linux/amd64
- Imports
- 5 packages
- Last checked
- 4 minutes ago –
Tools for package owners.