(t *testing.T)
| 719 | } |
| 720 | |
| 721 | func TestClientPushDefaultReturnsGitDefaultWhenUnset(t *testing.T) { |
| 722 | // Given a repository without push.default |
| 723 | repo := newTestRepo(t) |
| 724 | |
| 725 | // When push.default is read |
| 726 | pushDefault, err := repo.client.PushDefault(t.Context()) |
| 727 | |
| 728 | // Then Git's default behavior is returned |
| 729 | require.NoError(t, err) |
| 730 | assert.Equal(t, PushDefaultSimple, pushDefault) |
| 731 | } |
| 732 | |
| 733 | func TestClientPushDefaultReturnsConfiguredValue(t *testing.T) { |
| 734 | // Given a repository configured to push the current branch |
nothing calls this directly
no test coverage detected