MCPcopy Create free account
hub / github.com/cli/cli / TestGitCommandHelperProcess

Function TestGitCommandHelperProcess

git/client_test.go:1628–1643  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

1626}
1627
1628func TestGitCommandHelperProcess(t *testing.T) {
1629 if len(os.Args) != 7 || os.Args[3] != "git-command-helper" {
1630 return
1631 }
1632
1633 exitStatus, err := strconv.Atoi(os.Args[4])
1634 if err != nil {
1635 fmt.Fprint(os.Stderr, "invalid helper process exit status")
1636 os.Exit(1)
1637 }
1638 fmt.Fprint(os.Stdout, os.Args[5])
1639 if exitStatus != 0 {
1640 fmt.Fprint(os.Stderr, os.Args[6])
1641 }
1642 os.Exit(exitStatus)
1643}
1644
1645func TestCredentialPatternFromGitURL(t *testing.T) {
1646 // Given a well-formed HTTPS Git URL

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected