(ctx context.Context, t *testing.T, client *Client[TTx])
| 205 | } |
| 206 | |
| 207 | func 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 | |
| 219 | func runNewTestClient(ctx context.Context, t *testing.T, config *Config) *Client[pgx.Tx] { |
| 220 | t.Helper() |
no test coverage detected
searching dependent graphs…