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

@@ -72,6 +72,12 @@ func TestGoodStructFieldGet(t *testing.T) {
payload: TestStruct{Bool: true},
expected: true,
},
{
name: "pointer to struct payload",
params: map[string]any{"name": "Data"},
payload: &TestStruct{Data: "hello"},
expected: "hello",
},
}
for _, test := range tests {