MCPcopy Create free account
hub / github.com/github/gh-aw / TestLSPManagerValidate

Function TestLSPManagerValidate

pkg/workflow/lsp_manager_test.go:13–31  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

11)
12
13func 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
33func TestLSPManagerDuplicateKeyNormalization(t *testing.T) {
34 tests := []struct {

Callers

nothing calls this directly

Calls 3

ValidateMethod · 0.95
NewLSPManagerFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected