(t *testing.T)
| 1753 | } |
| 1754 | |
| 1755 | func TestClientRemoteURLReportsMissingRemote(t *testing.T) { |
| 1756 | // Given a repository without the requested remote |
| 1757 | repo := newTestRepo(t) |
| 1758 | |
| 1759 | // When the remote URL is requested |
| 1760 | remoteURL, err := repo.client.RemoteURL(t.Context(), "nonexistent") |
| 1761 | |
| 1762 | // Then Git's failure is returned |
| 1763 | require.Error(t, err) |
| 1764 | var gitErr *GitError |
| 1765 | assert.ErrorAs(t, err, &gitErr) |
| 1766 | assert.Empty(t, remoteURL) |
| 1767 | } |
| 1768 | |
| 1769 | func TestClientRemoteURLSeparatesRemoteNameFromOptions(t *testing.T) { |
| 1770 | // Given a configured remote whose name resembles a Git option |
nothing calls this directly
no test coverage detected