(t *testing.T)
| 13 | ) |
| 14 | |
| 15 | func 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 | |
| 34 | func Test_JobListCursor_jobListCursorFromJobAndParams(t *testing.T) { |
| 35 | t.Parallel() |
nothing calls this directly
no test coverage detected
searching dependent graphs…