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

Function TestParseProgress_EmptyFile

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

Source from the content-addressed store, hash-verified

183}
184
185func 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
203func TestParseProgress_NoTrailingSeparator(t *testing.T) {
204 tmpDir := t.TempDir()

Callers

nothing calls this directly

Calls 1

ParseProgressFunction · 0.85

Tested by

no test coverage detected