(t *testing.T)
| 265 | } |
| 266 | |
| 267 | func TestLSPManagerRuntimeRequirements_RubyLSP(t *testing.T) { |
| 268 | // solargraph requires the Ruby runtime. |
| 269 | manager := NewLSPManager(map[string]LSPServerConfig{ |
| 270 | "ruby": {Command: "solargraph", FileExtensions: map[string]string{".rb": "ruby"}}, |
| 271 | }) |
| 272 | reqs := manager.RuntimeRequirements() |
| 273 | require.Len(t, reqs, 1) |
| 274 | assert.Equal(t, "ruby", reqs[0].Runtime.ID) |
| 275 | } |
| 276 | |
| 277 | func TestLSPManagerRuntimeRequirements_RustLSP(t *testing.T) { |
| 278 | // rust-analyzer uses rustup; Rust is not in knownRuntimes so no runtime requirement is returned. |
nothing calls this directly
no test coverage detected