MCPcopy Index your code
hub / github.com/riverqueue/river / requireManyInserted

Function requireManyInserted

rivertest/rivertest.go:349–356  ·  view source on GitHub ↗
(ctx context.Context, t testingT, driver TDriver, expectedJobs []ExpectedJob)

Source from the content-addressed store, hash-verified

347}
348
349func requireManyInserted[TDriver riverdriver.Driver[TTx], TTx any](ctx context.Context, t testingT, driver TDriver, expectedJobs []ExpectedJob) []*rivertype.JobRow {
350 t.Helper()
351 actualArgs, err := requireManyInsertedErr[TDriver](ctx, t, driver.GetExecutor(), expectedJobs)
352 if err != nil {
353 failuref(t, "Internal failure: %s", err)
354 }
355 return actualArgs
356}
357
358// RequireManyInsertedTx is a test helper that verifies that jobs of the given
359// kinds were inserted for work, failing the test if they weren't, or were

Callers 2

TestRequireManyInsertedFunction · 0.85
RequireManyInsertedFunction · 0.85

Calls 3

failurefFunction · 0.85
HelperMethod · 0.65
GetExecutorMethod · 0.65

Tested by 1

TestRequireManyInsertedFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…