package testutils
import "github.com/docker/libnetwork/testutils"
Index ¶
- func IsRunningInContainer() bool
- func RunningOnCircleCI() bool
- func SetupTestOSContext(t *testing.T) func()
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 ¶
SetupTestOSContext joins a new network namespace, and returns its associated teardown function.
Example usage:
defer SetupTestOSContext(t)()
Source Files ¶
- Version
- v0.5.6 (latest)
- Published
- Jan 15, 2016
- Platform
- darwin/amd64
- Imports
- 6 packages
- Last checked
- 12 hours ago –
Tools for package owners.