(t *testing.T)
| 731 | } |
| 732 | |
| 733 | func TestClientPushDefaultReturnsConfiguredValue(t *testing.T) { |
| 734 | // Given a repository configured to push the current branch |
| 735 | repo := newTestRepo(t) |
| 736 | repo.run(t, "config", "push.default", "current") |
| 737 | |
| 738 | // When push.default is read |
| 739 | pushDefault, err := repo.client.PushDefault(t.Context()) |
| 740 | |
| 741 | // Then the configured behavior is returned |
| 742 | require.NoError(t, err) |
| 743 | assert.Equal(t, PushDefaultCurrent, pushDefault) |
| 744 | } |
| 745 | |
| 746 | func TestClientPushDefaultPropagatesGitError(t *testing.T) { |
| 747 | // Given a client whose repository directory no longer exists |
nothing calls this directly
no test coverage detected