(t *testing.T)
| 581 | } |
| 582 | |
| 583 | func TestSearch_InvalidSort(t *testing.T) { |
| 584 | resetSearchFlags() |
| 585 | |
| 586 | tasks := []*model.Task{ |
| 587 | {ID: "001", Title: "Test", Status: model.StatusPending, Priority: model.PriorityMedium}, |
| 588 | } |
| 589 | |
| 590 | err := sortTasks(tasks, "nonexistent") |
| 591 | if err == nil { |
| 592 | t.Fatal("expected error for invalid sort field") |
| 593 | } |
| 594 | } |
| 595 | |
| 596 | func TestSearch_IntegrationWithFiles(t *testing.T) { |
| 597 | resetSearchFlags() |
nothing calls this directly
no test coverage detected