package testutils

import "github.com/dotcloud/docker/libnetwork/testutils"

Index

Functions

func SetupTestOSContext

func SetupTestOSContext(t *testing.T) func()

SetupTestOSContext joins the current goroutine to a new network namespace, and returns its associated teardown function.

Example usage:

defer SetupTestOSContext(t)()

Types

type Logger

type Logger interface {
	Logf(format string, args ...any)
}

Logger is used to log non-fatal messages during tests.

Source Files

context.go

Version
v24.0.0-rc.4+incompatible
Published
May 12, 2023
Platform
js/wasm
Imports
1 packages
Last checked
41 minutes ago

Tools for package owners.