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

Function newTestClient

client_test.go:198–205  ·  view source on GitHub ↗
(t *testing.T, dbPool *pgxpool.Pool, config *Config)

Source from the content-addressed store, hash-verified

196}
197
198func newTestClient(t *testing.T, dbPool *pgxpool.Pool, config *Config) *Client[pgx.Tx] {
199 t.Helper()
200
201 client, err := NewClient(riverpgxv5.New(dbPool), config)
202 require.NoError(t, err)
203
204 return client
205}
206
207func startClient[TTx any](ctx context.Context, t *testing.T, client *Client[TTx]) {
208 t.Helper()

Callers 15

TestWorkFuncFunction · 0.85
Test_RecordedOutputFunction · 0.85
Test_Client_CommonFunction · 0.85
Test_Client_Stop_CommonFunction · 0.85
Test_Client_JobDeleteFunction · 0.85
Test_Client_JobDeleteTxFunction · 0.85
Test_Client_InsertFunction · 0.85
Test_Client_InsertTxFunction · 0.85

Calls 3

NewFunction · 0.92
NewClientFunction · 0.85
HelperMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…