MCPcopy Index your code
hub / github.com/flant/shell-operator / newBenchmarkTask

Function newBenchmarkTask

pkg/task/queue/task_queue_benchmark_test.go:29–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27}
28
29func newBenchmarkTask() task.Task {
30 uuid, _ := uuid.NewV4()
31 id := uuid.String()
32
33 return &mockTaskBench{
34 Id: id,
35 Type: "BenchmarkTask",
36 }
37}
38
39func (t *mockTaskBench) GetId() string { return t.Id }
40func (t *mockTaskBench) GetType() task.TaskType { return t.Type }

Callers 5

benchmarkAddLastFunction · 0.85
benchmarkAddFirstFunction · 0.85
benchmarkRemoveFirstFunction · 0.85
benchmarkGetFirstFunction · 0.85
benchmarkGetByIDFunction · 0.85

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected