test for test processor

This commit is contained in:
Joel Wetzell
2026-08-28 15:06:40 -05:00
parent 54ada59f6e
commit adf649fac8
2 changed files with 21 additions and 2 deletions
+4 -2
View File
@@ -4,17 +4,19 @@ import (
"context"
"github.com/jwetzell/showbridge-go/internal/common"
"github.com/jwetzell/showbridge-go/internal/config"
)
type TestProcessor struct {
Config config.ProcessorConfig
}
func (p *TestProcessor) Id() string {
return "test-id"
return p.Config.Id
}
func (p *TestProcessor) Type() string {
return "test"
return p.Config.Type
}
func (p *TestProcessor) Process(ctx context.Context, wrappedPayload common.WrappedPayload) (common.WrappedPayload, error) {
return wrappedPayload, nil