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

Function TestDetectRuntimeRequirements_LSPServers

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

Source from the content-addressed store, hash-verified

309}
310
311func TestDetectRuntimeRequirements_LSPServers(t *testing.T) {
312 // DetectRuntimeRequirements should pick up runtime requirements from LSP config.
313 data := &WorkflowData{
314 LSP: map[string]LSPServerConfig{
315 "go": {Command: "gopls", FileExtensions: map[string]string{".go": "go"}},
316 },
317 }
318 reqs := DetectRuntimeRequirements(data)
319 found := false
320 for _, r := range reqs {
321 if r.Runtime.ID == "go" {
322 found = true
323 break
324 }
325 }
326 assert.True(t, found, "expected Go runtime requirement from LSP config")
327}

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected