MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / TestTask_CreateIdempotent

Function TestTask_CreateIdempotent

internal/bridge/taskmanager_test.go:62–71  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

60}
61
62func TestTask_CreateIdempotent(t *testing.T) {
63 tm := NewTaskManager()
64
65 t1 := tm.Create("sess-1", 1, "exec")
66 t2 := tm.Create("sess-1", 1, "exec")
67
68 if t1 != t2 {
69 t.Error("Create should return existing task if already exists")
70 }
71}
72
73func TestTask_Get(t *testing.T) {
74 tm := NewTaskManager()

Callers

nothing calls this directly

Calls 3

CreateMethod · 0.95
NewTaskManagerFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected