MCPcopy Index your code
hub / github.com/riverqueue/river / subscribe

Function subscribe

client_test.go:237–250  ·  view source on GitHub ↗
(t *testing.T, client *Client[TTx])

Source from the content-addressed store, hash-verified

235}
236
237func subscribe[TTx any](t *testing.T, client *Client[TTx]) <-chan *Event {
238 t.Helper()
239
240 subscribeChan, cancel := client.Subscribe(
241 EventKindJobCancelled,
242 EventKindJobCompleted,
243 EventKindJobFailed,
244 EventKindJobSnoozed,
245 EventKindQueuePaused,
246 EventKindQueueResumed,
247 )
248 t.Cleanup(cancel)
249 return subscribeChan
250}
251
252func Test_Client_Common(t *testing.T) {
253 t.Parallel()

Callers 3

Test_RecordedOutputFunction · 0.70
Test_Client_CommonFunction · 0.70

Calls 3

SubscribeMethod · 0.80
CleanupMethod · 0.80
HelperMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…