(t *testing.T)
| 306 | } |
| 307 | |
| 308 | func TestGet_FuzzyMatch_Substring(t *testing.T) { |
| 309 | tmpDir := createGetTestFiles(t) |
| 310 | resetGetFlags() |
| 311 | taskDir = tmpDir |
| 312 | |
| 313 | // "auth" is a substring of "Implement authentication" — should fuzzy match |
| 314 | // Simulate selecting option 1 |
| 315 | getStdinReader = strings.NewReader("1\n") |
| 316 | defer func() { getStdinReader = os.Stdin }() |
| 317 | |
| 318 | output := captureGetOutput(t, "auth") |
| 319 | |
| 320 | if !strings.Contains(output, "Task: 002") { |
| 321 | t.Error("Expected fuzzy substring match to find task 002") |
| 322 | } |
| 323 | } |
| 324 | |
| 325 | func TestGet_FuzzyMatch_Selection(t *testing.T) { |
| 326 | tmpDir := createGetTestFiles(t) |
nothing calls this directly
no test coverage detected