TestProcessorCreation tests processor creation and initialization
(t *testing.T)
| 12 | |
| 13 | // TestProcessorCreation tests processor creation and initialization |
| 14 | func TestProcessorCreation(t *testing.T) { |
| 15 | t.Run("NewProcessor", func(t *testing.T) { |
| 16 | processor := NewProcessor() |
| 17 | if processor == nil { |
| 18 | t.Fatal("NewProcessor should not return nil") |
| 19 | } |
| 20 | if processor.registry == nil { |
| 21 | t.Error("Processor should have a registry") |
| 22 | } |
| 23 | }) |
| 24 | |
| 25 | t.Run("NewVoidProcessor", func(t *testing.T) { |
| 26 | voidProcessor := NewVoidProcessor() |
| 27 | if voidProcessor == nil { |
| 28 | t.Fatal("NewVoidProcessor should not return nil") |
| 29 | } |
| 30 | }) |
| 31 | } |
| 32 | |
| 33 | // TestProcessorHandlerManagement tests handler registration and retrieval |
| 34 | func TestProcessorHandlerManagement(t *testing.T) { |
nothing calls this directly
no test coverage detected