RequireNotInserted is a test helper that verifies that a job of the given kind was not inserted for work, failing the test if one was. job := RequireNotInserted(ctx, t, riverpgxv5.New(dbPool), &Job1Args{}, nil) This variant takes a driver that wraps a database pool. See also RequireNotInsertedTx
(ctx context.Context, tb testing.TB, driver TDriver, expectedJob TArgs, opts *RequireInsertedOpts)
| 212 | // If more rows than one were found, the assertion fails if any of them match |
| 213 | // the given opts. |
| 214 | func RequireNotInserted[TDriver riverdriver.Driver[TTx], TTx any, TArgs river.JobArgs](ctx context.Context, tb testing.TB, driver TDriver, expectedJob TArgs, opts *RequireInsertedOpts) { |
| 215 | tb.Helper() |
| 216 | requireNotInserted(ctx, tb, driver, expectedJob, opts) |
| 217 | } |
| 218 | |
| 219 | func requireNotInserted[TDriver riverdriver.Driver[TTx], TTx any, TArgs river.JobArgs](ctx context.Context, t testingT, driver TDriver, expectedJob TArgs, opts *RequireInsertedOpts) { |
| 220 | t.Helper() |
nothing calls this directly
no test coverage detected
searching dependent graphs…