MCPcopy Create free account
hub / github.com/krau/SaveAny-Bot / newTask

Function newTask

pkg/queue/queue_test.go:13–15  ·  view source on GitHub ↗

helper to create a simple Task with integer payload

(id string)

Source from the content-addressed store, hash-verified

11
12// helper to create a simple Task with integer payload
13func newTask(id string) *queue.Task[int] {
14 return queue.NewTask(context.Background(), id, "testing", 0)
15}
16
17func TestAddAndLength(t *testing.T) {
18 q := queue.NewTaskQueue[int]()

Callers 4

TestAddAndLengthFunction · 0.85
TestDuplicateAddFunction · 0.85
TestConcurrencySafetyFunction · 0.85

Calls 1

NewTaskFunction · 0.92

Tested by

no test coverage detected