TestTxPgx starts a test transaction that's rolled back automatically as the test case is cleaning itself up. This variant starts a transaction for the standard pgx/v5 driver most commonly used throughout most of River.
(ctx context.Context, tb testing.TB)
| 442 | // This variant starts a transaction for the standard pgx/v5 driver most |
| 443 | // commonly used throughout most of River. |
| 444 | func TestTxPgx(ctx context.Context, tb testing.TB) pgx.Tx { |
| 445 | tb.Helper() |
| 446 | tx, _ := TestTxPgxDriver(ctx, tb, riverpgxv5.New(riversharedtest.DBPool(ctx, tb)), nil) |
| 447 | return tx |
| 448 | } |
| 449 | |
| 450 | // TestTxPgxDriver starts a test transaction that's rolled back automatically as |
| 451 | // the test case is cleaning itself up. Unlike TestTxPgx, this variant takes a |
no test coverage detected
searching dependent graphs…