()
| 569 | } |
| 570 | |
| 571 | func findCLIPathForTest() string { |
| 572 | base, err := filepath.Abs("../nodejs/node_modules/@github") |
| 573 | if err == nil { |
| 574 | matches, _ := filepath.Glob(filepath.Join(base, "copilot-*", "index.js")) |
| 575 | if len(matches) > 0 { |
| 576 | return matches[0] |
| 577 | } |
| 578 | } |
| 579 | return "" |
| 580 | } |
| 581 | |
| 582 | func TestCreateSessionRequest_ClientName(t *testing.T) { |
| 583 | t.Run("includes clientName in JSON when set", func(t *testing.T) { |
no outgoing calls
no test coverage detected
searching dependent graphs…