(t *testing.T)
| 8 | ) |
| 9 | |
| 10 | func TestNewEventBus(t *testing.T) { |
| 11 | eb := NewEventBus() |
| 12 | defer eb.Close() |
| 13 | |
| 14 | if eb.config == nil { |
| 15 | t.Error("config should not be nil") |
| 16 | } |
| 17 | if eb.config.MaxTimelineSize != 10000 { |
| 18 | t.Errorf("expected MaxTimelineSize 10000, got %d", eb.config.MaxTimelineSize) |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | func TestNewEventBusWithConfig(t *testing.T) { |
| 23 | config := &EventBusConfig{ |
nothing calls this directly
no test coverage detected