add id getter for processors

This commit is contained in:
Joel Wetzell
2026-08-28 14:55:19 -05:00
parent f9287cc87e
commit 54ada59f6e
96 changed files with 456 additions and 33 deletions
@@ -17,6 +17,7 @@ func TestStructMethodGetFromRegistry(t *testing.T) {
}
processorInstance, err := registration.New(config.ProcessorConfig{
Id: "test-id",
Type: "struct.method.get",
Params: map[string]any{
"name": "GetData",
@@ -26,6 +27,10 @@ func TestStructMethodGetFromRegistry(t *testing.T) {
t.Fatalf("failed to create struct.method.get processor: %s", err)
}
if processorInstance.Id() != "test-id" {
t.Fatalf("struct.method.get processor has wrong id: %s", processorInstance.Id())
}
if processorInstance.Type() != "struct.method.get" {
t.Fatalf("struct.method.get processor has wrong type: %s", processorInstance.Type())
}