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

Struct pubsubReinitSpy

coderd/workspaceagents_test.go:3619–3624  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3617}
3618
3619type pubsubReinitSpy struct {
3620 pubsub.Pubsub
3621 sync.Mutex
3622 triedToSubscribe chan string
3623 expectedEvent string
3624}
3625
3626func (p *pubsubReinitSpy) Subscribe(event string, listener pubsub.Listener) (cancel func(), err error) {
3627 cancel, err = p.Pubsub.Subscribe(event, listener)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected