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

Function TestLSPManagerRuntimeRequirements_RustLSP

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

Source from the content-addressed store, hash-verified

275}
276
277func 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
286func TestLSPManagerRuntimeRequirements_UnknownLanguage(t *testing.T) {
287 // A language not in lspInstallSpecs contributes no runtime requirement.

Callers

nothing calls this directly

Calls 2

RuntimeRequirementsMethod · 0.95
NewLSPManagerFunction · 0.85

Tested by

no test coverage detected