fix filter regex test names

This commit is contained in:
Joel Wetzell
2026-03-23 00:36:08 -05:00
parent c91f14185a
commit 2fe2250a57

View File

@@ -8,7 +8,7 @@ import (
"github.com/jwetzell/showbridge-go/internal/processor" "github.com/jwetzell/showbridge-go/internal/processor"
) )
func TestStringFilterFromRegistry(t *testing.T) { func TestFilterRegexFromRegistry(t *testing.T) {
registration, ok := processor.ProcessorRegistry["filter.regex"] registration, ok := processor.ProcessorRegistry["filter.regex"]
if !ok { if !ok {
t.Fatalf("filter.regex processor not registered") t.Fatalf("filter.regex processor not registered")
@@ -39,7 +39,7 @@ func TestStringFilterFromRegistry(t *testing.T) {
gotString, ok := got.Payload.(string) gotString, ok := got.Payload.(string)
if !ok { if !ok {
t.Fatalf("filter.regex should return byte slice") t.Fatalf("filter.regex should return string")
} }
if gotString != expected { if gotString != expected {
@@ -47,7 +47,7 @@ func TestStringFilterFromRegistry(t *testing.T) {
} }
} }
func TestGoodStringFilter(t *testing.T) { func TestGoodFilterRegex(t *testing.T) {
tests := []struct { tests := []struct {
name string name string
params map[string]any 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 { tests := []struct {
name string name string
params map[string]any params map[string]any