(t *testing.T)
| 309 | } |
| 310 | |
| 311 | func 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 | } |
nothing calls this directly
no test coverage detected