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

Function TestSearch_EmptyTaskList

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

Source from the content-addressed store, hash-verified

294}
295
296func TestSearch_EmptyTaskList(t *testing.T) {
297 resetSearchFlags()
298
299 results := search.Search([]*model.Task{}, "anything")
300
301 if len(results) != 0 {
302 t.Fatalf("expected 0 results for empty task list, got %d", len(results))
303 }
304}
305
306func TestSearch_TableOutput(t *testing.T) {
307 resetSearchFlags()

Callers

nothing calls this directly

Calls 1

resetSearchFlagsFunction · 0.85

Tested by

no test coverage detected