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

Function TestRunStatusEmptyPRD

internal/cmd/status_test.go:191–214  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

189}
190
191func TestRunStatusEmptyPRD(t *testing.T) {
192 tmpDir := t.TempDir()
193
194 prdDir := filepath.Join(tmpDir, ".chief", "prds", "empty")
195 if err := os.MkdirAll(prdDir, 0755); err != nil {
196 t.Fatalf("Failed to create directory: %v", err)
197 }
198
199 prdMd := "# Empty Project\n"
200 prdPath := filepath.Join(prdDir, "prd.md")
201 if err := os.WriteFile(prdPath, []byte(prdMd), 0644); err != nil {
202 t.Fatalf("Failed to create prd.md: %v", err)
203 }
204
205 opts := StatusOptions{
206 Name: "empty",
207 BaseDir: tmpDir,
208 }
209
210 err := RunStatus(opts)
211 if err != nil {
212 t.Errorf("RunStatus() returned error: %v", err)
213 }
214}

Callers

nothing calls this directly

Calls 1

RunStatusFunction · 0.85

Tested by

no test coverage detected