(t *testing.T)
| 253 | } |
| 254 | |
| 255 | func TestStatus_TaskNotFound_ExactMode(t *testing.T) { |
| 256 | tmpDir := createStatusTestFiles(t) |
| 257 | resetStatusFlags() |
| 258 | taskDir = tmpDir |
| 259 | statusExact = true |
| 260 | |
| 261 | err := runStatus(statusCmd, []string{"nonexistent"}) |
| 262 | if err == nil { |
| 263 | t.Fatal("Expected error for non-matching query in exact mode") |
| 264 | } |
| 265 | if !strings.Contains(err.Error(), "task not found") { |
| 266 | t.Errorf("Expected 'task not found' error, got: %v", err) |
| 267 | } |
| 268 | } |
| 269 | |
| 270 | func TestStatus_FuzzyMatch(t *testing.T) { |
| 271 | tmpDir := createStatusTestFiles(t) |
nothing calls this directly
no test coverage detected