We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 73696ae commit deab071Copy full SHA for deab071
options_test.go
@@ -15,14 +15,15 @@ type testEnvCase struct {
15
Actual func() interface{}
16
}
17
18
-func TestEnvOptions(t *testing.T) {
+// TestEnvOptionParsing tests that given environment variables of different types are handled as expected.
19
+func TestEnvOptionParsing(t *testing.T) {
20
t.Setenv("SETUP_SCRIPT", "setup.sh")
21
t.Setenv("CACHE_TTL_DAYS", "7")
22
t.Setenv("IGNORE_PATHS", "/var,/tmp")
23
t.Setenv("SKIP_REBUILD", "true")
24
t.Setenv("GIT_CLONE_SINGLE_BRANCH", "")
25
- var o = envbuilder.Options{}
26
+ var o envbuilder.Options
27
cmd := serpent.Command{
28
Options: o.CLI(),
29
Handler: func(inv *serpent.Invocation) error {
0 commit comments