package testutils
import "github.com/dotcloud/docker/libnetwork/testutils"
Index ¶
- func AssertSocketSameNetNS(t testing.TB, conn syscall.Conn)
- func SetupTestOSContext(t *testing.T) func()
- type Logger
Functions ¶
func AssertSocketSameNetNS ¶
AssertSocketSameNetNS is a no-op on platforms other than Linux.
func SetupTestOSContext ¶
SetupTestOSContext joins the current goroutine to a new network namespace, and returns its associated teardown function.
Example usage:
defer SetupTestOSContext(t)()
Types ¶
type Logger ¶
Logger is used to log non-fatal messages during tests.
Source Files ¶
- Version
- v24.0.2+incompatible
- Published
- May 25, 2023
- Platform
- js/wasm
- Imports
- 2 packages
- Last checked
- 1 second ago –
Tools for package owners.