- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestUnsetenv (0.07 sec)
-
src/os/env_test.go
} if err := Setenv(testKey, "1"); err != nil { t.Fatalf("Setenv: %v", err) } if !set() { t.Error("Setenv didn't set TestUnsetenv") } if err := Unsetenv(testKey); err != nil { t.Fatalf("Unsetenv: %v", err) } if set() { t.Fatal("Unsetenv didn't clear TestUnsetenv") } } func TestClearenv(t *testing.T) { const testKey = "GO_TEST_CLEARENV" const testValue = "1" // reset env
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jul 04 15:31:54 UTC 2023 - 5K bytes - Viewed (0)