github.com/Heebron/moby@v0.0.0-20221111184709-6eab4f55faf7/libnetwork/testutils/context_windows.go (about) 1 package testutils 2 3 import "testing" 4 5 // SetupTestOSContext joins a new network namespace, and returns its associated 6 // teardown function. 7 // 8 // Example usage: 9 // 10 // defer SetupTestOSContext(t)() 11 func SetupTestOSContext(t *testing.T) func() { 12 return func() {} 13 }