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

Function TestLSPManagerRuntimeRequirements_GoLSP

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

Source from the content-addressed store, hash-verified

255}
256
257func 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
267func TestLSPManagerRuntimeRequirements_RubyLSP(t *testing.T) {
268 // solargraph requires the Ruby runtime.

Callers

nothing calls this directly

Calls 2

RuntimeRequirementsMethod · 0.95
NewLSPManagerFunction · 0.85

Tested by

no test coverage detected