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

Function Test_JobListCursor_JobListCursorFromJob

job_list_params_test.go:15–32  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

13)
14
15func Test_JobListCursor_JobListCursorFromJob(t *testing.T) {
16 t.Parallel()
17
18 jobRow := &rivertype.JobRow{
19 ID: 4,
20 Kind: "test",
21 Queue: "test",
22 State: rivertype.JobStateRunning,
23 }
24
25 cursor := JobListCursorFromJob(jobRow)
26 require.Zero(t, cursor.id)
27 require.Equal(t, jobRow, cursor.job)
28 require.Empty(t, cursor.kind)
29 require.Empty(t, cursor.queue)
30 require.Zero(t, cursor.sortField)
31 require.Zero(t, cursor.time)
32}
33
34func Test_JobListCursor_jobListCursorFromJobAndParams(t *testing.T) {
35 t.Parallel()

Callers

nothing calls this directly

Calls 1

JobListCursorFromJobFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…