mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 19:17:58 +00:00
Add string slice with single value test function
This commit is contained in:
@@ -180,6 +180,17 @@ func TestFieldDataGet(t *testing.T) {
|
||||
[]string{"123", "abc"},
|
||||
},
|
||||
|
||||
"string slice type, single value": {
|
||||
map[string]*FieldSchema{
|
||||
"foo": &FieldSchema{Type: TypeStringSlice},
|
||||
},
|
||||
map[string]interface{}{
|
||||
"foo": "abc",
|
||||
},
|
||||
"foo",
|
||||
[]string{"abc"},
|
||||
},
|
||||
|
||||
"comma string slice type, comma string with one value": {
|
||||
map[string]*FieldSchema{
|
||||
"foo": &FieldSchema{Type: TypeCommaStringSlice},
|
||||
|
||||
Reference in New Issue
Block a user