MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / TestSubscribeOnce

Function TestSubscribeOnce

chainbus/bus_test.go:54–62  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

52}
53
54func 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
64func TestSubscribeOnceAndManySubscribe(t *testing.T) {
65 bus := New()

Callers

nothing calls this directly

Calls 2

NewFunction · 0.70
SubscribeOnceMethod · 0.65

Tested by

no test coverage detected