MCPcopy
hub / github.com/mislav/hub / TestBranch_ShortName

Function TestBranch_ShortName

github/branch_test.go:9–13  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

7)
8
9func TestBranch_ShortName(t *testing.T) {
10 lp, _ := LocalRepo()
11 b := Branch{lp, "refs/heads/master"}
12 assert.Equal(t, "master", b.ShortName())
13}
14
15func TestBranch_LongName(t *testing.T) {
16 lp, _ := LocalRepo()

Callers

nothing calls this directly

Calls 2

ShortNameMethod · 0.95
LocalRepoFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…