Skip to content

Commit

Permalink
Add bool-specific test
Browse files Browse the repository at this point in the history
  • Loading branch information
sethvargo committed Aug 5, 2022
1 parent ce31e42 commit 63e4089
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions envconfig_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1506,6 +1506,18 @@ func TestProcessWith(t *testing.T) {
"FIELD": "foo",
}),
},
{
name: "bool_pointer",
input: &struct {
Field *bool `env:"FIELD,noinit"`
}{},
exp: &struct {
Field *bool `env:"FIELD,noinit"`
}{
Field: nil,
},
lookuper: MapLookuper(nil),
},

// Marshallers
{
Expand Down

0 comments on commit 63e4089

Please sign in to comment.