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

Struct mockTaskBench

pkg/task/queue/task_queue_benchmark_test.go:20–27  ·  view source on GitHub ↗

mockTask is a mock implementation of the task.Task interface for benchmarks. It's a simplified version to avoid dependencies on other test files.

Source from the content-addressed store, hash-verified

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.
20type mockTaskBench struct {
21 Id string
22 Type task.TaskType
23 FailureCount int
24 FailureMessage string
25 Metadata interface{}
26 processing atomic.Bool
27}
28
29func newBenchmarkTask() task.Task {
30 uuid, _ := uuid.NewV4()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected