(t *testing.T)
| 1626 | } |
| 1627 | |
| 1628 | func 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 | |
| 1645 | func TestCredentialPatternFromGitURL(t *testing.T) { |
| 1646 | // Given a well-formed HTTPS Git URL |
nothing calls this directly
no outgoing calls
no test coverage detected