(t *testing.T)
| 24 | ) |
| 25 | |
| 26 | func TestNew_CreatesServer(t *testing.T) { |
| 27 | cfg := DefaultConfig() |
| 28 | srv := New(cfg) |
| 29 | if srv == nil { |
| 30 | t.Fatal("New() returned nil") |
| 31 | } |
| 32 | if srv.cfg != cfg { |
| 33 | t.Error("cfg not stored on server") |
| 34 | } |
| 35 | if srv.mcpSrv == nil { |
| 36 | t.Error("mcpSrv is nil after New()") |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | func TestServer_AuthDisabled(t *testing.T) { |
| 41 | cfg := DefaultConfig() |
nothing calls this directly
no test coverage detected