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

Function TestEdge_EmptyFile

apps/cli/internal/cli/edge_cases_test.go:78–91  ·  view source on GitHub ↗

--- Empty file ---

(t *testing.T)

Source from the content-addressed store, hash-verified

76// --- Empty file ---
77
78func TestEdge_EmptyFile(t *testing.T) {
79 tmpDir := t.TempDir()
80 writeTestFile(t, tmpDir, "empty.md", "")
81
82 resetListFlags()
83 noColor = true
84 output, err := captureListOutput(t, tmpDir)
85 if err != nil {
86 t.Fatalf("unexpected error on empty file: %v", err)
87 }
88 if !strings.Contains(output, "No tasks found") {
89 t.Errorf("expected 'No tasks found' for empty file, got: %q", output)
90 }
91}
92
93// --- File with frontmatter but no body ---
94

Callers

nothing calls this directly

Calls 3

writeTestFileFunction · 0.85
resetListFlagsFunction · 0.85
captureListOutputFunction · 0.85

Tested by

no test coverage detected