You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

12 lines
208 B

package testutil
import (
"testing"
)
// SetEnv sets environment variable and sets delete callback
// to unset variable after test.
func SetEnv(t *testing.T, k, v string) {
// Set envs.
t.Setenv(k, v)
}