(t *testing.T)
| 31 | } |
| 32 | |
| 33 | func TestHasCallback(t *testing.T) { |
| 34 | bus := New() |
| 35 | bus.Subscribe("/event/test", func() {}) |
| 36 | if bus.HasCallback("/event/test2") { |
| 37 | t.Fail() |
| 38 | } |
| 39 | if !bus.HasCallback("/event/test") { |
| 40 | t.Fail() |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | func TestSubscribe(t *testing.T) { |
| 45 | bus := New() |
nothing calls this directly
no test coverage detected