mirror of
https://github.com/jwetzell/showbridge-go.git
synced 2026-04-26 21:05:30 +00:00
add test for slice to struct get processors
This commit is contained in:
@@ -98,6 +98,14 @@ func TestGoodStructMethodGet(t *testing.T) {
|
||||
payload: &TestStruct{Data: "hello"},
|
||||
expected: "hello",
|
||||
},
|
||||
{
|
||||
name: "int slice",
|
||||
params: map[string]any{
|
||||
"name": "GetIntSlice",
|
||||
},
|
||||
payload: TestStruct{IntSlice: []int{1, 2, 3}},
|
||||
expected: []int{1, 2, 3},
|
||||
},
|
||||
}
|
||||
|
||||
for _, test := range tests {
|
||||
|
||||
Reference in New Issue
Block a user