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

Function TestPublish

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

Source from the content-addressed store, hash-verified

89}
90
91func TestPublish(t *testing.T) {
92 bus := New()
93 bus.Subscribe("/event/test", func(a int, b int) {
94 if a != b {
95 t.Fail()
96 }
97 })
98 bus.Publish("/event/test", 10, 10)
99}
100
101func TestSubcribeOnceAsync(t *testing.T) {
102 results := make([]int, 0)

Callers

nothing calls this directly

Calls 3

NewFunction · 0.70
SubscribeMethod · 0.65
PublishMethod · 0.65

Tested by

no test coverage detected