package testutils
import "github.com/docker/docker/libnetwork/testutils"
Index ¶
Functions ¶
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.
type OSContext ¶
type OSContext struct{}
func SetupTestOSContextEx ¶
func (*OSContext) Cleanup ¶
func (*OSContext) Go ¶
Go starts running fn in a new goroutine inside the test OS context.
func (*OSContext) Set ¶
Source Files ¶
- Version
- v24.0.0-rc.2+incompatible
- Published
- May 5, 2023
- Platform
- windows/amd64
- Imports
- 1 packages
- Last checked
- 2 hours ago –
Tools for package owners.