(t *testing.T)
| 36 | } |
| 37 | |
| 38 | func 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 | |
| 51 | func TestManagerRegister(t *testing.T) { |
| 52 | tmpDir := t.TempDir() |
nothing calls this directly
no test coverage detected