mirror of
https://github.com/jwetzell/showbridge-go.git
synced 2026-08-31 10:48:59 +00:00
test for test processor
This commit is contained in:
@@ -53,3 +53,20 @@ func TestProcessorBadRegistrationExistingType(t *testing.T) {
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
func TestTestProcessor(t *testing.T) {
|
||||
testProcessor := &test.TestProcessor{
|
||||
Config: config.ProcessorConfig{
|
||||
Id: "test-id",
|
||||
Type: "test",
|
||||
},
|
||||
}
|
||||
|
||||
if testProcessor.Id() != "test-id" {
|
||||
t.Fatalf("test processor has wrong id: %s", testProcessor.Id())
|
||||
}
|
||||
|
||||
if testProcessor.Type() != "test" {
|
||||
t.Fatalf("test processor has wrong type: %s", testProcessor.Type())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user