(t *testing.T)
| 284 | } |
| 285 | |
| 286 | func TestStatus_EmptyDirectory(t *testing.T) { |
| 287 | tmpDir := t.TempDir() |
| 288 | resetStatusFlags() |
| 289 | taskDir = tmpDir |
| 290 | |
| 291 | err := runStatus(statusCmd, []string{"anything"}) |
| 292 | if err == nil { |
| 293 | t.Fatal("Expected error for empty directory") |
| 294 | } |
| 295 | if !strings.Contains(err.Error(), "task not found") { |
| 296 | t.Errorf("Expected 'task not found' error, got: %v", err) |
| 297 | } |
| 298 | } |
| 299 | |
| 300 | func createStatusTestFilesWithChildren(t *testing.T) string { |
| 301 | t.Helper() |
nothing calls this directly
no test coverage detected