(t *testing.T)
| 268 | } |
| 269 | |
| 270 | func TestStatus_FuzzyMatch(t *testing.T) { |
| 271 | tmpDir := createStatusTestFiles(t) |
| 272 | resetStatusFlags() |
| 273 | taskDir = tmpDir |
| 274 | |
| 275 | // "auth" is a substring of "Implement authentication" |
| 276 | statusStdinReader = strings.NewReader("1\n") |
| 277 | defer func() { statusStdinReader = os.Stdin }() |
| 278 | |
| 279 | output := captureStatusOutput(t, "auth") |
| 280 | |
| 281 | if !strings.Contains(output, "Task: 002") { |
| 282 | t.Error("Expected fuzzy match to find task 002") |
| 283 | } |
| 284 | } |
| 285 | |
| 286 | func TestStatus_EmptyDirectory(t *testing.T) { |
| 287 | tmpDir := t.TempDir() |
nothing calls this directly
no test coverage detected