(t *testing.T)
| 60 | } |
| 61 | |
| 62 | func 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 | |
| 73 | func TestTask_Get(t *testing.T) { |
| 74 | tm := NewTaskManager() |
nothing calls this directly
no test coverage detected