(t *testing.T)
| 20 | } |
| 21 | |
| 22 | func TestNewEventBusWithConfig(t *testing.T) { |
| 23 | config := &EventBusConfig{ |
| 24 | MaxTimelineSize: 100, |
| 25 | MaxTimelineAge: 10 * time.Minute, |
| 26 | CleanupInterval: 1 * time.Minute, |
| 27 | } |
| 28 | eb := NewEventBusWithConfig(config) |
| 29 | defer eb.Close() |
| 30 | |
| 31 | if eb.config.MaxTimelineSize != 100 { |
| 32 | t.Errorf("expected MaxTimelineSize 100, got %d", eb.config.MaxTimelineSize) |
| 33 | } |
| 34 | } |
| 35 | |
| 36 | func TestEmitAndSubscribe(t *testing.T) { |
| 37 | eb := NewEventBus() |
nothing calls this directly
no test coverage detected