mockTask is a mock implementation of the task.Task interface for benchmarks. It's a simplified version to avoid dependencies on other test files.
| 18 | // mockTask is a mock implementation of the task.Task interface for benchmarks. |
| 19 | // It's a simplified version to avoid dependencies on other test files. |
| 20 | type mockTaskBench struct { |
| 21 | Id string |
| 22 | Type task.TaskType |
| 23 | FailureCount int |
| 24 | FailureMessage string |
| 25 | Metadata interface{} |
| 26 | processing atomic.Bool |
| 27 | } |
| 28 | |
| 29 | func newBenchmarkTask() task.Task { |
| 30 | uuid, _ := uuid.NewV4() |
nothing calls this directly
no outgoing calls
no test coverage detected