add test for getting array and void from struct

This commit is contained in:
Joel Wetzell
2026-03-02 20:53:20 -06:00
parent d316147411
commit fa8f0b7cfc

View File

@@ -73,6 +73,22 @@ func TestGoodStructMethodGet(t *testing.T) {
payload: TestStruct{Bool: true},
expected: true,
},
{
name: "array data",
params: map[string]any{
"name": "GetData",
},
payload: TestStruct{Data: []string{"hello"}},
expected: []string{"hello"},
},
{
name: "void",
params: map[string]any{
"name": "Void",
},
payload: TestStruct{},
expected: nil,
},
}
for _, test := range tests {