(t *testing.T)
| 356 | } |
| 357 | |
| 358 | func TestGet_Threshold(t *testing.T) { |
| 359 | tmpDir := createGetTestFiles(t) |
| 360 | resetGetFlags() |
| 361 | taskDir = tmpDir |
| 362 | getThreshold = 0.95 // very high threshold |
| 363 | |
| 364 | err := runGet(getCmd, []string{"aut"}) |
| 365 | if err == nil { |
| 366 | t.Fatal("Expected error when threshold filters out matches") |
| 367 | } |
| 368 | if !strings.Contains(err.Error(), "task not found") { |
| 369 | t.Errorf("Expected 'task not found' error, got: %v", err) |
| 370 | } |
| 371 | } |
| 372 | |
| 373 | func TestGet_EmptyDirectory(t *testing.T) { |
| 374 | tmpDir := t.TempDir() |
nothing calls this directly
no test coverage detected