Files
actions-runner-controller/testing/getenv.go
T

17 lines
191 B
Go
Raw Normal View History

2021-06-29 17:52:43 +09:00
package testing
import (
"os"
"testing"
)
func Getenv(t *testing.T, name string) string {
t.Helper()
v := os.Getenv(name)
if v == "" {
t.Fatal(name + " must be set")
}
return v
}