allow struct based processors to also operate on pointers to structs

This commit is contained in:
Joel Wetzell
2026-03-08 13:14:50 -05:00
parent e5db9a48a9
commit 0732113a02
4 changed files with 24 additions and 2 deletions

View File

@@ -89,6 +89,14 @@ func TestGoodStructMethodGet(t *testing.T) {
payload: TestStruct{},
expected: nil,
},
{
name: "pointer to struct payload",
params: map[string]any{
"name": "GetData",
},
payload: &TestStruct{Data: "hello"},
expected: "hello",
},
}
for _, test := range tests {