TestLoop_CompleteDetection tests that the loop detects completion.
(t *testing.T)
| 290 | |
| 291 | // TestLoop_CompleteDetection tests that the loop detects completion. |
| 292 | func TestLoop_CompleteDetection(t *testing.T) { |
| 293 | tmpDir := t.TempDir() |
| 294 | prdPath := createTestPRD(t, tmpDir, true) // All complete |
| 295 | |
| 296 | p, err := prd.LoadPRD(prdPath) |
| 297 | if err != nil { |
| 298 | t.Fatalf("Failed to load PRD: %v", err) |
| 299 | } |
| 300 | |
| 301 | if !p.AllComplete() { |
| 302 | t.Error("Expected PRD to be all complete") |
| 303 | } |
| 304 | } |
| 305 | |
| 306 | // TestLoop_LogFile tests that log file is created and written to. |
| 307 | func TestLoop_LogFile(t *testing.T) { |
nothing calls this directly
no test coverage detected