mockTask is a mock implementation of the task.Task interface for testing.
| 19 | |
| 20 | // mockTask is a mock implementation of the task.Task interface for testing. |
| 21 | type mockTask struct { |
| 22 | Id string |
| 23 | Type task.TaskType |
| 24 | LogLabels map[string]string |
| 25 | FailureCount int |
| 26 | FailureMessage string |
| 27 | QueueName string |
| 28 | QueuedAt time.Time |
| 29 | |
| 30 | Props map[string]interface{} |
| 31 | |
| 32 | Metadata interface{} |
| 33 | |
| 34 | processing atomic.Bool |
| 35 | } |
| 36 | |
| 37 | func newMockTask(id, hookName string, taskType task.TaskType) *mockTask { |
| 38 | return &mockTask{ |
nothing calls this directly
no outgoing calls
no test coverage detected