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

Function TestPanicError

rivertest/worker_test.go:32–37  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

30func (testArgs) Kind() string { return "rivertest_work_test" }
31
32func TestPanicError(t *testing.T) {
33 t.Parallel()
34
35 panicErr := &PanicError{Cause: errors.New("test panic error"), Trace: "test trace"}
36 require.Equal(t, "rivertest.PanicError: test panic error\ntest trace", panicErr.Error())
37}
38
39func TestWorker_NewWorker(t *testing.T) {
40 t.Parallel()

Callers

nothing calls this directly

Calls 1

ErrorMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…