(t *testing.T)
| 71 | } |
| 72 | |
| 73 | func TestTask_Get(t *testing.T) { |
| 74 | tm := NewTaskManager() |
| 75 | tm.Create("sess-1", 1, "exec") |
| 76 | |
| 77 | if tm.Get("sess-1", 1) == nil { |
| 78 | t.Error("Get should find existing task") |
| 79 | } |
| 80 | if tm.Get("sess-1", 999) != nil { |
| 81 | t.Error("Get should return nil for nonexistent task") |
| 82 | } |
| 83 | if tm.Get("nonexistent", 1) != nil { |
| 84 | t.Error("Get should return nil for nonexistent session") |
| 85 | } |
| 86 | } |
| 87 | |
| 88 | func TestTask_BindCommand_MultipleCommands(t *testing.T) { |
| 89 | tm := NewTaskManager() |
nothing calls this directly
no test coverage detected