MCPcopy
hub / github.com/riverqueue/river / testErrorHandler

Struct testErrorHandler

internal/jobexecutor/job_executor_test.go:87–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87type testErrorHandler struct {
88 HandleErrorCalled bool
89 HandleErrorFunc func(ctx context.Context, job *rivertype.JobRow, err error) *ErrorHandlerResult
90
91 HandlePanicCalled bool
92 HandlePanicFunc func(ctx context.Context, job *rivertype.JobRow, panicVal any, trace string) *ErrorHandlerResult
93}
94
95// Test handler with no-ops for both error handling functions.
96func newTestErrorHandler() *testErrorHandler {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected