mirror of
https://github.com/jwetzell/showbridge-go.git
synced 2026-09-02 03:38:58 +00:00
add id getter for processors
This commit is contained in:
@@ -16,6 +16,7 @@ func TestIntParseFromRegistry(t *testing.T) {
|
||||
}
|
||||
|
||||
processorInstance, err := registration.New(config.ProcessorConfig{
|
||||
Id: "test-id",
|
||||
Type: "int.parse",
|
||||
})
|
||||
|
||||
@@ -23,6 +24,10 @@ func TestIntParseFromRegistry(t *testing.T) {
|
||||
t.Fatalf("failed to create int.parse processor: %s", err)
|
||||
}
|
||||
|
||||
if processorInstance.Id() != "test-id" {
|
||||
t.Fatalf("int.parse processor has wrong id: %s", processorInstance.Id())
|
||||
}
|
||||
|
||||
if processorInstance.Type() != "int.parse" {
|
||||
t.Fatalf("int.parse processor has wrong type: %s", processorInstance.Type())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user