move test struct to common place

This commit is contained in:
Joel Wetzell
2026-03-01 21:36:12 -06:00
parent ccac116f8d
commit 695cabf15e
2 changed files with 12 additions and 8 deletions

View File

@@ -8,6 +8,18 @@ import (
"github.com/jwetzell/showbridge-go/internal/processor" "github.com/jwetzell/showbridge-go/internal/processor"
) )
type TestStruct struct {
String string
Int int
Float float64
Bool bool
Data any
}
func (t TestStruct) GetData() any {
return t.Data
}
type TestProcessor struct { type TestProcessor struct {
} }

View File

@@ -7,14 +7,6 @@ import (
"github.com/jwetzell/showbridge-go/internal/processor" "github.com/jwetzell/showbridge-go/internal/processor"
) )
type TestStruct struct {
Data string
}
func (t TestStruct) GetData() string {
return t.Data
}
func TestStringCreateFromRegistry(t *testing.T) { func TestStringCreateFromRegistry(t *testing.T) {
registration, ok := processor.ProcessorRegistry["string.create"] registration, ok := processor.ProcessorRegistry["string.create"]
if !ok { if !ok {