(t *testing.T)
| 201 | } |
| 202 | |
| 203 | func TestParseProgress_NoTrailingSeparator(t *testing.T) { |
| 204 | tmpDir := t.TempDir() |
| 205 | path := filepath.Join(tmpDir, "progress.md") |
| 206 | |
| 207 | content := `## 2026-02-20 - US-001 |
| 208 | - Work done here |
| 209 | ` |
| 210 | if err := os.WriteFile(path, []byte(content), 0644); err != nil { |
| 211 | t.Fatalf("failed to write test file: %v", err) |
| 212 | } |
| 213 | |
| 214 | entries, err := ParseProgress(path) |
| 215 | if err != nil { |
| 216 | t.Fatalf("ParseProgress failed: %v", err) |
| 217 | } |
| 218 | |
| 219 | if len(entries["US-001"]) != 1 { |
| 220 | t.Fatalf("expected 1 entry for US-001, got %d", len(entries["US-001"])) |
| 221 | } |
| 222 | if !strings.Contains(entries["US-001"][0].Content, "Work done here") { |
| 223 | t.Errorf("expected content to contain bullet text") |
| 224 | } |
| 225 | } |
| 226 | |
| 227 | func TestParseProgress_PreservesRawMarkdown(t *testing.T) { |
| 228 | tmpDir := t.TempDir() |
nothing calls this directly
no test coverage detected