MCPcopy Create free account
hub / github.com/flant/shell-operator / mockTask

Struct mockTask

pkg/task/queue/task_queue_compaction_test.go:21–35  ·  view source on GitHub ↗

mockTask is a mock implementation of the task.Task interface for testing.

Source from the content-addressed store, hash-verified

19
20// mockTask is a mock implementation of the task.Task interface for testing.
21type 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
37func newMockTask(id, hookName string, taskType task.TaskType) *mockTask {
38 return &mockTask{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected