MCPcopy Index your code
hub / github.com/MiniCodeMonkey/chief / TestLoop_CompleteDetection

Function TestLoop_CompleteDetection

internal/loop/loop_test.go:292–304  ·  view source on GitHub ↗

TestLoop_CompleteDetection tests that the loop detects completion.

(t *testing.T)

Source from the content-addressed store, hash-verified

290
291// TestLoop_CompleteDetection tests that the loop detects completion.
292func 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.
307func TestLoop_LogFile(t *testing.T) {

Callers

nothing calls this directly

Calls 3

LoadPRDFunction · 0.92
createTestPRDFunction · 0.85
AllCompleteMethod · 0.80

Tested by

no test coverage detected