(t *testing.T)
| 215 | } |
| 216 | |
| 217 | func TestClientUpdateRemoteURLReportsMissingRemote(t *testing.T) { |
| 218 | // Given a repository without the named remote |
| 219 | repo := newTestRepo(t) |
| 220 | |
| 221 | // When the remote URL is updated |
| 222 | err := repo.client.UpdateRemoteURL(t.Context(), "missing", newBareTestRepo(t).fileURL()) |
| 223 | |
| 224 | // Then Git reports a semantic command failure |
| 225 | require.Error(t, err) |
| 226 | var gitErr *GitError |
| 227 | require.ErrorAs(t, err, &gitErr) |
| 228 | assert.NotZero(t, gitErr.ExitCode) |
| 229 | } |
| 230 | |
| 231 | func TestClientSetRemoteResolutionAddsResolution(t *testing.T) { |
| 232 | // Given a repository with an existing remote resolution |
nothing calls this directly
no test coverage detected