(t *testing.T)
| 390 | } |
| 391 | |
| 392 | func TestRm_ShowsTaskDetails(t *testing.T) { |
| 393 | tmpDir := createRmTestFiles(t) |
| 394 | resetRmFlags() |
| 395 | taskDir = tmpDir |
| 396 | rmDryRun = true |
| 397 | |
| 398 | output, err := captureRmOutput(t, []string{"001"}) |
| 399 | if err != nil { |
| 400 | t.Fatalf("unexpected error: %v", err) |
| 401 | } |
| 402 | |
| 403 | if !strings.Contains(output, "001") { |
| 404 | t.Errorf("expected task ID in output, got: %s", output) |
| 405 | } |
| 406 | if !strings.Contains(output, "Setup project") { |
| 407 | t.Errorf("expected task title in output, got: %s", output) |
| 408 | } |
| 409 | } |
nothing calls this directly
no test coverage detected