| 85 | } |
| 86 | |
| 87 | type 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. |
| 96 | func newTestErrorHandler() *testErrorHandler { |
nothing calls this directly
no outgoing calls
no test coverage detected