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

Function TestNewManager

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

Source from the content-addressed store, hash-verified

36}
37
38func TestNewManager(t *testing.T) {
39 m := NewManager(10, testProvider)
40 if m == nil {
41 t.Fatal("expected non-nil manager")
42 }
43 if m.maxIter != 10 {
44 t.Errorf("expected maxIter 10, got %d", m.maxIter)
45 }
46 if m.instances == nil {
47 t.Error("expected non-nil instances map")
48 }
49}
50
51func TestManagerRegister(t *testing.T) {
52 tmpDir := t.TempDir()

Callers

nothing calls this directly

Calls 1

NewManagerFunction · 0.85

Tested by

no test coverage detected