From 695cabf15ea0d97a266fbf8564d6373d36fbc828 Mon Sep 17 00:00:00 2001 From: Joel Wetzell Date: Sun, 1 Mar 2026 21:36:12 -0600 Subject: [PATCH] move test struct to common place --- internal/processor/test/processor_test.go | 12 ++++++++++++ internal/processor/test/string-create_test.go | 8 -------- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/internal/processor/test/processor_test.go b/internal/processor/test/processor_test.go index 76e8173..95eb3bf 100644 --- a/internal/processor/test/processor_test.go +++ b/internal/processor/test/processor_test.go @@ -8,6 +8,18 @@ import ( "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 { } diff --git a/internal/processor/test/string-create_test.go b/internal/processor/test/string-create_test.go index 691df93..ccc9572 100644 --- a/internal/processor/test/string-create_test.go +++ b/internal/processor/test/string-create_test.go @@ -7,14 +7,6 @@ import ( "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) { registration, ok := processor.ProcessorRegistry["string.create"] if !ok {