- Sort Score
- Result 10 results
- Languages All
Results 41 - 44 of 44 for unsetEnv (0.1 sec)
-
src/cmd/dist/test.go
} setupCmd = func(cmd *exec.Cmd) { setDir(cmd, filepath.Join(goroot, "src")) if len(opts.env) != 0 { for _, kv := range opts.env { if i := strings.Index(kv, "="); i < 0 { unsetEnv(cmd, kv[:len(kv)-1]) } else { setEnv(cmd, kv[:i], kv[i+1:]) } } } if runOnHost { setEnv(cmd, "GOARCH", gohostarch) setEnv(cmd, "GOOS", gohostos) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 16:01:35 UTC 2024 - 50K bytes - Viewed (0) -
cmd/test-utils_test.go
// disable ENVs which interfere with tests. for _, env := range []string{ crypto.EnvKMSAutoEncryption, config.EnvAccessKey, config.EnvSecretKey, config.EnvRootUser, config.EnvRootPassword, } { os.Unsetenv(env) } // Set as non-distributed. globalIsDistErasure = false // Disable printing console messages during tests. color.Output = io.Discard // Disable Error logging in testing.
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jun 10 15:50:49 UTC 2024 - 76.9K bytes - Viewed (0) -
src/testing/testing.go
c.Fatalf("cannot set environment variable: %v", err) } if ok { c.Cleanup(func() { os.Setenv(key, prevValue) }) } else { c.Cleanup(func() { os.Unsetenv(key) }) } } // panicHandling controls the panic handling used by runCleanup. type panicHandling int const ( normalPanic panicHandling = iota recoverAndReturnPanic )
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 76.1K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go
{"Stdout", Var, 0}, {"Symlink", Func, 0}, {"SyscallError", Type, 0}, {"SyscallError.Err", Field, 0}, {"SyscallError.Syscall", Field, 0}, {"TempDir", Func, 0}, {"Truncate", Func, 0}, {"Unsetenv", Func, 4}, {"UserCacheDir", Func, 11}, {"UserConfigDir", Func, 13}, {"UserHomeDir", Func, 12}, {"WriteFile", Func, 16}, }, "os/exec": { {"(*Cmd).CombinedOutput", Method, 0},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 534.2K bytes - Viewed (0)