Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var KnownLeakEnvironmentKeys = []string{
snykAPIKey,
}
KnownLeakEnvironmentKeys is cleared when IsolateEnvironmentForTest is called with no arguments.
Functions ¶
func IsolateEnvironmentForTest ¶
IsolateEnvironmentForTest clears environment variables for a test using t.Setenv(k, ""). If no keys are provided, it clears the variables listed in KnownLeakEnvironmentKeys. If explicit keys are provided, they OVERRIDE the default behavior: only the specified keys are cleared, and they are NOT merged with KnownLeakEnvironmentKeys. Empty keys are skipped.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.