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 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)()

Source Files

context.go net.go

Version
v0.6.0-rc6
Published
Jan 31, 2016
Platform
js/wasm
Imports
6 packages
Last checked
2 hours ago

Tools for package owners.