(t *testing.T)
| 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. |
| 279 | manager := NewLSPManager(map[string]LSPServerConfig{ |
| 280 | "rust": {Command: "rust-analyzer", FileExtensions: map[string]string{".rs": "rust"}}, |
| 281 | }) |
| 282 | reqs := manager.RuntimeRequirements() |
| 283 | assert.Empty(t, reqs, "Rust is not in knownRuntimes; expect no runtime requirement") |
| 284 | } |
| 285 | |
| 286 | func TestLSPManagerRuntimeRequirements_UnknownLanguage(t *testing.T) { |
| 287 | // A language not in lspInstallSpecs contributes no runtime requirement. |
nothing calls this directly
no test coverage detected