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

Struct testErrorHandler

error_handler_test.go:9–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7)
8
9type testErrorHandler struct {
10 HandleErrorCalled bool
11 HandleErrorFunc func(ctx context.Context, job *rivertype.JobRow, err error) *ErrorHandlerResult
12
13 HandlePanicCalled bool
14 HandlePanicFunc func(ctx context.Context, job *rivertype.JobRow, panicVal any, trace string) *ErrorHandlerResult
15}
16
17// Test handler with no-ops for both error handling functions.
18func newTestErrorHandler() *testErrorHandler {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected