(t *testing.T)
| 760 | } |
| 761 | |
| 762 | func TestClientRemotePushDefaultReturnsEmptyWhenUnset(t *testing.T) { |
| 763 | // Given a repository without remote.pushDefault |
| 764 | repo := newTestRepo(t) |
| 765 | |
| 766 | // When remote.pushDefault is read |
| 767 | remote, err := repo.client.RemotePushDefault(t.Context()) |
| 768 | |
| 769 | // Then no preferred remote is returned |
| 770 | require.NoError(t, err) |
| 771 | assert.Empty(t, remote) |
| 772 | } |
| 773 | |
| 774 | func TestClientRemotePushDefaultReturnsConfiguredRemote(t *testing.T) { |
| 775 | // Given a repository with a preferred push remote |
nothing calls this directly
no test coverage detected