package testutils
import "github.com/docker/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.14+incompatible
- Published
- Jun 5, 2024
- Platform
- windows/amd64
- Imports
- 2 packages
- Last checked
- 34 minutes ago –
Tools for package owners.