(t *testing.T)
| 129 | } |
| 130 | |
| 131 | func TestRm_TaskNotFound(t *testing.T) { |
| 132 | tmpDir := createRmTestFiles(t) |
| 133 | resetRmFlags() |
| 134 | taskDir = tmpDir |
| 135 | rmForce = true |
| 136 | |
| 137 | _, err := captureRmOutput(t, []string{"999"}) |
| 138 | if err == nil { |
| 139 | t.Fatal("expected error for nonexistent task") |
| 140 | } |
| 141 | if !strings.Contains(err.Error(), "task not found") { |
| 142 | t.Errorf("expected 'task not found' error, got: %v", err) |
| 143 | } |
| 144 | } |
| 145 | |
| 146 | func TestRm_InteractiveConfirmYes(t *testing.T) { |
| 147 | tmpDir := createRmTestFiles(t) |
nothing calls this directly
no test coverage detected