Documentation ¶ Index ¶ func Setenv(t *testing.T, key, value string) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Setenv ¶ func Setenv(t *testing.T, key, value string) Setenv set environment variable temporarily for testing note: - not safe in parallel (when t.Parallel() is called before) - should not use in Fuzz func - use official t.Setenv() when upgrading to go 1.17+ Types ¶ This section is empty. Source Files ¶ View all Source files test_utils.go Click to show internal directories. Click to hide internal directories.