(t *testing.T)
| 323 | } |
| 324 | |
| 325 | func TestGet_FuzzyMatch_Selection(t *testing.T) { |
| 326 | tmpDir := createGetTestFiles(t) |
| 327 | resetGetFlags() |
| 328 | taskDir = tmpDir |
| 329 | |
| 330 | // "ui" should fuzzy match "Build UI components" |
| 331 | getStdinReader = strings.NewReader("1\n") |
| 332 | defer func() { getStdinReader = os.Stdin }() |
| 333 | |
| 334 | output := captureGetOutput(t, "ui") |
| 335 | |
| 336 | if !strings.Contains(output, "Task: 003") { |
| 337 | t.Error("Expected fuzzy match selection to return task 003") |
| 338 | } |
| 339 | } |
| 340 | |
| 341 | func TestGet_FuzzyMatch_Cancel(t *testing.T) { |
| 342 | tmpDir := createGetTestFiles(t) |
nothing calls this directly
no test coverage detected