(t *testing.T)
| 11 | ) |
| 12 | |
| 13 | func TestLSPManagerValidate(t *testing.T) { |
| 14 | manager := NewLSPManager(map[string]LSPServerConfig{ |
| 15 | "typescript": { |
| 16 | Command: "typescript-language-server", |
| 17 | Args: []string{"--stdio"}, |
| 18 | FileExtensions: map[string]string{ |
| 19 | ".ts": "typescript", |
| 20 | }, |
| 21 | }, |
| 22 | }) |
| 23 | require.NoError(t, manager.Validate()) |
| 24 | |
| 25 | invalid := NewLSPManager(map[string]LSPServerConfig{ |
| 26 | "python": { |
| 27 | Command: "pyright-langserver", |
| 28 | }, |
| 29 | }) |
| 30 | require.Error(t, invalid.Validate()) |
| 31 | } |
| 32 | |
| 33 | func TestLSPManagerDuplicateKeyNormalization(t *testing.T) { |
| 34 | tests := []struct { |
nothing calls this directly
no test coverage detected