Annotations cannot being empty
This commit is contained in:
parent
f78e2e3849
commit
497246f8ba
9 changed files with 28 additions and 26 deletions
|
|
@ -38,7 +38,6 @@ func TestParse(t *testing.T) {
|
|||
annotations map[string]string
|
||||
expected *Config
|
||||
}{
|
||||
{map[string]string{annotation: ""}, &Config{Enabled: true, Header: ""}},
|
||||
{map[string]string{annotation: "keep-alive"}, &Config{Enabled: true, Header: "keep-alive"}},
|
||||
{map[string]string{}, &Config{Enabled: false}},
|
||||
{nil, &Config{Enabled: false}},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue