(t *testing.T)
| 243 | } |
| 244 | |
| 245 | func TestLoadConfigNonexistent(t *testing.T) { |
| 246 | m := NewManager(testLogger()) |
| 247 | err := m.LoadConfig("/nonexistent/path/mcp_servers.json") |
| 248 | if err != nil { |
| 249 | t.Errorf("nonexistent config should not error, got: %v", err) |
| 250 | } |
| 251 | if len(m.servers) != 0 { |
| 252 | t.Error("expected no servers loaded") |
| 253 | } |
| 254 | } |
| 255 | |
| 256 | func TestLoadConfigValid(t *testing.T) { |
| 257 | dir := t.TempDir() |
nothing calls this directly
no test coverage detected