MCPcopy Index your code
hub / github.com/coder/coder / Subscribe

Method Subscribe

coderd/database/pubsub/psmock/psmock.go:72–78  ·  view source on GitHub ↗

Subscribe mocks base method.

(event string, listener pubsub.Listener)

Source from the content-addressed store, hash-verified

70
71// Subscribe mocks base method.
72func (m *MockPubsub) Subscribe(event string, listener pubsub.Listener) (func(), error) {
73 m.ctrl.T.Helper()
74 ret := m.ctrl.Call(m, "Subscribe", event, listener)
75 ret0, _ := ret[0].(func())
76 ret1, _ := ret[1].(error)
77 return ret0, ret1
78}
79
80// Subscribe indicates an expected call of Subscribe.
81func (mr *MockPubsubMockRecorder) Subscribe(event, listener any) *gomock.Call {

Callers

nothing calls this directly

Calls 2

CallMethod · 0.80
HelperMethod · 0.65

Tested by

no test coverage detected