// testGetenv gives us a controlled set of variables for testing Expand. func testGetenv(s string) string { … } var expandTests … func TestExpand(t *testing.T) { … } var global … func BenchmarkExpand(b *testing.B) { … } func TestConsistentEnviron(t *testing.T) { … } func TestUnsetenv(t *testing.T) { … } func TestClearenv(t *testing.T) { … } func TestLookupEnv(t *testing.T) { … } // On Windows, Environ was observed to report keys with a single leading "=". // Check that they are properly reported by LookupEnv and can be set by SetEnv. // See https://golang.org/issue/49886. func TestEnvironConsistency(t *testing.T) { … }