(t *testing.T)
| 229 | } |
| 230 | |
| 231 | func TestClientSetRemoteResolutionAddsResolution(t *testing.T) { |
| 232 | // Given a repository with an existing remote resolution |
| 233 | repo := newTestRepo(t) |
| 234 | repo.run(t, "config", "--add", "remote.origin.gh-resolved", "base") |
| 235 | |
| 236 | // When another resolution is set |
| 237 | err := repo.client.SetRemoteResolution(t.Context(), "origin", "other") |
| 238 | |
| 239 | // Then both resolutions are stored |
| 240 | require.NoError(t, err) |
| 241 | assert.Equal(t, "base\nother", repo.run(t, "config", "--get-all", "remote.origin.gh-resolved")) |
| 242 | } |
| 243 | |
| 244 | func TestClientSetRemoteResolutionPropagatesGitError(t *testing.T) { |
| 245 | // Given a client whose repository directory does not exist |
nothing calls this directly
no test coverage detected