helper/schema: test that set can be nil
This commit is contained in:
parent
e4f0f6b15d
commit
9b8b38cbb1
|
@ -120,6 +120,15 @@ func TestMapFieldWriter(t *testing.T) {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
"list of resources nil": {
|
||||||
|
[]string{"listResource"},
|
||||||
|
nil,
|
||||||
|
false,
|
||||||
|
map[string]string{
|
||||||
|
"listResource.#": "0",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
"list of strings": {
|
"list of strings": {
|
||||||
[]string{"list"},
|
[]string{"list"},
|
||||||
[]interface{}{"foo", "bar"},
|
[]interface{}{"foo", "bar"},
|
||||||
|
|
Loading…
Reference in New Issue