MCPcopy Create free account
hub / github.com/cli/cli / TestRemoteTrackingRefString

Function TestRemoteTrackingRefString

git/client_test.go:909–918  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

907}
908
909func 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
920func TestClientDeleteLocalTagRemovesTag(t *testing.T) {
921 // Given a repository with a local tag

Callers

nothing calls this directly

Calls 2

StringMethod · 0.95
EqualMethod · 0.80

Tested by

no test coverage detected