From fa8f0b7cfc8655f9824275d69f96edb25d28614e Mon Sep 17 00:00:00 2001 From: Joel Wetzell Date: Mon, 2 Mar 2026 20:53:20 -0600 Subject: [PATCH] add test for getting array and void from struct --- .../processor/test/struct-method-get_test.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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 {