(t *testing.T, gotArgs *[]string)
| 1732 | } |
| 1733 | |
| 1734 | func recordCommandArgs(t *testing.T, gotArgs *[]string) CommandModifier { |
| 1735 | t.Helper() |
| 1736 | return func(cmd *Command) { |
| 1737 | *gotArgs = append([]string(nil), cmd.Args...) |
| 1738 | cmd.Cmd = createCommand(t, 0, "", "") |
| 1739 | } |
| 1740 | } |
| 1741 | |
| 1742 | func TestClientRemoteURLReturnsConfiguredURL(t *testing.T) { |
| 1743 | // Given a repository with a configured remote |
no test coverage detected