MCPcopy Create free account
hub / github.com/riverqueue/river / TestJobStatisticsFromInternal

Function TestJobStatisticsFromInternal

event_test.go:12–24  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

10)
11
12func TestJobStatisticsFromInternal(t *testing.T) {
13 t.Parallel()
14
15 require.Equal(t, &JobStatistics{
16 CompleteDuration: 1 * time.Second,
17 QueueWaitDuration: 2 * time.Second,
18 RunDuration: 3 * time.Second,
19 }, jobStatisticsFromInternal(&jobstats.JobStatistics{
20 CompleteDuration: 1 * time.Second,
21 QueueWaitDuration: 2 * time.Second,
22 RunDuration: 3 * time.Second,
23 }))
24}

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…