(t *testing.T)
| 907 | } |
| 908 | |
| 909 | func TestRemoteTrackingRefString(t *testing.T) { |
| 910 | // Given a remote and branch name |
| 911 | trackingRef := RemoteTrackingRef{Remote: "origin", Branch: "branchName"} |
| 912 | |
| 913 | // When the tracking ref is formatted |
| 914 | ref := trackingRef.String() |
| 915 | |
| 916 | // Then a qualified remote-tracking ref is returned |
| 917 | assert.Equal(t, "refs/remotes/origin/branchName", ref) |
| 918 | } |
| 919 | |
| 920 | func TestClientDeleteLocalTagRemovesTag(t *testing.T) { |
| 921 | // Given a repository with a local tag |