(t *testing.T)
| 52 | } |
| 53 | |
| 54 | func TestSubscribeOnce(t *testing.T) { |
| 55 | bus := New() |
| 56 | if bus.SubscribeOnce("/event/test", func() {}) != nil { |
| 57 | t.Fail() |
| 58 | } |
| 59 | if bus.SubscribeOnce("/event/test", "String") == nil { |
| 60 | t.Fail() |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | func TestSubscribeOnceAndManySubscribe(t *testing.T) { |
| 65 | bus := New() |
nothing calls this directly
no test coverage detected