MCPcopy Create free account
hub / github.com/astercloud/aster / TestNewEventBus

Function TestNewEventBus

pkg/events/bus_test.go:10–20  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

8)
9
10func 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
22func TestNewEventBusWithConfig(t *testing.T) {
23 config := &EventBusConfig{

Callers

nothing calls this directly

Calls 3

CloseMethod · 0.95
NewEventBusFunction · 0.85
ErrorMethod · 0.65

Tested by

no test coverage detected