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

Function TestInterpretError

riverdriver/riversqlite/river_sqlite_driver_test.go:28–34  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

26}
27
28func TestInterpretError(t *testing.T) {
29 t.Parallel()
30
31 require.EqualError(t, interpretError(errors.New("an error")), "an error")
32 require.ErrorIs(t, interpretError(sql.ErrNoRows), rivertype.ErrNotFound)
33 require.NoError(t, interpretError(nil))
34}
35
36func TestTimeString(t *testing.T) {
37 t.Parallel()

Callers

nothing calls this directly

Calls 1

interpretErrorFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…