From 2fe2250a57fa69f3f45dd65cf8651ba818862ca5 Mon Sep 17 00:00:00 2001 From: Joel Wetzell Date: Mon, 23 Mar 2026 00:36:08 -0500 Subject: [PATCH] fix filter regex test names --- internal/processor/test/filter-regex_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/processor/test/filter-regex_test.go b/internal/processor/test/filter-regex_test.go index 6f6f94a..3215441 100644 --- a/internal/processor/test/filter-regex_test.go +++ b/internal/processor/test/filter-regex_test.go @@ -8,7 +8,7 @@ import ( "github.com/jwetzell/showbridge-go/internal/processor" ) -func TestStringFilterFromRegistry(t *testing.T) { +func TestFilterRegexFromRegistry(t *testing.T) { registration, ok := processor.ProcessorRegistry["filter.regex"] if !ok { t.Fatalf("filter.regex processor not registered") @@ -39,7 +39,7 @@ func TestStringFilterFromRegistry(t *testing.T) { gotString, ok := got.Payload.(string) if !ok { - t.Fatalf("filter.regex should return byte slice") + t.Fatalf("filter.regex should return string") } if gotString != expected { @@ -47,7 +47,7 @@ func TestStringFilterFromRegistry(t *testing.T) { } } -func TestGoodStringFilter(t *testing.T) { +func TestGoodFilterRegex(t *testing.T) { tests := []struct { name string params map[string]any @@ -103,7 +103,7 @@ func TestGoodStringFilter(t *testing.T) { } } -func TestBadStringFilter(t *testing.T) { +func TestBadFilterRegex(t *testing.T) { tests := []struct { name string params map[string]any