(t *testing.T)
| 255 | } |
| 256 | |
| 257 | func TestLSPManagerRuntimeRequirements_GoLSP(t *testing.T) { |
| 258 | // gopls requires the Go runtime. |
| 259 | manager := NewLSPManager(map[string]LSPServerConfig{ |
| 260 | "go": {Command: "gopls", FileExtensions: map[string]string{".go": "go"}}, |
| 261 | }) |
| 262 | reqs := manager.RuntimeRequirements() |
| 263 | require.Len(t, reqs, 1) |
| 264 | assert.Equal(t, "go", reqs[0].Runtime.ID) |
| 265 | } |
| 266 | |
| 267 | func TestLSPManagerRuntimeRequirements_RubyLSP(t *testing.T) { |
| 268 | // solargraph requires the Ruby runtime. |
nothing calls this directly
no test coverage detected