(t *testing.T)
| 183 | } |
| 184 | |
| 185 | func TestParseProgress_EmptyFile(t *testing.T) { |
| 186 | tmpDir := t.TempDir() |
| 187 | path := filepath.Join(tmpDir, "progress.md") |
| 188 | |
| 189 | if err := os.WriteFile(path, []byte(""), 0644); err != nil { |
| 190 | t.Fatalf("failed to write test file: %v", err) |
| 191 | } |
| 192 | |
| 193 | entries, err := ParseProgress(path) |
| 194 | if err != nil { |
| 195 | t.Fatalf("ParseProgress failed: %v", err) |
| 196 | } |
| 197 | |
| 198 | if len(entries) != 0 { |
| 199 | t.Errorf("expected 0 entries for empty file, got %d", len(entries)) |
| 200 | } |
| 201 | } |
| 202 | |
| 203 | func TestParseProgress_NoTrailingSeparator(t *testing.T) { |
| 204 | tmpDir := t.TempDir() |
nothing calls this directly
no test coverage detected