Skip to content

Commit deab071

Browse files
Apply suggestions from Danny's code review
Co-authored-by: Danny Kopping <[email protected]>
1 parent 73696ae commit deab071

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

options_test.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,15 @@ type testEnvCase struct {
1515
Actual func() interface{}
1616
}
1717

18-
func TestEnvOptions(t *testing.T) {
18+
// TestEnvOptionParsing tests that given environment variables of different types are handled as expected.
19+
func TestEnvOptionParsing(t *testing.T) {
1920
t.Setenv("SETUP_SCRIPT", "setup.sh")
2021
t.Setenv("CACHE_TTL_DAYS", "7")
2122
t.Setenv("IGNORE_PATHS", "/var,/tmp")
2223
t.Setenv("SKIP_REBUILD", "true")
2324
t.Setenv("GIT_CLONE_SINGLE_BRANCH", "")
2425

25-
var o = envbuilder.Options{}
26+
var o envbuilder.Options
2627
cmd := serpent.Command{
2728
Options: o.CLI(),
2829
Handler: func(inv *serpent.Invocation) error {

0 commit comments

Comments
 (0)