add test for slice to struct get processors

This commit is contained in:
Joel Wetzell
2026-03-17 19:17:10 -05:00
parent 5fc7b7399f
commit 1467d9de16
3 changed files with 28 additions and 6 deletions

View File

@@ -10,11 +10,12 @@ import (
)
type TestStruct struct {
String string
Int int
Float float64
Bool bool
Data any
String string
Int int
Float float64
Bool bool
Data any
IntSlice []int
}
func (t TestStruct) GetString() string {
@@ -37,6 +38,10 @@ func (t TestStruct) GetData() any {
return t.Data
}
func (t TestStruct) GetIntSlice() []int {
return t.IntSlice
}
func (t TestStruct) Void() {}
type TestProcessor struct {