func NewEnvFunc(tb testing.TB) func(string) map[string]string {
	tempDirPath := tb.TempDir()
	return func(use string) map[string]string {
		return map[string]string{
			useEnvVar(use, "CACHE_DIR"): tempDirPath,
			"PATH":                      os.Getenv("PATH"),
		}
	}
}
// NewEnvFunc returns a new env func for testing.
NewEnvFunc returns a new env func for testing.
// NewEnvFunc returns a new env func for testing .
func NewEnvFunc(tb testing.TB) func(string) map[string]string {
	tempDirPath := tb.TempDir()
	return func(use string) map[string]string {
		return map[string]string{
			useEnvVar(use, "CACHE_DIR"): tempDirPath,
			"PATH":                      os.Getenv("PATH"),
		}
	}
}
func NewEnvFunc ( tb testing . TB ) func ( string ) map [ string ] string { tempDirPath := tb . TempDir ( ) return func ( use string ) map [ string ] string { return map [ string ] string { useEnvVar ( use , " " ) : tempDirPath , " " : os . Getenv ( " " ) , } } }
NewEnvFunc returns a new env func for testing.
NewEnvFunc returns a new env func for testing .