(t *testing.T)
| 1740 | } |
| 1741 | |
| 1742 | func TestClientRemoteURLReturnsConfiguredURL(t *testing.T) { |
| 1743 | // Given a repository with a configured remote |
| 1744 | repo := newTestRepo(t) |
| 1745 | repo.run(t, "remote", "add", "origin", "https://github.com/monalisa/skills-repo.git") |
| 1746 | |
| 1747 | // When the remote URL is requested |
| 1748 | remoteURL, err := repo.client.RemoteURL(t.Context(), "origin") |
| 1749 | |
| 1750 | // Then the configured URL is returned |
| 1751 | require.NoError(t, err) |
| 1752 | assert.Equal(t, "https://github.com/monalisa/skills-repo.git", remoteURL) |
| 1753 | } |
| 1754 | |
| 1755 | func TestClientRemoteURLReportsMissingRemote(t *testing.T) { |
| 1756 | // Given a repository without the requested remote |
nothing calls this directly
no test coverage detected