MCPcopy Create free account
hub / github.com/MiniCodeMonkey/chief / TestParseProgress_NoTrailingSeparator

Function TestParseProgress_NoTrailingSeparator

internal/prd/progress_test.go:203–225  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

201}
202
203func 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
227func TestParseProgress_PreservesRawMarkdown(t *testing.T) {
228 tmpDir := t.TempDir()

Callers

nothing calls this directly

Calls 1

ParseProgressFunction · 0.85

Tested by

no test coverage detected