MCPcopy Create free account
hub / github.com/driangle/taskmd / TestSearch_InvalidSort

Function TestSearch_InvalidSort

apps/cli/internal/cli/search_test.go:583–594  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

581}
582
583func 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
596func TestSearch_IntegrationWithFiles(t *testing.T) {
597 resetSearchFlags()

Callers

nothing calls this directly

Calls 2

resetSearchFlagsFunction · 0.85
sortTasksFunction · 0.70

Tested by

no test coverage detected