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

Function TestLSPManagerRuntimeRequirements_RubyLSP

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

Source from the content-addressed store, hash-verified

265}
266
267func 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
277func TestLSPManagerRuntimeRequirements_RustLSP(t *testing.T) {
278 // rust-analyzer uses rustup; Rust is not in knownRuntimes so no runtime requirement is returned.

Callers

nothing calls this directly

Calls 2

RuntimeRequirementsMethod · 0.95
NewLSPManagerFunction · 0.85

Tested by

no test coverage detected