mirror of
https://github.com/jwetzell/showbridge-go.git
synced 2026-08-21 05:58:59 +00:00
don't export module/processor/framer registrations
This commit is contained in:
@@ -10,7 +10,7 @@ import (
|
||||
)
|
||||
|
||||
func TestHTTPRequestCreateFromRegistry(t *testing.T) {
|
||||
registration, ok := processor.ProcessorRegistry["http.request.do"]
|
||||
registration, ok := processor.GetProcessorRegistration("http.request.do")
|
||||
if !ok {
|
||||
t.Fatalf("http.request.do processor not registered")
|
||||
}
|
||||
@@ -44,7 +44,7 @@ func TestGoodHTTPRequestDo(t *testing.T) {
|
||||
for _, test := range tests {
|
||||
t.Run(test.name, func(t *testing.T) {
|
||||
|
||||
registration, ok := processor.ProcessorRegistry["http.request.do"]
|
||||
registration, ok := processor.GetProcessorRegistration("http.request.do")
|
||||
if !ok {
|
||||
t.Fatalf("http.request.do processor not registered")
|
||||
}
|
||||
@@ -132,7 +132,7 @@ func TestBadHTTPRequestDo(t *testing.T) {
|
||||
for _, test := range tests {
|
||||
t.Run(test.name, func(t *testing.T) {
|
||||
|
||||
registration, ok := processor.ProcessorRegistry["http.request.do"]
|
||||
registration, ok := processor.GetProcessorRegistration("http.request.do")
|
||||
if !ok {
|
||||
t.Fatalf("http.request.do processor not registered")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user