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

Function Job

rivershared/testfactory/test_factory.go:42–49  ·  view source on GitHub ↗
(ctx context.Context, tb testing.TB, exec riverdriver.Executor, opts *JobOpts)

Source from the content-addressed store, hash-verified

40}
41
42func Job(ctx context.Context, tb testing.TB, exec riverdriver.Executor, opts *JobOpts) *rivertype.JobRow {
43 tb.Helper()
44
45 job, err := exec.JobInsertFull(ctx, Job_Build(tb, opts))
46 require.NoError(tb, err)
47
48 return job
49}
50
51func Job_Build(tb testing.TB, opts *JobOpts) *riverdriver.JobInsertFullParams {
52 tb.Helper()

Callers 15

Test_SubscriptionManagerFunction · 0.92
TestJobCompleteTxFunction · 0.92
Test_Client_JobDeleteTxFunction · 0.92
Test_Client_JobListFunction · 0.92
Test_Client_MaintenanceFunction · 0.92
TestResumableSetStepTxFunction · 0.92
TestTestSchemaFunction · 0.92
exerciseJobDeleteFunction · 0.92
exerciseJobReadFunction · 0.92
exerciseSQLFragmentsFunction · 0.92

Calls 3

Job_BuildFunction · 0.85
HelperMethod · 0.65
JobInsertFullMethod · 0.65

Tested by 15

Test_SubscriptionManagerFunction · 0.74
TestJobCompleteTxFunction · 0.74
Test_Client_JobDeleteTxFunction · 0.74
Test_Client_JobListFunction · 0.74
Test_Client_MaintenanceFunction · 0.74
TestResumableSetStepTxFunction · 0.74
TestTestSchemaFunction · 0.74
ExerciseClientFunction · 0.74
TestJobSchedulerFunction · 0.74
TestJobRescuerFunction · 0.74