mirror of
https://github.com/jwetzell/showbridge-go.git
synced 2026-08-22 22:38:58 +00:00
don't export module/processor/framer registrations
This commit is contained in:
@@ -11,7 +11,7 @@ import (
|
||||
)
|
||||
|
||||
func TestStructFieldGetFromRegistry(t *testing.T) {
|
||||
registration, ok := processor.ProcessorRegistry["struct.field.get"]
|
||||
registration, ok := processor.GetProcessorRegistration("struct.field.get")
|
||||
if !ok {
|
||||
t.Fatalf("struct.field.get processor not registered")
|
||||
}
|
||||
@@ -93,7 +93,7 @@ func TestGoodStructFieldGet(t *testing.T) {
|
||||
|
||||
for _, test := range tests {
|
||||
t.Run(test.name, func(t *testing.T) {
|
||||
registration, ok := processor.ProcessorRegistry["struct.field.get"]
|
||||
registration, ok := processor.GetProcessorRegistration("struct.field.get")
|
||||
if !ok {
|
||||
t.Fatalf("struct.field.get processor not registered")
|
||||
}
|
||||
@@ -162,7 +162,7 @@ func TestBadStructFieldGet(t *testing.T) {
|
||||
for _, test := range tests {
|
||||
t.Run(test.name, func(t *testing.T) {
|
||||
|
||||
registration, ok := processor.ProcessorRegistry["struct.field.get"]
|
||||
registration, ok := processor.GetProcessorRegistration("struct.field.get")
|
||||
if !ok {
|
||||
t.Fatalf("struct.field.get processor not registered")
|
||||
}
|
||||
@@ -193,7 +193,7 @@ func TestBadStructFieldGet(t *testing.T) {
|
||||
}
|
||||
|
||||
func BenchmarkStructFieldGet(b *testing.B) {
|
||||
registration, ok := processor.ProcessorRegistry["struct.field.get"]
|
||||
registration, ok := processor.GetProcessorRegistration("struct.field.get")
|
||||
if !ok {
|
||||
b.Fatalf("struct.field.get processor not registered")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user