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

Function TestLoop_Iteration

internal/loop/loop_test.go:139–150  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

137}
138
139func TestLoop_Iteration(t *testing.T) {
140 l := NewLoop("/path/to/prd.json", "test prompt", 5, testProvider)
141
142 if l.Iteration() != 0 {
143 t.Errorf("Expected initial iteration to be 0, got %d", l.Iteration())
144 }
145
146 l.iteration = 3
147 if l.Iteration() != 3 {
148 t.Errorf("Expected iteration to be 3, got %d", l.Iteration())
149 }
150}
151
152func TestLoop_Stop(t *testing.T) {
153 l := NewLoop("/path/to/prd.json", "test prompt", 5, testProvider)

Callers

nothing calls this directly

Calls 2

IterationMethod · 0.95
NewLoopFunction · 0.85

Tested by

no test coverage detected