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

Function TestEdge_EmptyDirectory_List

apps/cli/internal/cli/edge_cases_test.go:32–44  ·  view source on GitHub ↗

--- Empty directory ---

(t *testing.T)

Source from the content-addressed store, hash-verified

30// --- Empty directory ---
31
32func TestEdge_EmptyDirectory_List(t *testing.T) {
33 tmpDir := t.TempDir()
34 resetListFlags()
35 noColor = true
36
37 output, err := captureListOutput(t, tmpDir)
38 if err != nil {
39 t.Fatalf("unexpected error: %v", err)
40 }
41 if !strings.Contains(output, "No tasks found") {
42 t.Errorf("expected 'No tasks found' message, got: %q", output)
43 }
44}
45
46func TestEdge_EmptyDirectory_Board(t *testing.T) {
47 tmpDir := t.TempDir()

Callers

nothing calls this directly

Calls 2

resetListFlagsFunction · 0.85
captureListOutputFunction · 0.85

Tested by

no test coverage detected