(t *testing.T)
| 371 | } |
| 372 | |
| 373 | func TestGet_EmptyDirectory(t *testing.T) { |
| 374 | tmpDir := t.TempDir() |
| 375 | resetGetFlags() |
| 376 | taskDir = tmpDir |
| 377 | |
| 378 | err := runGet(getCmd, []string{"anything"}) |
| 379 | if err == nil { |
| 380 | t.Fatal("Expected error for empty directory") |
| 381 | } |
| 382 | if !strings.Contains(err.Error(), "task not found") { |
| 383 | t.Errorf("Expected 'task not found' error, got: %v", err) |
| 384 | } |
| 385 | } |
| 386 | |
| 387 | func TestGet_Dependencies(t *testing.T) { |
| 388 | tmpDir := createGetTestFiles(t) |
nothing calls this directly
no test coverage detected