mirror of
https://github.com/jwetzell/showbridge-go.git
synced 2026-08-31 18:59:00 +00:00
don't export module/processor/framer registrations
This commit is contained in:
@@ -9,7 +9,7 @@ import (
|
||||
)
|
||||
|
||||
func TestIntScaleFromRegistry(t *testing.T) {
|
||||
registration, ok := processor.ProcessorRegistry["int.scale"]
|
||||
registration, ok := processor.GetProcessorRegistration("int.scale")
|
||||
if !ok {
|
||||
t.Fatalf("int.scale processor not registered")
|
||||
}
|
||||
@@ -55,7 +55,7 @@ func TestGoodIntScale(t *testing.T) {
|
||||
|
||||
for _, test := range tests {
|
||||
t.Run(test.name, func(t *testing.T) {
|
||||
registration, ok := processor.ProcessorRegistry["int.scale"]
|
||||
registration, ok := processor.GetProcessorRegistration("int.scale")
|
||||
if !ok {
|
||||
t.Fatalf("int.scale processor not registered")
|
||||
}
|
||||
@@ -140,7 +140,7 @@ func TestBadIntScale(t *testing.T) {
|
||||
for _, test := range tests {
|
||||
t.Run(test.name, func(t *testing.T) {
|
||||
|
||||
registration, ok := processor.ProcessorRegistry["int.scale"]
|
||||
registration, ok := processor.GetProcessorRegistration("int.scale")
|
||||
if !ok {
|
||||
t.Fatalf("int.scale processor not registered")
|
||||
}
|
||||
@@ -171,7 +171,7 @@ func TestBadIntScale(t *testing.T) {
|
||||
}
|
||||
|
||||
func BenchmarkIntScale(b *testing.B) {
|
||||
registration, ok := processor.ProcessorRegistry["int.scale"]
|
||||
registration, ok := processor.GetProcessorRegistration("int.scale")
|
||||
if !ok {
|
||||
b.Fatalf("int.scale processor not registered")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user