MCPcopy
hub / github.com/riverqueue/river / startClient

Function startClient

client_test.go:207–217  ·  view source on GitHub ↗
(ctx context.Context, t *testing.T, client *Client[TTx])

Source from the content-addressed store, hash-verified

205}
206
207func startClient[TTx any](ctx context.Context, t *testing.T, client *Client[TTx]) {
208 t.Helper()
209
210 require.NoError(t, client.Start(ctx))
211
212 t.Cleanup(func() {
213 ctx, cancel := context.WithTimeout(ctx, 5*time.Second)
214 defer cancel()
215 require.NoError(t, client.Stop(ctx))
216 })
217}
218
219func runNewTestClient(ctx context.Context, t *testing.T, config *Config) *Client[pgx.Tx] {
220 t.Helper()

Callers 15

TestClientDriverPluginFunction · 0.70
TestClientPilotPluginFunction · 0.70
TestWorkFuncFunction · 0.70
Test_RecordedOutputFunction · 0.70
runNewTestClientFunction · 0.70
Test_Client_CommonFunction · 0.70
Test_Client_Stop_CommonFunction · 0.70
Test_Client_InsertFunction · 0.70

Calls 4

CleanupMethod · 0.80
HelperMethod · 0.65
StartMethod · 0.65
StopMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…