mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
helper/schema: more tests
This commit is contained in:
parent
e77b2b17c4
commit
f64b09a045
@ -167,6 +167,21 @@ func TestMapFieldWriter(t *testing.T) {
|
||||
true,
|
||||
map[string]string{},
|
||||
},
|
||||
|
||||
"full object": {
|
||||
nil,
|
||||
map[string]interface{}{
|
||||
"string": "foo",
|
||||
"list": []interface{}{"foo", "bar"},
|
||||
},
|
||||
false,
|
||||
map[string]string{
|
||||
"string": "foo",
|
||||
"list.#": "2",
|
||||
"list.0": "foo",
|
||||
"list.1": "bar",
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
for name, tc := range cases {
|
||||
|
Loading…
Reference in New Issue
Block a user