MCPcopy Create free account
hub / github.com/github/copilot-sdk / findCLIPathForTest

Function findCLIPathForTest

go/client_test.go:571–580  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

569}
570
571func 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
582func TestCreateSessionRequest_ClientName(t *testing.T) {
583 t.Run("includes clientName in JSON when set", func(t *testing.T) {

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…