mirror of
https://github.com/jwetzell/showbridge-go.git
synced 2026-09-12 08:29:25 +00:00
move test implementations to a shared internal package
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
package test
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/jwetzell/showbridge-go/internal/common"
|
||||
)
|
||||
|
||||
type TestRouter struct {
|
||||
}
|
||||
|
||||
func (r *TestRouter) HandleInput(ctx context.Context, sourceId string, payload any) (bool, []common.RouteIOError) {
|
||||
return false, nil
|
||||
}
|
||||
|
||||
func (r *TestRouter) HandleOutput(ctx context.Context, destinationId string, payload any) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func GetNewTestRouter() *TestRouter {
|
||||
return &TestRouter{}
|
||||
}
|
||||
Reference in New Issue
Block a user