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

Function TestManagerSetMaxIterations

internal/loop/manager_test.go:338–350  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

336}
337
338func TestManagerSetMaxIterations(t *testing.T) {
339 m := NewManager(10, testProvider)
340
341 if m.MaxIterations() != 10 {
342 t.Errorf("expected initial maxIter 10, got %d", m.MaxIterations())
343 }
344
345 m.SetMaxIterations(20)
346
347 if m.MaxIterations() != 20 {
348 t.Errorf("expected maxIter 20, got %d", m.MaxIterations())
349 }
350}
351
352func TestManagerRetryConfig(t *testing.T) {
353 m := NewManager(10, testProvider)

Callers

nothing calls this directly

Calls 3

MaxIterationsMethod · 0.95
SetMaxIterationsMethod · 0.95
NewManagerFunction · 0.85

Tested by

no test coverage detected