| 7 | ) |
| 8 | |
| 9 | type 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. |
| 18 | func newTestErrorHandler() *testErrorHandler { |
nothing calls this directly
no outgoing calls
no test coverage detected