diff --git a/internal/processor/test/struct-method-get_test.go b/internal/processor/test/struct-method-get_test.go index e88b915..00dbaa1 100644 --- a/internal/processor/test/struct-method-get_test.go +++ b/internal/processor/test/struct-method-get_test.go @@ -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 {