--- Empty file ---
(t *testing.T)
| 76 | // --- Empty file --- |
| 77 | |
| 78 | func 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 |
nothing calls this directly
no test coverage detected