- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for dedupEnvCase (0.09 sec)
-
src/os/exec/env_test.go
// Plan 9 needs to preserve environment variables with NUL (#56544). nulOK: true, in: []string{"path=one\x00two"}, want: []string{"path=one\x00two"}, }, } for _, tt := range tests { got, err := dedupEnvCase(tt.noCase, tt.nulOK, tt.in) if !reflect.DeepEqual(got, tt.want) || (err != nil) != tt.wantErr { t.Errorf("Dedup(%v, %q) = %q, %v; want %q, error:%v", tt.noCase, tt.in, got, err, tt.want, tt.wantErr) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 04 01:23:16 UTC 2022 - 1.7K bytes - Viewed (0) -
src/os/exec/exec.go
func dedupEnv(env []string) ([]string, error) { return dedupEnvCase(runtime.GOOS == "windows", runtime.GOOS == "plan9", env) } // dedupEnvCase is dedupEnv with a case option for testing. // If caseInsensitive is true, the case of keys is ignored. // If nulOK is false, items containing NUL characters are allowed. func dedupEnvCase(caseInsensitive, nulOK bool, env []string) ([]string, error) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 20:13:53 UTC 2024 - 41.4K bytes - Viewed (0)